Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Sep 23, 2017 11:29 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Some quick coloring tips for making weathermaps
PostPosted: Wed Jan 26, 2011 12:40 pm 
Offline
Cacti Pro User
User avatar

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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Thu Jan 27, 2011 11:38 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
I wanted to draw lines that show connections but not act as links ( no bw, etc)
Came up with the following:

Code:
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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Thu Jan 27, 2011 2:24 pm 
Offline
Cacti User

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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Thu Jan 27, 2011 2:45 pm 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
Code:
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 2331 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
Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Thu Jan 27, 2011 2:47 pm 
Offline
Cacti Pro User
User avatar

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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Fri Jan 28, 2011 10:10 am 
Offline
Cacti User

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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Fri Jan 28, 2011 10:27 am 
Offline
Cacti Pro User
User avatar

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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Sun Feb 13, 2011 6:49 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5126
Location: United Kingdom
egarnel wrote:
2) Using Nodes as labels with matching background to map background
Code:
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Tue Sep 05, 2017 12:52 pm 
Offline

Joined: Mon May 18, 2009 8:33 am
Posts: 19
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


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Tue Sep 05, 2017 1:29 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5126
Location: United Kingdom
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Tue Sep 05, 2017 2:28 pm 
Offline

Joined: Mon May 18, 2009 8:33 am
Posts: 19
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 151 times ]
Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Tue Sep 05, 2017 3:03 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5126
Location: United Kingdom
It wouldn't be a huge change actually... I'll take a look.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Some quick coloring tips for making weathermaps
PostPosted: Fri Sep 08, 2017 9:26 am 
Offline

Joined: Mon May 18, 2009 8:33 am
Posts: 19
Thank you Howie.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group