Skip to content

Commit

Permalink
Merge pull request #9 from techman83/shorten_error_message
Browse files Browse the repository at this point in the history
Long Message in UI
  • Loading branch information
techman83 authored Apr 30, 2021
2 parents 28ad5df + 8e2b855 commit a67b217
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ or manually using this URL:

Once you have wired up the HX711, it must be calibrated. This is a pretty straightforward process, and all you will need is an object of known weight. Attach the load cell to your printer with the printed bracket, then follow the instructions on the plugin's settings page.

## Troubleshooting

`NaN` may be occasionally displayed in the interface when the weight can't be read correctly. The cheap boards vary in quality and are a little sensitive to vibration/power stability. Ensure the cabling is secure, you have a sufficiently sized load cell, and a good power supply.

## Development

Python 3 + Python 3 Virtualenv recommended
Expand Down
2 changes: 1 addition & 1 deletion filament_scale_enhanced/static/js/filament_scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $(function() {

self.last_raw_weight = parseInt(message)
if (parseInt(message) == 8388608 || parseInt(message) == 8388607){
self.printerState.filamentRemainingString("Sensor Not Connected")
self.printerState.filamentRemainingString("NaN")
self.settings.settings.plugins.filament_scale.lastknownweight("Error")
} else {
weight = self.getWeight(message)
Expand Down

0 comments on commit a67b217

Please sign in to comment.