Some quick coloring tips for making weathermaps

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
egarnel
Cacti Pro User
Posts: 703
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Some quick coloring tips for making weathermaps

#1 Post by egarnel » Wed Jan 26, 2011 12:40 pm

Found these through experimenting:

1) match the default background for seamless appearance (no more white box on gray background)

change map property BGCOLOR 255 255 255 to BGCOLOR 245 245 245

2) Using Nodes as labels with matching background to map background

Code: Select all

 LABELOUTLINECOLOR none
        LABELFONTCOLOR 215 75 60
        LABELBGCOLOR 245 245 245
Note the the fontcolor is per your preference.

This link is extremely helpful with color options:
http://www.december.com/html/spec/colorcodes.html
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey

User avatar
egarnel
Cacti Pro User
Posts: 703
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

#2 Post by egarnel » Thu Jan 27, 2011 11:38 am

I wanted to draw lines that show connections but not act as links ( no bw, etc)
Came up with the following:

Code: Select all

 WIDTH 1
        BWOUTLINECOLOR none
        BWBOXCOLOR none
        BWFONTCOLOR 245 245 245
        LINKSTYLE oneway
Adjust the BWFONTCOLOR to match your background.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey

ikorzha758
Cacti User
Posts: 162
Joined: Thu Jan 21, 2010 8:41 pm

Re: Some quick coloring tips for making weathermaps

#3 Post by ikorzha758 » Thu Jan 27, 2011 2:24 pm

Can you post a portion of your config as a sample. I would like to try to replicate your results but so far I can't figure out what am I doing incorrectly....

User avatar
egarnel
Cacti Pro User
Posts: 703
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

#4 Post by egarnel » Thu Jan 27, 2011 2:45 pm

Code: Select all

HTMLSTYLE overlib
TITLE Wifi Infrastructure

KEYPOS DEFAULT 160 509 Traffic Load
KEYSTYLE  DEFAULT horizontal
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 255 255 255
KEYBGCOLOR 245 245 245
BGCOLOR 245 245 245
TITLECOLOR 0 0 9
TIMECOLOR 0 0 0
SCALE DEFAULT 0    0    192 192 192
SCALE DEFAULT 0    1    255 255 255
SCALE DEFAULT 1    10   140   0 255
SCALE DEFAULT 10   25    32  32 255
SCALE DEFAULT 25   40     0 192 255
SCALE DEFAULT 40   55     0 240   0
SCALE DEFAULT 55   70   240 240   0
SCALE DEFAULT 70   85   255 192   0
SCALE DEFAULT 85   100  255   0   0

SET key_hidezero_DEFAULT 1

# End of global section

#NODES that are just labels on the map
NODE node06145
        LABEL UT 311mbps
        LABELOUTLINECOLOR none
        LABELBGCOLOR 245 245 245
        LABELFONTCOLOR 215 75 60
        POSITION 175 105

NODE node06178
        LABEL ATT 155 Mbps
        LABELOUTLINECOLOR none
        LABELBGCOLOR 245 245 245
        LABELFONTCOLOR 0 0 255
        POSITION 603 104

#LINKS that are just lines
LINK asa5550a-interneta
        WIDTH 1
        LINKSTYLE oneway
        BWOUTLINECOLOR none
        BWBOXCOLOR none
        BWFONTCOLOR 245 245 245
        OUTCOMMENT ATT 155 Mbps BU
        NODES asa5550a internet

LINK asa5550b-interneta
        WIDTH 1
        LINKSTYLE oneway
        BWOUTLINECOLOR none
        BWBOXCOLOR none
        BWFONTCOLOR 245 245 245
        OUTCOMMENT UT 311 Mbps BU
        NODES asa5550b internet

Attachments
wifi-infra2.png
wifi-infra2.png (40.72 KiB) Viewed 3248 times
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey

User avatar
egarnel
Cacti Pro User
Posts: 703
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

#5 Post by egarnel » Thu Jan 27, 2011 2:47 pm

some of the settings could be put into templates, but I have other links as well and did not want to re-create the entire file at the moment....
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey

ikorzha758
Cacti User
Posts: 162
Joined: Thu Jan 21, 2010 8:41 pm

Re: Some quick coloring tips for making weathermaps

#6 Post by ikorzha758 » Fri Jan 28, 2011 10:10 am

I see thank you very much for your reference.
I was thinking along the lines of drawing lines in weathermap.
Such as specifying begin/end coordinate for line , thickness in pixels and color.
I will ask howie if that is possible.

User avatar
egarnel
Cacti Pro User
Posts: 703
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

#7 Post by egarnel » Fri Jan 28, 2011 10:27 am

Yes, it would be nice to be able to draw lines instead of faking it with links would be nice.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey

User avatar
Howie
Cacti Guru User
Posts: 5337
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Some quick coloring tips for making weathermaps

#8 Post by Howie » Sun Feb 13, 2011 6:49 am

egarnel wrote: 2) Using Nodes as labels with matching background to map background

Code: Select all

 LABELOUTLINECOLOR none
        LABELFONTCOLOR 215 75 60
        LABELBGCOLOR 245 245 245
LABELBGCOLOR none is also a valid option, just to save one line of config :-)
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

msantana
Posts: 24
Joined: Mon May 18, 2009 8:33 am

Re: Some quick coloring tips for making weathermaps

#9 Post by msantana » Tue Sep 05, 2017 12:52 pm

Hi Folks,

This is a very old subject, but I'll ask the question anyway.

I'm using Weathermap 0.97c. On of my maps, I'd like to use the BWOUTLINECOLOR none & BWBOXCOLOR none commands but notice the text is not readable for certain percentages.

Will the BWFONTCOLOR coomand support a contrast function, just like the COMMENTFONTCOLOR does? I noticed it currently does not.

Thank you,

-Moises

User avatar
Howie
Cacti Guru User
Posts: 5337
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Some quick coloring tips for making weathermaps

#10 Post by Howie » Tue Sep 05, 2017 1:29 pm

Well, what is the contrasting colour of 'none'?

Depending on what the bwlabelpos is set to, the label could be on either one of the two halves of an arrow, or there could be only one arrow, or it could be on the border. All of those things are visible when BWBOXCOLOR is none... which one should it contrast with?

Then again, comments are positionable just the same way... Those just use the relevant arrow fill colour. I guess there's an implicit caveat that if you mess with it too much, it'll probably break :-)

Sure, let's add it.
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

msantana
Posts: 24
Joined: Mon May 18, 2009 8:33 am

Re: Some quick coloring tips for making weathermaps

#11 Post by msantana » Tue Sep 05, 2017 2:28 pm

Hello Howie,

Thank you for your response. Based on your response, I assume there's nothing I can do in the 0.97c version to fix this. I was hoping there was some workaround.

Anyway, I've attached a snapshot of what I'm currently seeing.

Regards,

-Moises
Attachments
EX1.png
EX1.png (136.19 KiB) Viewed 1068 times

User avatar
Howie
Cacti Guru User
Posts: 5337
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Some quick coloring tips for making weathermaps

#12 Post by Howie » Tue Sep 05, 2017 3:03 pm

It wouldn't be a huge change actually... I'll take a look.
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

msantana
Posts: 24
Joined: Mon May 18, 2009 8:33 am

Re: Some quick coloring tips for making weathermaps

#13 Post by msantana » Fri Sep 08, 2017 9:26 am

Thank you Howie.

Post Reply