howardjones / network-weathermap

Network Weathermap draws diagrams from data
http://www.network-weathermap.com/
MIT License
425 stars 94 forks source link

Graph color #61

Closed VictorJ76 closed 7 years ago

VictorJ76 commented 7 years ago

Hello,

I use php WeatherMap plugin and everything works great but when I check graph's link or device, the windows of my graph is in an ugly purple. What do I need to modify to make it white ? Just below, you can find a screenshot. http://imgur.com/a/adQMi

Best regards.

Victor

bhardgrove commented 7 years ago

Look into defing a scale. You pick the ranges and the corresponding colors.

On Feb 22, 2017 8:40 AM, "VictorJ" notifications@github.com wrote:

Hello,

I use php WeatherMap plugin and everything works great but when I check graph's link or device, the windows of my graph is in an ugly purple. What do I need to modify to make it white ? Just below, you can find a screenshot. http://imgur.com/a/adQMi

Best regards.

Victor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/howardjones/network-weathermap/issues/61, or mute the thread https://github.com/notifications/unsubscribe-auth/ALvX4JT1edJ7SXLmu7D0IZvu-fS9-4Qrks5rfGUYgaJpZM4MI4wG .

howardjones commented 7 years ago

The graph isn't drawn by weathermap. Weathermap just takes the graph URL you gave it, and puts it in the HTML output. If you paste that URL into a web browser, is it purple there too? How about in Cacti (or whatever is drawing the graph)?

VictorJ76 commented 7 years ago

I use the plugin in LibreNMS. I find out, you just have to modify the file /opt/librenms/html/plugins/weathermap/overlib.js and change the hex color values :

if (typeof ol_fgcolor=='undefined') var ol_fgcolor="#FFFFFF"; if (typeof ol_bgcolor=='undefined') var ol_bgcolor="#000000";