Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Some patches

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
pj0tr



Joined: 12 Jan 2007
Posts: 1

PostPosted: Fri Jan 12, 2007 5:55 pm    Post subject: Some patches Reply with quote

Hi,

I have a patch for weathermap 0.82 that creates some new keywords for use in conf files.

The good part is that it you can move the meeting point of the arrows and where the label will be rendered.

The bad part is that I forgot to grab a clean diff before starting to work on the next bit, which I ofcourse didn't have time to finish...

So, there is a rudimentary grouping function (all it does is draw a box around the grouped nodes with 5px padding) that is unfinished...

The new keywords are:

GROUP groupname
LABEL label
NODES n1 n2 n3...

where groupname is the internal name of the group, label is the label that is rendered and nodes is a list of internal nodenames that are part of this group.

LINK Attributes:

SPLITPOS split
LABELPOS label

where split is the ratio of the arrows (value between 0 and 1), labelpos is the ratio for a single arrow to determine where the label should go (value between 0 and 1).



weather.diff.gz
 Description:
patch to enable split and label moving

Download
 Filename:  weather.diff.gz
 Filesize:  3.51 KB
 Downloaded:  96 Time(s)

Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Fri Jan 12, 2007 6:46 pm    Post subject: Re: Some patches Reply with quote

pj0tr wrote:
Hi,

I have a patch for weathermap 0.82 that creates some new keywords for use in conf files.

The good part is that it you can move the meeting point of the arrows and where the label will be rendered.

The bad part is that I forgot to grab a clean diff before starting to work on the next bit, which I ofcourse didn't have time to finish...

So, there is a rudimentary grouping function (all it does is draw a box around the grouped nodes with 5px padding) that is unfinished...

The new keywords are:

GROUP groupname
LABEL label
NODES n1 n2 n3...

where groupname is the internal name of the group, label is the label that is rendered and nodes is a list of internal nodenames that are part of this group.

LINK Attributes:

SPLITPOS split
LABELPOS label

where split is the ratio of the arrows (value between 0 and 1), labelpos is the ratio for a single arrow to determine where the label should go (value between 0 and 1).


Hmmm. LABELPOS is already in 0.9 (I used two percentages (one for each label) but essentially the same), and the rest of the code has changed quite a bit, so applying patches becomes a little tricky...

I'd never really thought about SPLITPOS. I guess it probably is pretty handy for tweaking links with VIAs, especially. I'll see if I can merge that in somehow (it's a pretty local change, after all).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group