own style formating ?

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

own style formating ?

#1 Post by rufi86 » Thu Oct 13, 2016 8:52 am

Hi

Is there option to have own style formating in cacti weathermap ?

For example based on .css ? margines, padding, etc ?

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

Re: own style formating ?

#2 Post by Howie » Thu Oct 13, 2016 9:05 am

Not really, it's a PNG image - what do you actually want to change?

In Cacti, the Cacti stylesheet provides the formatting for the Weathermap page.
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!)

rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

#3 Post by rufi86 » Thu Oct 13, 2016 9:45 am

Howie wrote:Not really, it's a PNG image - what do you actually want to change?

In Cacti, the Cacti stylesheet provides the formatting for the Weathermap page.
Hello Howie,

So I want to create grap, and I need to change position of box where i have value Bits per sond, and general look, and add few tables with only CPU, MEM utilization.
Some kind of complex network graph.

For example
http://img11.hostingpics.net/pics/827168weathermap.png

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

Re: own style formating ?

#4 Post by Howie » Thu Oct 13, 2016 10:03 am

OK. So the little CPU and memory images are done as separate nodes. The formatting for the blue nodes is done using standard weathermap commands. The rounded boxes are made by using the 'artificial icons' feature and the 'rbox' feature. The angled links are using VIA and 'VIASTYLE angled'.

That's all standard weathermap stuff. You can see most of those things in the Visual Guide page in the front of the manual.
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!)

rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

#5 Post by rufi86 » Thu Oct 13, 2016 10:30 am

Howie wrote:OK. So the little CPU and memory images are done as separate nodes. The formatting for the blue nodes is done using standard weathermap commands. The rounded boxes are made by using the 'artificial icons' feature and the 'rbox' feature. The angled links are using VIA and 'VIASTYLE angled'.

That's all standard weathermap stuff. You can see most of those things in the Visual Guide page in the front of the manual.
Hi,

Where and how Can I manage that ?

Weateher editor -> Map style ? * I dont have so many option in there..

Weateher editor -> Manage colors ? * I dont have so many option in there..
Nothing in here works yet. The aim is to have a nice color picker somehow.
Background Color
Link Outline Color
Scale Colors Some pleasant way to design the bandwidth color scale goes in here???
Helpful text will appear here, depending on the current item selected. It should wrap onto several lines, if it's necessary for it to do that.

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

Re: own style formating ?

#6 Post by Howie » Thu Oct 13, 2016 10:36 am

Edit the map file in a text editor.
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!)

rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

#7 Post by rufi86 » Thu Oct 13, 2016 10:42 am

Howie wrote:Edit the map file in a text editor.
Ok then, how can I define proper fonts, size, position ?

How can I edit, move box where I have network speed ?

rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

#8 Post by rufi86 » Thu Oct 13, 2016 10:45 am

Here I can see some values, hmm ?

Code: Select all

WIDTH 1104
HEIGHT 808
HTMLSTYLE overlib
KEYFONT 1
TITLE map
TIMEPOS 1102 5 Created: %b %d %Y %H:%M:%S

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

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

Re: own style formating ?

#9 Post by Howie » Thu Oct 13, 2016 10:46 am

As I said, on the front page of the manual is a diagram called "Visual Guide" that shows which keywords control which formatting features. There is a fairly large reference guide for all the keywords used in a weathermap config file. You already have the manual - it's in the docs/ subdirectory of the weathermap folder.
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!)

rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

#10 Post by rufi86 » Thu Oct 13, 2016 10:49 am

Howie wrote:As I said, on the front page of the manual is a diagram called "Visual Guide" that shows which keywords control which formatting features. There is a fairly large reference guide for all the keywords used in a weathermap config file. You already have the manual - it's in the docs/ subdirectory of the weathermap folder.
Ok. Let me study it. If I will have some questions. I will get back here :)

Take care

rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

#11 Post by rufi86 » Mon Oct 24, 2016 4:30 am

Good morning,

According to config-reference.html#NODE_POSITION document, I want to move connection lines to the edge.

Tried to add argument :E and :W at the end node id.
Please check attachment and below little bit output from configuration from from weather map.

Code: Select all

NODE node08099
	LABEL .
	POSITION 71 1342

Code: Select all

LINK node03082-node08099

	NODES node03082:E node08099:W

Code: Select all

LINK node03477-node08099

	NODES node03477:W node08099:W
Attachments
Screen Shot 10-24-16 at 10.24 AM.PNG
Screen Shot 10-24-16 at 10.24 AM.PNG (2.42 KiB) Viewed 1836 times

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

Re: own style formating ?

#12 Post by Howie » Mon Oct 24, 2016 7:44 am

Your node doesn't have an ICON command. Where is that icon coming from?

With no ICON, this is the expected output - it will use the edges of the label text box.

I just tested with icons, and the current release version:

Code: Select all

WIDTH 400
HEIGHT 200

NODE n1
   ICON 72 72 images/hollow32.png
   POSITION 50 100

NODE n2
   ICON 72 72 images/hollow32.png
   POSITION 350 100

LINK l1
  NODES n1:E n2:W
And I get this
Attachments
weathermap.png
weathermap.png (2.04 KiB) Viewed 1821 times
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!)

Post Reply