AG-Schumann / doberview2

A NodeJS-based web frontend for Doberman v6
GNU General Public License v3.0
2 stars 0 forks source link

Functionality for sensors with integer status value #64

Closed adambrown1 closed 1 year ago

adambrown1 commented 1 year ago

Added functionality for sensors whose value is an integer representing a status.

The new sensor field in the mongo database valuemap explains the meaning behind the various status codes. These are shown appropriately in the overview page instead of a cryptic number. You can change between statuses in the sensor details box.

Also added some functionality to the SVG view to allow users to click on sensors which don't have an associated value.

We could consider removing the notion of valve (they are a special case of integer statuses) or whether we want to do similar behaviour for them, A to streamline code and B so that the user sees "Open" and "Closed" instead of 1 and 0.

adambrown1 commented 1 year ago

Not quite the same but related to #50

adambrown1 commented 1 year ago

Looks good. At some point we have to update the wiki with all the things you can put in the config docs. It's quite outdated

Yes, and also consider whether we want to rationalise it a bit (in principle, the normally open valve setting is no longer needed if you just manually add them as 1: Closed, 0: Open; here it is a question of where you prefer to simplify)