jackw / heywesty-trafficlight-panel

A Grafana Traffic Light panel
Apache License 2.0
6 stars 1 forks source link

Stack Light mode #33

Open mampersat opened 2 months ago

mampersat commented 2 months ago

Interested in forking and making a stack light display mode. Lemme know if you're working on similar and I'll stop.

jackw commented 2 months ago

Hello @mampersat,

Thanks for opening this issue. The stack light looks interesting and kind of aligns with a branch I've been working on and off on that allows for as many lights as there are set in the panel edit threshold editor. With this change you will be able to create a "traffic light" that has 1, 2, 3... as many lights as you like! 😄

However something that doesn't really line up from looking at the wikipedia article is there seems to be the ability for orange and blue lights to be lit at the same time. Grafana thresholds don't allow for this (as far as I know). Is that something you're keen to have? It would likely need a custom thresholds editor but my original intention with this plugin was to keep it as close to the Grafana feature set as possible.

mampersat commented 2 months ago

Yeah... we def. light up more than one color at a time.

Per someone who deploys these things

Yes it is possible. The only stacklights we have on the floor right now are from manufacturers who programmed them for the equipment they sold us, I'm sure that at least some states result in more than one light illuminated. The stacklight I programmed to show also illuminates more than one color for some statuses.