Hide humidity if not available #54

Merged
skyhisi merged 1 commits from master into master 2017-08-07 19:33:51 +01:00
skyhisi commented 2017-07-26 14:35:07 +01:00 (Migrated from github.com)

If the enclosure sensor doesn't provide humidity it returns 0, so this can be used to hide the humidity row from the table.

If the enclosure sensor doesn't provide humidity it returns 0, so this can be used to hide the humidity row from the table.
vitormhenrique commented 2017-08-07 19:33:45 +01:00 (Migrated from github.com)

for now this will do, but the best way to do is test based on the type of sensor, and hide the humidity on the navbar as well.
The reason is that whenever the plugin can not read the humidity it will return zero, and it would be good to show that something went wrong reading the humidity for sensors that should return it.

for now this will do, but the best way to do is test based on the type of sensor, and hide the humidity on the navbar as well. The reason is that whenever the plugin can not read the humidity it will return zero, and it would be good to show that something went wrong reading the humidity for sensors that should return it.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#54