Some quick coloring tips for making weathermaps

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

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

Some quick coloring tips for making weathermaps

Post by egarnel »

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: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

Post by egarnel »

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: 164
Joined: Thu Jan 21, 2010 8:41 pm

Re: Some quick coloring tips for making weathermaps

Post by ikorzha758 »

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: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

Post by egarnel »

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 5220 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: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

Post by egarnel »

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: 164
Joined: Thu Jan 21, 2010 8:41 pm

Re: Some quick coloring tips for making weathermaps

Post by ikorzha758 »

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: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Some quick coloring tips for making weathermaps

Post by egarnel »

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: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Some quick coloring tips for making weathermaps

Post by Howie »

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.98a 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: 27
Joined: Mon May 18, 2009 8:33 am

Re: Some quick coloring tips for making weathermaps

Post by msantana »

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: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Some quick coloring tips for making weathermaps

Post by Howie »

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.98a 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: 27
Joined: Mon May 18, 2009 8:33 am

Re: Some quick coloring tips for making weathermaps

Post by msantana »

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 3040 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Some quick coloring tips for making weathermaps

Post by Howie »

It wouldn't be a huge change actually... I'll take a look.
Weathermap 0.98a 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: 27
Joined: Mon May 18, 2009 8:33 am

Re: Some quick coloring tips for making weathermaps

Post by msantana »

Thank you Howie.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests