I am terribly sorry if this is a foolish question. I know so little I don't even know what to search for but I have seen results like I want so I know its possible.
I am currently monitoring temperatures and humidity values with 1-Wire sensors, updating rrd's with the appropriate values and graphing them in CACTI. That is working wonderfully.
I recently started gathering on/off data for my dehumidifier and HVAC zones. What I would like to do now is shade the full height of the graph while the zone or dehumidifier is on. An example of what I am looking for can be found here:
http://graphs.merlins.org/graphs/graph_ ... nt_size=12
Again I am sorry taking space with a noob question, I just can't figure out what to search for.
-Dustin
Shading graph area
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Shading graph area
You can do that without too much work by using CDEFs.
I suggest you read up on this tutorial, as it's the one with the easiest-going language that I've used: http://www.springsurprise.com/2010/10/2 ... n-rrdtool/
Don't forget the official RRDtool docs: http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
You'll also need to understand RPN (Reverse Polish Notation), which is the syntax used to build CDEF strings: http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html.
From there, I believe you won't have much of a trouble doing what you want. CDEFs are quite easy really, being probably the easiest part of the entire realm of RRDtool.
Hope it helps.
Also, feel free to come back with any specific questions that you may have.
BTW, sorry for not providing the full short answer that you wanted. I'm kind of full of stuff to do right now.
I might post a full answer for your exact problem tomorrow, if someone doesn't do it before me. Although I really suggest you read up on those.
I suggest you read up on this tutorial, as it's the one with the easiest-going language that I've used: http://www.springsurprise.com/2010/10/2 ... n-rrdtool/
Don't forget the official RRDtool docs: http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
You'll also need to understand RPN (Reverse Polish Notation), which is the syntax used to build CDEF strings: http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html.
From there, I believe you won't have much of a trouble doing what you want. CDEFs are quite easy really, being probably the easiest part of the entire realm of RRDtool.
Hope it helps.
Also, feel free to come back with any specific questions that you may have.
BTW, sorry for not providing the full short answer that you wanted. I'm kind of full of stuff to do right now.
I might post a full answer for your exact problem tomorrow, if someone doesn't do it before me. Although I really suggest you read up on those.
-
- Posts: 3
- Joined: Thu Nov 08, 2012 7:46 pm
Re: Shading graph area
Thanks for the quick reply!!
I like figuring things out I just didn't have any idea where i needed to start
I like figuring things out I just didn't have any idea where i needed to start
-
- Posts: 3
- Joined: Thu Nov 08, 2012 7:46 pm
Re: Shading graph area
Just in case anyone stumbles on this that is looking for a similar answer:
My Data source called itemDehumidifierOutlet contains three possible values 1 for on, 0 for off or -1 for error
I created a CDEF as follows:
Special Data Source: CURRENT_DATA_SOURCE
Custom String: 0
Function: GT
Special Data Source: CURRENT_GRAPH_MAXIMUM_VALUE
Function: UNKN
Function: IF
I then created a graph item using the data source and cdef with a graph type of area.
Thanks again for pointing me in the right direction!!
-D
My Data source called itemDehumidifierOutlet contains three possible values 1 for on, 0 for off or -1 for error
I created a CDEF as follows:
Special Data Source: CURRENT_DATA_SOURCE
Custom String: 0
Function: GT
Special Data Source: CURRENT_GRAPH_MAXIMUM_VALUE
Function: UNKN
Function: IF
I then created a graph item using the data source and cdef with a graph type of area.
Thanks again for pointing me in the right direction!!
-D
Who is online
Users browsing this forum: No registered users and 16 guests