Closed julian560 closed 5 months ago
Where do you have data available for whether the device is up or down? Weathermap just turns numbers into colours - you need to have the numbers from somewhere...
On Thu, 18 Jan 2024, 05:17 Julian, @.***> wrote:
’ve installed weathermap, and I’m looking to create an image where it shows whether the NODE is UP or DOWN. I’d like it to be green when the device is functioning normally, and turn it to red when it’s malfunctioning. However, it seems to be just white.
Currently, my LINK can change its color based on bandwidth, but the NODE is always white. I’m not sure where I went wrong with the settings. Below is my configuration file.
`HTMLSTYLE overlib HTMLOUTPUTFILE A_Rack.html IMAGEOUTPUTFILE A_Rack.png
KEYPOS DEFAULT -1 -1 Traffic Load KEYTEXTCOLOR 0 0 0 KEYOUTLINECOLOR 0 0 0 KEYBGCOLOR 255 255 255 BGCOLOR 255 255 255 TITLECOLOR 0 0 0 TIMECOLOR 0 0 0 Define color scales
SCALE green 0 0 0 255 0 # Green color range for normal status SCALE red 1 1 255 0 0 # Red color range for abnormal status Default settings
SET key_hidezero_DEFAULT 1 TEMPLATE-only NODEs:
NODE DEFAULT MAXVALUE 100 TEMPLATE-only LINKs:
LINK DEFAULT BANDWIDTH 100M Regular NODEs:
NODE 22 LABEL Switch6 INFOURL http://192.168.90.99/device/device=22/ OVERLIBGRAPH http://192.168.90.99/graph.php?height=100&width=512&device=22&type=device_bits&legend=no POSITION 142 155
Use USESCALE to specify colors
USESCALE green absolute USESCALE red absolute SET category bandwidth
`
— Reply to this email directly, view it on GitHub https://github.com/howardjones/network-weathermap/issues/316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG6YJJJAIL7A4UN3FQEIZ3YPCV5JAVCNFSM6AAAAABB7VBO3OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DONJSGMYDCMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
’ve installed weathermap, and I’m looking to create an image where it shows whether the NODE is UP or DOWN. I’d like it to be green when the device is functioning normally, and turn it to red when it’s malfunctioning. However, it seems to be just white.
Currently, my LINK can change its color based on bandwidth, but the NODE is always white. I’m not sure where I went wrong with the settings. Below is my configuration file.
HTMLSTYLE overlib HTMLOUTPUTFILE A_Rack.html IMAGEOUTPUTFILE A_Rack.png
KEYPOS DEFAULT -1 -1 Traffic Load KEYTEXTCOLOR 0 0 0 KEYOUTLINECOLOR 0 0 0 KEYBGCOLOR 255 255 255 BGCOLOR 255 255 255 TITLECOLOR 0 0 0 TIMECOLOR 0 0 0
SCALE green 0 0 0 255 0 # Green color range for normal status SCALE red 1 1 255 0 0 # Red color range for abnormal status
SET key_hidezero_DEFAULT 1
NODE DEFAULT MAXVALUE 100
LINK DEFAULT BANDWIDTH 100M
NODE 22 LABEL Switch6 INFOURL http://192.168.90.99/device/device=22/ OVERLIBGRAPH http://192.168.90.99/graph.php?height=100&width=512&device=22&type=device_bits&legend=no POSITION 142 155 USESCALE green absolute USESCALE red absolute SET category bandwidth