librenms-plugins / Weathermap

MIT License
64 stars 51 forks source link

Added data validation for color values #96

Closed bakerds closed 1 year ago

bakerds commented 1 year ago

I ran into a crash caused by color values out of range. Added validation to keep them between 0 and 255

bakerds commented 1 year ago

how did you get out of range values?

I don't know. It was easier to handle the error than track down the cause