AG-Schumann / doberview2

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

Implementing color switching for sensorbox object. #61

Closed molztim closed 1 year ago

molztim commented 1 year ago

For alarming, monitoring, etc., a way to change the background color of sensorboxes would be a nice feature. This just needs to combine the features of valves and sensorboxes together: Show value and set background color according to a class in the svg file.

adambrown1 commented 1 year ago

I think the same outcome is already possible. Just set the sensor box to have a transparent background and put the valve box behind it with colour change.

The only possible problem is what happens if you want to click on the valve, but it isn't clear what should happen anyway.

@molztim If I misunderstood and this is actually about implementing the logic for checking whether a sensor is outside its alarm range and changing the colouzr based on that feel free to reopen (maybe with a new title)