rrd graphs in misterhouse

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

rrd graphs in misterhouse

dbemowsk
My dilemma is that I want my temperature graphs to show when the furnace or AC has been on.  Here is an example from Marc Merlin's blog of what I am trying to do.  Here is a shot of my current data graph.  First, I need to know how best to store the data in the {weather} hash.  All I would need to store is, furnace/heat (on or off), and AC/cooling (on or off), and then present it as Marc does on his graph for "Main HVAC Heat" and "Main HVAC Cool".  I am not too concerned about getting the data into the weather hash, as that should be easy enough.  What I can't figure out is what I need to do to display it.

Thanks

Dan B.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

ricks03

I'm not sure if this answers your question, but I have
weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
=> Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
Sensor, humidspare2 => Hum-Crawl Space

to get everything to display.

I define my ibuttons thusly:
my $ib_sensor2= new iButton '100008013e7bdb5a';
         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
my $ib_sensor3= new iButton '26000000815f600e';
         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
Space 2438 Humind
etc.

And definet hey order they're read in so they line up:
# The order the sensors are read in - used to determine TempSpare order for RRD
my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
$ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
         #             Sump         Library      Crawl    computer
      Den         Servers     BedRoom        Dining Room

I've attached my ibutton code which should have all the pieces you
need, in particular the adding of the "Wet" value for the water sensor

At 10:07 PM 12/13/2014, dbemowsk wrote:
>store the data in the {weather} hash.  All I would
>need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>HVAC Cool".  I am not too concerned about getting the data into the weather
>hash, as that should be easy enough



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


RickButton.pl (16K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
Rick,

I don't see where you add the wet value to the weather hash, or is that not what you add it to?  Also, can you show a sample of your graph and how it looks?

Thanks for the quick response.

Dan B.


On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
I'm not sure if this answers your question, but I have
weather_graph_sensor_names = temp => Outdoor Temperature, humid => 
Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp, 
inhumid => Average Indoor Humidity, tempspare1 => Water Sensor, 
tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 => 
Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7 
=> Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water 
Sensor, humidspare2 => Hum-Crawl Space

to get everything to display.

I define my ibuttons thusly:
my $ib_sensor2= new iButton '100008013e7bdb5a';
         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
my $ib_sensor3= new iButton '26000000815f600e';
         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl 
Space 2438 Humind
etc.

And definet hey order they're read in so they line up:
# The order the sensors are read in - used to determine TempSpare order for RRD
my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2, 
$ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
         #             Sump         Library      Crawl    computer 
      Den         Servers     BedRoom        Dining Room

I've attached my ibutton code which should have all the pieces you 
need, in particular the adding of the "Wet" value for the water sensor

At 10:07 PM 12/13/2014, dbemowsk wrote:
>store the data in the {weather} hash.  All I would
>need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>HVAC Cool".  I am not too concerned about getting the data into the weather
>hash, as that should be easy enough




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

ricks03
Hah, my fault, I haven't looked at that code since 2010 and just
assumed I remembered. Ignore the comment about wet, I don't actually
graph on it, just send email now that I look at it.

I just looked at Marc's graph. It's got to be in the
weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
be the same code that generates the greyed out areas when there's no
data. That looks like $colorna , which looks like it sets the value
by setting  the area for no data where it changes the value of AREA
when there $colorna is blank.
"LINE2:fvar#$colortempavg:Average outdoor temperature",
"AREA:wipeout#$colorna:No data\\\\n",
"AREA:wipeout2#$colorna",

that looks like it's configured for each of the different graph types.

Of course, my copy of weather_rrd_update_graphs is from 2007, so who
knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
actually he's not displaying the average, so perhaps instead he's
overwriting (and  relabeling?) the average temp value to 0, and
changing the value of $colorna based on which thing is on. That's
probably easier with less hacking.

Rick
(and a note that my ibutton code is really just the hacked up base MH
ibutton code after adding a function for my specific device, to make
sure credit is where credit's due)

At 01:32 AM 12/14/2014, Dan Bemowski wrote:

>Rick,
>
>I don't see where you add the wet value to the weather hash, or is
>that not what you add it to?  Also, can you show a sample of your
>graph and how it looks?
>
>Thanks for the quick response.
>
>Dan B.
>
>
>On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>
>>
>>I'm not sure if this answers your question, but I have
>>weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>=> Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>Sensor, humidspare2 => Hum-Crawl Space
>>
>>to get everything to display.
>>
>>I define my ibuttons thusly:
>>my $ib_sensor2= new iButton '100008013e7bdb5a';
>>          $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>my $ib_sensor3= new iButton '26000000815f600e';
>>          $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>Space 2438 Humind
>>etc.
>>
>>And definet hey order they're read in so they line up:
>># The order the sensors are read in - used to determine TempSpare
>>order for RRD
>>my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>$ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>>          #             Sump         Library      Crawl    computer
>>       Den         Servers     BedRoom        Dining Room
>>
>>I've attached my ibutton code which should have all the pieces you
>>need, in particular the adding of the "Wet" value for the water sensor
>>
>>At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >store the data in the {weather} hash.  All I would
>> >need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>> >then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>> >HVAC Cool".  I am not too concerned about getting the data into the weather
>> >hash, as that should be easy enough
>>
>>




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

H Plato
Dan let us know how you plot the area for hvac on or off. I can track the states of my stats and would be interested in layering heating and cooling on top of my room temp graphs.

Sent from my mobile device.

> On Dec 14, 2014, at 12:36 AM, Rick Steeves <[hidden email]> wrote:
>
> Hah, my fault, I haven't looked at that code since 2010 and just
> assumed I remembered. Ignore the comment about wet, I don't actually
> graph on it, just send email now that I look at it.
>
> I just looked at Marc's graph. It's got to be in the
> weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
> be the same code that generates the greyed out areas when there's no
> data. That looks like $colorna , which looks like it sets the value
> by setting  the area for no data where it changes the value of AREA
> when there $colorna is blank.
> "LINE2:fvar#$colortempavg:Average outdoor temperature",
> "AREA:wipeout#$colorna:No data\\\\n",
> "AREA:wipeout2#$colorna",
>
> that looks like it's configured for each of the different graph types.
>
> Of course, my copy of weather_rrd_update_graphs is from 2007, so who
> knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
> actually he's not displaying the average, so perhaps instead he's
> overwriting (and  relabeling?) the average temp value to 0, and
> changing the value of $colorna based on which thing is on. That's
> probably easier with less hacking.
>
> Rick
> (and a note that my ibutton code is really just the hacked up base MH
> ibutton code after adding a function for my specific device, to make
> sure credit is where credit's due)
>
> At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> Rick,
>>
>> I don't see where you add the wet value to the weather hash, or is
>> that not what you add it to?  Also, can you show a sample of your
>> graph and how it looks?
>>
>> Thanks for the quick response.
>>
>> Dan B.
>>
>>
>>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>>
>>>
>>> I'm not sure if this answers your question, but I have
>>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> Sensor, humidspare2 => Hum-Crawl Space
>>>
>>> to get everything to display.
>>>
>>> I define my ibuttons thusly:
>>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> my $ib_sensor3= new iButton '26000000815f600e';
>>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> Space 2438 Humind
>>> etc.
>>>
>>> And definet hey order they're read in so they line up:
>>> # The order the sensors are read in - used to determine TempSpare
>>> order for RRD
>>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>>>         #             Sump         Library      Crawl    computer
>>>      Den         Servers     BedRoom        Dining Room
>>>
>>> I've attached my ibutton code which should have all the pieces you
>>> need, in particular the adding of the "Wet" value for the water sensor
>>>
>>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>>> store the data in the {weather} hash.  All I would
>>>> need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>>>> then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>>>> HVAC Cool".  I am not too concerned about getting the data into the weather
>>>> hash, as that should be easy enough
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
That is exactly what I am trying to do.  When/if I figure it out, I'll post it here.

Dan

On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
Dan let us know how you plot the area for hvac on or off. I can track the states of my stats and would be interested in layering heating and cooling on top of my room temp graphs. 

Sent from my mobile device. 

> On Dec 14, 2014, at 12:36 AM, Rick Steeves <[hidden email]> wrote:
> 
> Hah, my fault, I haven't looked at that code since 2010 and just 
> assumed I remembered. Ignore the comment about wet, I don't actually 
> graph on it, just send email now that I look at it.
> 
> I just looked at Marc's graph. It's got to be in the 
> weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would 
> be the same code that generates the greyed out areas when there's no 
> data. That looks like $colorna , which looks like it sets the value 
> by setting  the area for no data where it changes the value of AREA 
> when there $colorna is blank.
> "LINE2:fvar#$colortempavg:Average outdoor temperature",
> "AREA:wipeout#$colorna:No data\\\\n",
> "AREA:wipeout2#$colorna",
> 
> that looks like it's configured for each of the different graph types.
> 
> Of course, my copy of weather_rrd_update_graphs is from 2007, so who 
> knows what it looks like now :-) maybe it's built in somewhere.  Hmm, 
> actually he's not displaying the average, so perhaps instead he's 
> overwriting (and  relabeling?) the average temp value to 0, and 
> changing the value of $colorna based on which thing is on. That's 
> probably easier with less hacking.
> 
> Rick
> (and a note that my ibutton code is really just the hacked up base MH 
> ibutton code after adding a function for my specific device, to make 
> sure credit is where credit's due)
> 
> At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> Rick,
>> 
>> I don't see where you add the wet value to the weather hash, or is 
>> that not what you add it to?  Also, can you show a sample of your 
>> graph and how it looks?
>> 
>> Thanks for the quick response.
>> 
>> Dan B.
>> 
>> 
>>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>> 
>>> 
>>> I'm not sure if this answers your question, but I have
>>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> Sensor, humidspare2 => Hum-Crawl Space
>>> 
>>> to get everything to display.
>>> 
>>> I define my ibuttons thusly:
>>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> my $ib_sensor3= new iButton '26000000815f600e';
>>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> Space 2438 Humind
>>> etc.
>>> 
>>> And definet hey order they're read in so they line up:
>>> # The order the sensors are read in - used to determine TempSpare 
>>> order for RRD
>>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>>>         #             Sump         Library      Crawl    computer
>>>      Den         Servers     BedRoom        Dining Room
>>> 
>>> I've attached my ibutton code which should have all the pieces you
>>> need, in particular the adding of the "Wet" value for the water sensor
>>> 
>>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>>> store the data in the {weather} hash.  All I would
>>>> need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>>>> then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>>>> HVAC Cool".  I am not too concerned about getting the data into the weather
>>>> hash, as that should be easy enough
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by H Plato
Does anyone know how often the RRD graphs are updated for the weather data?  Is there a way to trigger it to update?

Dan

On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
Dan let us know how you plot the area for hvac on or off. I can track the states of my stats and would be interested in layering heating and cooling on top of my room temp graphs. 

Sent from my mobile device. 

> On Dec 14, 2014, at 12:36 AM, Rick Steeves <[hidden email]> wrote:
> 
> Hah, my fault, I haven't looked at that code since 2010 and just 
> assumed I remembered. Ignore the comment about wet, I don't actually 
> graph on it, just send email now that I look at it.
> 
> I just looked at Marc's graph. It's got to be in the 
> weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would 
> be the same code that generates the greyed out areas when there's no 
> data. That looks like $colorna , which looks like it sets the value 
> by setting  the area for no data where it changes the value of AREA 
> when there $colorna is blank.
> "LINE2:fvar#$colortempavg:Average outdoor temperature",
> "AREA:wipeout#$colorna:No data\\\\n",
> "AREA:wipeout2#$colorna",
> 
> that looks like it's configured for each of the different graph types.
> 
> Of course, my copy of weather_rrd_update_graphs is from 2007, so who 
> knows what it looks like now :-) maybe it's built in somewhere.  Hmm, 
> actually he's not displaying the average, so perhaps instead he's 
> overwriting (and  relabeling?) the average temp value to 0, and 
> changing the value of $colorna based on which thing is on. That's 
> probably easier with less hacking.
> 
> Rick
> (and a note that my ibutton code is really just the hacked up base MH 
> ibutton code after adding a function for my specific device, to make 
> sure credit is where credit's due)
> 
> At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> Rick,
>> 
>> I don't see where you add the wet value to the weather hash, or is 
>> that not what you add it to?  Also, can you show a sample of your 
>> graph and how it looks?
>> 
>> Thanks for the quick response.
>> 
>> Dan B.
>> 
>> 
>>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>> 
>>> 
>>> I'm not sure if this answers your question, but I have
>>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> Sensor, humidspare2 => Hum-Crawl Space
>>> 
>>> to get everything to display.
>>> 
>>> I define my ibuttons thusly:
>>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> my $ib_sensor3= new iButton '26000000815f600e';
>>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> Space 2438 Humind
>>> etc.
>>> 
>>> And definet hey order they're read in so they line up:
>>> # The order the sensors are read in - used to determine TempSpare 
>>> order for RRD
>>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>>>         #             Sump         Library      Crawl    computer
>>>      Den         Servers     BedRoom        Dining Room
>>> 
>>> I've attached my ibutton code which should have all the pieces you
>>> need, in particular the adding of the "Wet" value for the water sensor
>>> 
>>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>>> store the data in the {weather} hash.  All I would
>>>> need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>>>> then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>>>> HVAC Cool".  I am not too concerned about getting the data into the weather
>>>> hash, as that should be easy enough
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

ricks03
$config_parms{weather_graph_frequency} = 10 unless
$config_parms{weather_graph_frequency};

if (new_minute $config_parms{weather_graph_frequency} or said
$tell_generate_graph) {
         if (said $tell_generate_graph) {
                 $tell_generate_graph->respond('Updating weather graphs');
         }
         &update_graphs;
}

So you should also be able to trigger it with telling it to update the graphs.

Rick


At 03:36 PM 12/14/2014, Dan Bemowski wrote:

>Does anyone know how often the RRD graphs are updated for the
>weather data?  Is there a way to trigger it to update?
>
>Dan
>
>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>>
>>
>>Dan let us know how you plot the area for hvac on or off. I can
>>track the states of my stats and would be interested in layering
>>heating and cooling on top of my room temp graphs.
>>
>>Sent from my mobile device.
>>
>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>> <<mailto:[hidden email]>[hidden email]> wrote:
>> >
>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> > graph on it, just send email now that I look at it.
>> >
>> > I just looked at Marc's graph. It's got to be in the
>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> > be the same code that generates the greyed out areas when there's no
>> > data. That looks like $colorna , which looks like it sets the value
>> > by setting  the area for no data where it changes the value of AREA
>> > when there $colorna is blank.
>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> > "AREA:wipeout#$colorna:No data\\\\n",
>> > "AREA:wipeout2#$colorna",
>> >
>> > that looks like it's configured for each of the different graph types.
>> >
>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> > actually he's not displaying the average, so perhaps instead he's
>> > overwriting (and  relabeling?) the average temp value to 0, and
>> > changing the value of $colorna based on which thing is on. That's
>> > probably easier with less hacking.
>> >
>> > Rick
>> > (and a note that my ibutton code is really just the hacked up base MH
>> > ibutton code after adding a function for my specific device, to make
>> > sure credit is where credit's due)
>> >
>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >> Rick,
>> >>
>> >> I don't see where you add the wet value to the weather hash, or is
>> >> that not what you add it to?  Also, can you show a sample of your
>> >> graph and how it looks?
>> >>
>> >> Thanks for the quick response.
>> >>
>> >> Dan B.
>> >>
>> >>
>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>>
>> >>>
>> >>> I'm not sure if this answers your question, but I have
>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>>
>> >>> to get everything to display.
>> >>>
>> >>> I define my ibuttons thusly:
>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> Space 2438 Humind
>> >>> etc.
>> >>>
>> >>> And definet hey order they're read in so they line up:
>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> order for RRD
>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>> >>>         #             Sump         Library      Crawl    computer
>> >>>      Den         Servers     BedRoom        Dining Room
>> >>>
>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> need, in particular the adding of the "Wet" value for the water sensor
>> >>>
>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>>> store the data in the {weather} hash.  All I would
>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>> (on or off), and
>> >>>> then present it as Marc does on his graph for "Main HVAC
>> Heat" and "Main
>> >>>> HVAC Cool".  I am not too concerned about getting the data
>> into the weather
>> >>>> hash, as that should be easy enough
>> >
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> > Get technology previously reserved for billion-dollar corporations, FREE
>> >
>> <http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> > ________________________________________________________
>> > To unsubscribe from this list, go to:
>> <https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
Thanks Rick


On Sun, 2014-12-14 at 15:53 -0500, Rick Steeves wrote:
$config_parms{weather_graph_frequency} = 10 unless 
$config_parms{weather_graph_frequency};

if (new_minute $config_parms{weather_graph_frequency} or said 
$tell_generate_graph) {
         if (said $tell_generate_graph) {
                 $tell_generate_graph->respond('Updating weather graphs');
         }
         &update_graphs;
}

So you should also be able to trigger it with telling it to update the graphs.

Rick


At 03:36 PM 12/14/2014, Dan Bemowski wrote:
>Does anyone know how often the RRD graphs are updated for the 
>weather data?  Is there a way to trigger it to update?
>
>Dan
>
>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>>
>>
>>Dan let us know how you plot the area for hvac on or off. I can 
>>track the states of my stats and would be interested in layering 
>>heating and cooling on top of my room temp graphs.
>>
>>Sent from my mobile device.
>>
>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves 
>> <<[hidden email]>[hidden email]> wrote:
>> >
>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> > graph on it, just send email now that I look at it.
>> >
>> > I just looked at Marc's graph. It's got to be in the
>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> > be the same code that generates the greyed out areas when there's no
>> > data. That looks like $colorna , which looks like it sets the value
>> > by setting  the area for no data where it changes the value of AREA
>> > when there $colorna is blank.
>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> > "AREA:wipeout#$colorna:No data\\\\n",
>> > "AREA:wipeout2#$colorna",
>> >
>> > that looks like it's configured for each of the different graph types.
>> >
>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> > actually he's not displaying the average, so perhaps instead he's
>> > overwriting (and  relabeling?) the average temp value to 0, and
>> > changing the value of $colorna based on which thing is on. That's
>> > probably easier with less hacking.
>> >
>> > Rick
>> > (and a note that my ibutton code is really just the hacked up base MH
>> > ibutton code after adding a function for my specific device, to make
>> > sure credit is where credit's due)
>> >
>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >> Rick,
>> >>
>> >> I don't see where you add the wet value to the weather hash, or is
>> >> that not what you add it to?  Also, can you show a sample of your
>> >> graph and how it looks?
>> >>
>> >> Thanks for the quick response.
>> >>
>> >> Dan B.
>> >>
>> >>
>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>>
>> >>>
>> >>> I'm not sure if this answers your question, but I have
>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>>
>> >>> to get everything to display.
>> >>>
>> >>> I define my ibuttons thusly:
>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> Space 2438 Humind
>> >>> etc.
>> >>>
>> >>> And definet hey order they're read in so they line up:
>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> order for RRD
>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>> >>>         #             Sump         Library      Crawl    computer
>> >>>      Den         Servers     BedRoom        Dining Room
>> >>>
>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> need, in particular the adding of the "Wet" value for the water sensor
>> >>>
>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>>> store the data in the {weather} hash.  All I would
>> >>>> need to store is, furnace/heat (on or off), and AC/cooling 
>> (on or off), and
>> >>>> then present it as Marc does on his graph for "Main HVAC 
>> Heat" and "Main
>> >>>> HVAC Cool".  I am not too concerned about getting the data 
>> into the weather
>> >>>> hash, as that should be easy enough
>> >
>> >
>> >
>> >
>> > 
>> ------------------------------------------------------------------------------
>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> > Get technology previously reserved for billion-dollar corporations, FREE
>> > 
>> <http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> > ________________________________________________________
>> > To unsubscribe from this list, go to: 
>> <https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >





------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
OK, here is what I have done so far:

# Edits to weather_rrd_update_graphs
###################################

After the line "our #colorhumidspare10 = '0000CC'..." I added this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

## added for heating and cooling overlays
our $colorhvacheat = 'FF6F7D';          # HVAC furnace on
our $colorhvaccool = '6F87FF';          # HVAC AC on

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Next, under the sub create_rrdgraph_tempin, I added "hvacheat" and "hvaccool" to @list_sensors_graph to get this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

my @list_sensors_graph = ('intemp', 'indew', 'tempspare1', 'tempspare2', 'tempspare3', 'tempspare4', 'tempspare5', 'tempspare6', ''tempspare7', 'tempspare8', 'tempspare9', 'tempspare10', 'hvacheat', 'hvaccool');

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Then a little further down in the sub, under the line:
.($weather_uom_temp eq 'C' ? "\"CDEF:ftempspare10=tempspare10,32,-,5,9,/,*\"," : "\"CDEF:ftempspare10=tempspare10\",")
I added this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

."\"DEF:hvacheat=$RRD:hvacheat\","
."\"CDEF:fhvacheat=hvacheat\","

."\"DEF:hvaccool=$RRD:hvaccool\","
."\"CDEF:fhvaccool=hvaccool\","

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Then under the section for ". ($sensor_names{tempspare10} ?"  I added this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

. ($sensor_names{hvacheat} ?
        "\"AREA:fhvacheat#${colorhvacheat}:" . sprintf("%-${max}s",$sensor_names{hvacheat}) . "\","
        :'')
. ($sensor_names{hvaccool} ?
        "\"AREA:fhavaccool#${colorhvaccool}:" . sprintf("%-${max}s",$sensor_names{hvaccool}) . "\","
        :'')

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Then in my mh.private.ini file I added the sensor names under weather_graph_sensor_names:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hvacheat => Main HVAC Heat,
hvaccool => Main HVAC Cool

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In my thermostat user code I am populating the #Weather{hvacheat} and $Weather{hvaccool} hash data with 0 if the furnace/AC is off, and 100 when the furnace/AC turns on.  This is probably wrong, but my thinking was if I started on a scale of 0-100 with 0 = off and 100 = on, it might get me somewhere.

I also set the weather_graph_frequency = 2 in mh.private.ini for testing so I don't have to wait 10 minutes for it to update.  I will remove this if/when I get this working.

The error I am getting now is :
ERROR : tempin RRDs::graph : Cannot parse DS in 'DEF:hvacheat=/home/pi/mh_private/data/rrd/weather_data.rrd:hvacheat'

I am sure it is because I am missing something as I am no perl coder.  The changes I made were just mimicking what it looked like they were doing in the code to try to add this functionality.  I hope I am on the right track with this.

Any help in getting this working is appreciated.

Dan B.



On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
That is exactly what I am trying to do.  When/if I figure it out, I'll post it here.

Dan

On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
Dan let us know how you plot the area for hvac on or off. I can track the states of my stats and would be interested in layering heating and cooling on top of my room temp graphs. 

Sent from my mobile device. 

> On Dec 14, 2014, at 12:36 AM, Rick Steeves <[hidden email]> wrote:
> 
> Hah, my fault, I haven't looked at that code since 2010 and just 
> assumed I remembered. Ignore the comment about wet, I don't actually 
> graph on it, just send email now that I look at it.
> 
> I just looked at Marc's graph. It's got to be in the 
> weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would 
> be the same code that generates the greyed out areas when there's no 
> data. That looks like $colorna , which looks like it sets the value 
> by setting  the area for no data where it changes the value of AREA 
> when there $colorna is blank.
> "LINE2:fvar#$colortempavg:Average outdoor temperature",
> "AREA:wipeout#$colorna:No data\\\\n",
> "AREA:wipeout2#$colorna",
> 
> that looks like it's configured for each of the different graph types.
> 
> Of course, my copy of weather_rrd_update_graphs is from 2007, so who 
> knows what it looks like now :-) maybe it's built in somewhere.  Hmm, 
> actually he's not displaying the average, so perhaps instead he's 
> overwriting (and  relabeling?) the average temp value to 0, and 
> changing the value of $colorna based on which thing is on. That's 
> probably easier with less hacking.
> 
> Rick
> (and a note that my ibutton code is really just the hacked up base MH 
> ibutton code after adding a function for my specific device, to make 
> sure credit is where credit's due)
> 
> At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> Rick,
>> 
>> I don't see where you add the wet value to the weather hash, or is 
>> that not what you add it to?  Also, can you show a sample of your 
>> graph and how it looks?
>> 
>> Thanks for the quick response.
>> 
>> Dan B.
>> 
>> 
>>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>> 
>>> 
>>> I'm not sure if this answers your question, but I have
>>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> Sensor, humidspare2 => Hum-Crawl Space
>>> 
>>> to get everything to display.
>>> 
>>> I define my ibuttons thusly:
>>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> my $ib_sensor3= new iButton '26000000815f600e';
>>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> Space 2438 Humind
>>> etc.
>>> 
>>> And definet hey order they're read in so they line up:
>>> # The order the sensors are read in - used to determine TempSpare 
>>> order for RRD
>>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>>>         #             Sump         Library      Crawl    computer
>>>      Den         Servers     BedRoom        Dining Room
>>> 
>>> I've attached my ibutton code which should have all the pieces you
>>> need, in particular the adding of the "Wet" value for the water sensor
>>> 
>>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>>> store the data in the {weather} hash.  All I would
>>>> need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>>>> then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>>>> HVAC Cool".  I am not too concerned about getting the data into the weather
>>>> hash, as that should be easy enough
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
I think I am close to figuring this out.  Not only did I have to edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I also had to make modifications to the ~/misterhouse/code/common/weather_rrd_update.pl file.  After making the modifications, I had to start a new RRD data file because the old file did not have the data for the new HVAC Heat and Cool. 

Here is a sample of what I have working as of now:


I have 2 issues right now.  First, my values of 0 for off and 100 for on need to be tweaked.  I need it to show similar to the "No data" area that is in gray.  That sizes itself to the other data being displayed.  Second, the "Main HVAC Heat" color overwrites the other temp data in the graph.  I need that to be in the background and have the other line plots on top of it.

Once I get this all finished I will post a page on my website explaining the changes that need to be made.

Dan B.

On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
That is exactly what I am trying to do.  When/if I figure it out, I'll post it here.

Dan

On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
Dan let us know how you plot the area for hvac on or off. I can track the states of my stats and would be interested in layering heating and cooling on top of my room temp graphs. 

Sent from my mobile device. 

> On Dec 14, 2014, at 12:36 AM, Rick Steeves <[hidden email]> wrote:
> 
> Hah, my fault, I haven't looked at that code since 2010 and just 
> assumed I remembered. Ignore the comment about wet, I don't actually 
> graph on it, just send email now that I look at it.
> 
> I just looked at Marc's graph. It's got to be in the 
> weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would 
> be the same code that generates the greyed out areas when there's no 
> data. That looks like $colorna , which looks like it sets the value 
> by setting  the area for no data where it changes the value of AREA 
> when there $colorna is blank.
> "LINE2:fvar#$colortempavg:Average outdoor temperature",
> "AREA:wipeout#$colorna:No data\\\\n",
> "AREA:wipeout2#$colorna",
> 
> that looks like it's configured for each of the different graph types.
> 
> Of course, my copy of weather_rrd_update_graphs is from 2007, so who 
> knows what it looks like now :-) maybe it's built in somewhere.  Hmm, 
> actually he's not displaying the average, so perhaps instead he's 
> overwriting (and  relabeling?) the average temp value to 0, and 
> changing the value of $colorna based on which thing is on. That's 
> probably easier with less hacking.
> 
> Rick
> (and a note that my ibutton code is really just the hacked up base MH 
> ibutton code after adding a function for my specific device, to make 
> sure credit is where credit's due)
> 
> At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> Rick,
>> 
>> I don't see where you add the wet value to the weather hash, or is 
>> that not what you add it to?  Also, can you show a sample of your 
>> graph and how it looks?
>> 
>> Thanks for the quick response.
>> 
>> Dan B.
>> 
>> 
>>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>> 
>>> 
>>> I'm not sure if this answers your question, but I have
>>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> Sensor, humidspare2 => Hum-Crawl Space
>>> 
>>> to get everything to display.
>>> 
>>> I define my ibuttons thusly:
>>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> my $ib_sensor3= new iButton '26000000815f600e';
>>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> Space 2438 Humind
>>> etc.
>>> 
>>> And definet hey order they're read in so they line up:
>>> # The order the sensors are read in - used to determine TempSpare 
>>> order for RRD
>>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array of sensors
>>>         #             Sump         Library      Crawl    computer
>>>      Den         Servers     BedRoom        Dining Room
>>> 
>>> I've attached my ibutton code which should have all the pieces you
>>> need, in particular the adding of the "Wet" value for the water sensor
>>> 
>>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>>> store the data in the {weather} hash.  All I would
>>>> need to store is, furnace/heat (on or off), and AC/cooling (on or off), and
>>>> then present it as Marc does on his graph for "Main HVAC Heat" and "Main
>>>> HVAC Cool".  I am not too concerned about getting the data into the weather
>>>> hash, as that should be easy enough
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

ricks03
Nice work Dan. It's probably possible to use tempspare9 and
tempspare10 to have values already in RRD.

Because it's the AREA command, you might be able to use the average
temp, and +1/-1 from the average temp (so you don't change the range
of your graph? )

At 10:00 PM 12/14/2014, Dan Bemowski wrote:

>I think I am close to figuring this out.  Not only did I have to
>edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
>also had to make modifications to the
>~/misterhouse/code/common/weather_rrd_update.pl file.  After making
>the modifications, I had to start a new RRD data file because the
>old file did not have the data for the new HVAC Heat and Cool.
>
>Here is a sample of what I have working as of now:
>[]
>
>
>I have 2 issues right now.  First, my values of 0 for off and 100
>for on need to be tweaked.  I need it to show similar to the "No
>data" area that is in gray.  That sizes itself to the other data
>being displayed.  Second, the "Main HVAC Heat" color overwrites the
>other temp data in the graph.  I need that to be in the background
>and have the other line plots on top of it.
>
>Once I get this all finished I will post a page on my website
>explaining the changes that need to be made.
>
>Dan B.
>
>On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>>That is exactly what I am trying to do.  When/if I figure it out,
>>I'll post it here.
>>
>>Dan
>>
>>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>>>
>>>
>>>Dan let us know how you plot the area for hvac on or off. I can
>>>track the states of my stats and would be interested in layering
>>>heating and cooling on top of my room temp graphs.
>>>
>>>Sent from my mobile device.
>>>
>>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>>> <<mailto:[hidden email]>[hidden email]> wrote:
>>> >
>>> > Hah, my fault, I haven't looked at that code since 2010 and just
>>> > assumed I remembered. Ignore the comment about wet, I don't actually
>>> > graph on it, just send email now that I look at it.
>>> >
>>> > I just looked at Marc's graph. It's got to be in the
>>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>>> > be the same code that generates the greyed out areas when there's no
>>> > data. That looks like $colorna , which looks like it sets the value
>>> > by setting  the area for no data where it changes the value of AREA
>>> > when there $colorna is blank.
>>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>>> > "AREA:wipeout#$colorna:No data\\\\n",
>>> > "AREA:wipeout2#$colorna",
>>> >
>>> > that looks like it's configured for each of the different graph types.
>>> >
>>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>>> > actually he's not displaying the average, so perhaps instead he's
>>> > overwriting (and  relabeling?) the average temp value to 0, and
>>> > changing the value of $colorna based on which thing is on. That's
>>> > probably easier with less hacking.
>>> >
>>> > Rick
>>> > (and a note that my ibutton code is really just the hacked up base MH
>>> > ibutton code after adding a function for my specific device, to make
>>> > sure credit is where credit's due)
>>> >
>>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>>> >> Rick,
>>> >>
>>> >> I don't see where you add the wet value to the weather hash, or is
>>> >> that not what you add it to?  Also, can you show a sample of your
>>> >> graph and how it looks?
>>> >>
>>> >> Thanks for the quick response.
>>> >>
>>> >> Dan B.
>>> >>
>>> >>
>>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>> >>>
>>> >>>
>>> >>> I'm not sure if this answers your question, but I have
>>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> >>> Sensor, humidspare2 => Hum-Crawl Space
>>> >>>
>>> >>> to get everything to display.
>>> >>>
>>> >>> I define my ibuttons thusly:
>>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> >>> Space 2438 Humind
>>> >>> etc.
>>> >>>
>>> >>> And definet hey order they're read in so they line up:
>>> >>> # The order the sensors are read in - used to determine TempSpare
>>> >>> order for RRD
>>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
>>> of sensors
>>> >>>         #             Sump         Library      Crawl    computer
>>> >>>      Den         Servers     BedRoom        Dining Room
>>> >>>
>>> >>> I've attached my ibutton code which should have all the pieces you
>>> >>> need, in particular the adding of the "Wet" value for the water sensor
>>> >>>
>>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>> >>>> store the data in the {weather} hash.  All I would
>>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>>> (on or off), and
>>> >>>> then present it as Marc does on his graph for "Main HVAC
>>> Heat" and "Main
>>> >>>> HVAC Cool".  I am not too concerned about getting the data
>>> into the weather
>>> >>>> hash, as that should be easy enough
>>> >
>>> >
>>> >
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> > Get technology previously reserved for billion-dollar corporations, FREE
>>> >
>>> <http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> > ________________________________________________________
>>> > To unsubscribe from this list, go to:
>>> <https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>> >
>>
>>
>>
>>------------------------------------------------------------------------------
>>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>Get technology previously reserved for billion-dollar corporations, FREE
>><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>________________________________________________________
>>To unsubscribe from this list, go to:
>><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>
>
>
>------------------------------------------------------------------------------
>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>Get technology previously reserved for billion-dollar corporations, FREE
>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>________________________________________________________
>To unsubscribe from this list, go to:
>https://lists.sourceforge.net/lists/listinfo/misterhouse-users




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
How do I have it show the red bar the full height of the graph like the alternating white and gray bars on the background?  Also, how do I get it to show behind the line plots for the temps?

Thanks for the help

Dan

On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
Nice work Dan. It's probably possible to use tempspare9 and 
tempspare10 to have values already in RRD.

Because it's the AREA command, you might be able to use the average 
temp, and +1/-1 from the average temp (so you don't change the range 
of your graph? )

At 10:00 PM 12/14/2014, Dan Bemowski wrote:
>I think I am close to figuring this out.  Not only did I have to 
>edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I 
>also had to make modifications to the 
>~/misterhouse/code/common/weather_rrd_update.pl file.  After making 
>the modifications, I had to start a new RRD data file because the 
>old file did not have the data for the new HVAC Heat and Cool.
>
>Here is a sample of what I have working as of now:
>[]
>
>
>I have 2 issues right now.  First, my values of 0 for off and 100 
>for on need to be tweaked.  I need it to show similar to the "No 
>data" area that is in gray.  That sizes itself to the other data 
>being displayed.  Second, the "Main HVAC Heat" color overwrites the 
>other temp data in the graph.  I need that to be in the background 
>and have the other line plots on top of it.
>
>Once I get this all finished I will post a page on my website 
>explaining the changes that need to be made.
>
>Dan B.
>
>On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>>That is exactly what I am trying to do.  When/if I figure it out, 
>>I'll post it here.
>>
>>Dan
>>
>>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>>>
>>>
>>>Dan let us know how you plot the area for hvac on or off. I can 
>>>track the states of my stats and would be interested in layering 
>>>heating and cooling on top of my room temp graphs.
>>>
>>>Sent from my mobile device.
>>>
>>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves 
>>> <<[hidden email]>[hidden email]> wrote:
>>> >
>>> > Hah, my fault, I haven't looked at that code since 2010 and just
>>> > assumed I remembered. Ignore the comment about wet, I don't actually
>>> > graph on it, just send email now that I look at it.
>>> >
>>> > I just looked at Marc's graph. It's got to be in the
>>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>>> > be the same code that generates the greyed out areas when there's no
>>> > data. That looks like $colorna , which looks like it sets the value
>>> > by setting  the area for no data where it changes the value of AREA
>>> > when there $colorna is blank.
>>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>>> > "AREA:wipeout#$colorna:No data\\\\n",
>>> > "AREA:wipeout2#$colorna",
>>> >
>>> > that looks like it's configured for each of the different graph types.
>>> >
>>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>>> > actually he's not displaying the average, so perhaps instead he's
>>> > overwriting (and  relabeling?) the average temp value to 0, and
>>> > changing the value of $colorna based on which thing is on. That's
>>> > probably easier with less hacking.
>>> >
>>> > Rick
>>> > (and a note that my ibutton code is really just the hacked up base MH
>>> > ibutton code after adding a function for my specific device, to make
>>> > sure credit is where credit's due)
>>> >
>>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>>> >> Rick,
>>> >>
>>> >> I don't see where you add the wet value to the weather hash, or is
>>> >> that not what you add it to?  Also, can you show a sample of your
>>> >> graph and how it looks?
>>> >>
>>> >> Thanks for the quick response.
>>> >>
>>> >> Dan B.
>>> >>
>>> >>
>>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>>> >>>
>>> >>>
>>> >>> I'm not sure if this answers your question, but I have
>>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>>> >>> Sensor, humidspare2 => Hum-Crawl Space
>>> >>>
>>> >>> to get everything to display.
>>> >>>
>>> >>> I define my ibuttons thusly:
>>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>>> >>> Space 2438 Humind
>>> >>> etc.
>>> >>>
>>> >>> And definet hey order they're read in so they line up:
>>> >>> # The order the sensors are read in - used to determine TempSpare
>>> >>> order for RRD
>>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, $ib_sensor2,
>>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array 
>>> of sensors
>>> >>>         #             Sump         Library      Crawl    computer
>>> >>>      Den         Servers     BedRoom        Dining Room
>>> >>>
>>> >>> I've attached my ibutton code which should have all the pieces you
>>> >>> need, in particular the adding of the "Wet" value for the water sensor
>>> >>>
>>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>>> >>>> store the data in the {weather} hash.  All I would
>>> >>>> need to store is, furnace/heat (on or off), and AC/cooling 
>>> (on or off), and
>>> >>>> then present it as Marc does on his graph for "Main HVAC 
>>> Heat" and "Main
>>> >>>> HVAC Cool".  I am not too concerned about getting the data 
>>> into the weather
>>> >>>> hash, as that should be easy enough
>>> >
>>> >
>>> >
>>> >
>>> > 
>>> ------------------------------------------------------------------------------
>>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> > Get technology previously reserved for billion-dollar corporations, FREE
>>> > 
>>> <http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> > ________________________________________________________
>>> > To unsubscribe from this list, go to: 
>>> <https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>> >
>>
>>
>>
>>------------------------------------------------------------------------------
>>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>Get technology previously reserved for billion-dollar corporations, FREE
>><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>________________________________________________________
>>To unsubscribe from this list, go to: 
>><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>
>
>
>------------------------------------------------------------------------------
>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>Get technology previously reserved for billion-dollar corporations, FREE
>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>________________________________________________________
>To unsubscribe from this list, go to: 
>https://lists.sourceforge.net/lists/listinfo/misterhouse-users





------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

ricks03

Look at the code that's associated with when there's no data and
produce that grey bar. It's the right range, so you should be able to
do the same thing.

I don't know how to get it to show up in the back, as that grey bar
for no data doesn't do it (hmm, actually it does leave the scale
lines!). I have noticed however when i'm graphing many lines that
when the lines cross, the same line is always in the "front", so you
might be able to pull it off by making the determination for the red
bad to be set _first_, before the other lines are set (meaning the
lines are layered in the order they are in the code).

Rick


At 11:19 PM 12/14/2014, Dan Bemowski wrote:

>How do I have it show the red bar the full height of the graph like
>the alternating white and gray bars on the background?  Also, how do
>I get it to show behind the line plots for the temps?
>
>Thanks for the help
>
>Dan
>
>On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
>>
>>
>>Nice work Dan. It's probably possible to use tempspare9 and
>>tempspare10 to have values already in RRD.
>>
>>Because it's the AREA command, you might be able to use the average
>>temp, and +1/-1 from the average temp (so you don't change the range
>>of your graph? )
>>
>>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
>> >I think I am close to figuring this out.  Not only did I have to
>> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
>> >also had to make modifications to the
>> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
>> >the modifications, I had to start a new RRD data file because the
>> >old file did not have the data for the new HVAC Heat and Cool.
>> >
>> >Here is a sample of what I have working as of now:
>> >[]
>> >
>> >
>> >I have 2 issues right now.  First, my values of 0 for off and 100
>> >for on need to be tweaked.  I need it to show similar to the "No
>> >data" area that is in gray.  That sizes itself to the other data
>> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
>> >other temp data in the graph.  I need that to be in the background
>> >and have the other line plots on top of it.
>> >
>> >Once I get this all finished I will post a page on my website
>> >explaining the changes that need to be made.
>> >
>> >Dan B.
>> >
>> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>> >>That is exactly what I am trying to do.  When/if I figure it out,
>> >>I'll post it here.
>> >>
>> >>Dan
>> >>
>> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>> >>>
>> >>>
>> >>>Dan let us know how you plot the area for hvac on or off. I can
>> >>>track the states of my stats and would be interested in layering
>> >>>heating and cooling on top of my room temp graphs.
>> >>>
>> >>>Sent from my mobile device.
>> >>>
>> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>> >>>
>> <<<mailto:[hidden email]>mailto:[hidden email]><mailto:[hidden email]>[hidden email]>
>> wrote:
>> >>> >
>> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> >>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> >>> > graph on it, just send email now that I look at it.
>> >>> >
>> >>> > I just looked at Marc's graph. It's got to be in the
>> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> >>> > be the same code that generates the greyed out areas when there's no
>> >>> > data. That looks like $colorna , which looks like it sets the value
>> >>> > by setting  the area for no data where it changes the value of AREA
>> >>> > when there $colorna is blank.
>> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> >>> > "AREA:wipeout#$colorna:No data\\\\n",
>> >>> > "AREA:wipeout2#$colorna",
>> >>> >
>> >>> > that looks like it's configured for each of the different graph types.
>> >>> >
>> >>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> >>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> >>> > actually he's not displaying the average, so perhaps instead he's
>> >>> > overwriting (and  relabeling?) the average temp value to 0, and
>> >>> > changing the value of $colorna based on which thing is on. That's
>> >>> > probably easier with less hacking.
>> >>> >
>> >>> > Rick
>> >>> > (and a note that my ibutton code is really just the hacked up base MH
>> >>> > ibutton code after adding a function for my specific device, to make
>> >>> > sure credit is where credit's due)
>> >>> >
>> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >>> >> Rick,
>> >>> >>
>> >>> >> I don't see where you add the wet value to the weather hash, or is
>> >>> >> that not what you add it to?  Also, can you show a sample of your
>> >>> >> graph and how it looks?
>> >>> >>
>> >>> >> Thanks for the quick response.
>> >>> >>
>> >>> >> Dan B.
>> >>> >>
>> >>> >>
>> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> I'm not sure if this answers your question, but I have
>> >>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>> >>>
>> >>> >>> to get everything to display.
>> >>> >>>
>> >>> >>> I define my ibuttons thusly:
>> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> >>> Space 2438 Humind
>> >>> >>> etc.
>> >>> >>>
>> >>> >>> And definet hey order they're read in so they line up:
>> >>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> >>> order for RRD
>> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3,
>> $ib_sensor2,
>> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
>> >>> of sensors
>> >>> >>>         #             Sump         Library      Crawl    computer
>> >>> >>>      Den         Servers     BedRoom        Dining Room
>> >>> >>>
>> >>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> >>> need, in particular the adding of the "Wet" value for the
>> water sensor
>> >>> >>>
>> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>> >>>> store the data in the {weather} hash.  All I would
>> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>> >>> (on or off), and
>> >>> >>>> then present it as Marc does on his graph for "Main HVAC
>> >>> Heat" and "Main
>> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
>> >>> into the weather
>> >>> >>>> hash, as that should be easy enough
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>>
>> ------------------------------------------------------------------------------
>> >>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>> > from Actuate! Instantly Supercharge Your Business Reports
>> and Dashboards
>> >>> > with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more
>> >>> > Get technology previously reserved for billion-dollar
>> corporations, FREE
>> >>> >
>> >>>
>> <<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>> > ________________________________________________________
>> >>> > To unsubscribe from this list, go to:
>> >>>
>> <<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>> >
>> >>
>> >>
>> >>
>> >>-----------------------------------------------------------------
>> -------------
>> >>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >>Get technology previously reserved for billion-dollar corporations, FREE
>> >><<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/414 
>> 0/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>________________________________________________________
>> >>To unsubscribe from this list, go to:
>> >><<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>
>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>
>> >
>> >
>> >
>> >------------------------------------------------------------------
>> ------------
>> >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >Get technology previously reserved for billion-dollar corporations, FREE
>> ><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ 
>> ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >________________________________________________________
>> >To unsubscribe from this list, go to:
>> ><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>ht
>> tps://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>>
>>




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
So I sent an email to Marc Merlin regarding this, and Marc had the solution.  When defining a color for RRD, it is not just an RGB value like #RRGGBB.  The color definition also takes a transparency value also #RRGGBBTT.  Just using #RRGGBB gives you the color with NO transparency.

Here is what I came up with:


I will be writing up a better post on how to do all of this as I don't have the time at the moment.

Dan

On Sun, 2014-12-14 at 23:39 -0500, Rick Steeves wrote:
Look at the code that's associated with when there's no data and 
produce that grey bar. It's the right range, so you should be able to 
do the same thing.

I don't know how to get it to show up in the back, as that grey bar 
for no data doesn't do it (hmm, actually it does leave the scale 
lines!). I have noticed however when i'm graphing many lines that 
when the lines cross, the same line is always in the "front", so you 
might be able to pull it off by making the determination for the red 
bad to be set _first_, before the other lines are set (meaning the 
lines are layered in the order they are in the code).

Rick


At 11:19 PM 12/14/2014, Dan Bemowski wrote:
>How do I have it show the red bar the full height of the graph like 
>the alternating white and gray bars on the background?  Also, how do 
>I get it to show behind the line plots for the temps?
>
>Thanks for the help
>
>Dan
>
>On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
>>
>>
>>Nice work Dan. It's probably possible to use tempspare9 and
>>tempspare10 to have values already in RRD.
>>
>>Because it's the AREA command, you might be able to use the average
>>temp, and +1/-1 from the average temp (so you don't change the range
>>of your graph? )
>>
>>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
>> >I think I am close to figuring this out.  Not only did I have to
>> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
>> >also had to make modifications to the
>> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
>> >the modifications, I had to start a new RRD data file because the
>> >old file did not have the data for the new HVAC Heat and Cool.
>> >
>> >Here is a sample of what I have working as of now:
>> >[]
>> >
>> >
>> >I have 2 issues right now.  First, my values of 0 for off and 100
>> >for on need to be tweaked.  I need it to show similar to the "No
>> >data" area that is in gray.  That sizes itself to the other data
>> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
>> >other temp data in the graph.  I need that to be in the background
>> >and have the other line plots on top of it.
>> >
>> >Once I get this all finished I will post a page on my website
>> >explaining the changes that need to be made.
>> >
>> >Dan B.
>> >
>> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>> >>That is exactly what I am trying to do.  When/if I figure it out,
>> >>I'll post it here.
>> >>
>> >>Dan
>> >>
>> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>> >>>
>> >>>
>> >>>Dan let us know how you plot the area for hvac on or off. I can
>> >>>track the states of my stats and would be interested in layering
>> >>>heating and cooling on top of my room temp graphs.
>> >>>
>> >>>Sent from my mobile device.
>> >>>
>> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>> >>> 
>> <<<[hidden email]>[hidden email]><[hidden email]>[hidden email]> 
>> wrote:
>> >>> >
>> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> >>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> >>> > graph on it, just send email now that I look at it.
>> >>> >
>> >>> > I just looked at Marc's graph. It's got to be in the
>> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> >>> > be the same code that generates the greyed out areas when there's no
>> >>> > data. That looks like $colorna , which looks like it sets the value
>> >>> > by setting  the area for no data where it changes the value of AREA
>> >>> > when there $colorna is blank.
>> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> >>> > "AREA:wipeout#$colorna:No data\\\\n",
>> >>> > "AREA:wipeout2#$colorna",
>> >>> >
>> >>> > that looks like it's configured for each of the different graph types.
>> >>> >
>> >>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> >>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> >>> > actually he's not displaying the average, so perhaps instead he's
>> >>> > overwriting (and  relabeling?) the average temp value to 0, and
>> >>> > changing the value of $colorna based on which thing is on. That's
>> >>> > probably easier with less hacking.
>> >>> >
>> >>> > Rick
>> >>> > (and a note that my ibutton code is really just the hacked up base MH
>> >>> > ibutton code after adding a function for my specific device, to make
>> >>> > sure credit is where credit's due)
>> >>> >
>> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >>> >> Rick,
>> >>> >>
>> >>> >> I don't see where you add the wet value to the weather hash, or is
>> >>> >> that not what you add it to?  Also, can you show a sample of your
>> >>> >> graph and how it looks?
>> >>> >>
>> >>> >> Thanks for the quick response.
>> >>> >>
>> >>> >> Dan B.
>> >>> >>
>> >>> >>
>> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> I'm not sure if this answers your question, but I have
>> >>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>> >>>
>> >>> >>> to get everything to display.
>> >>> >>>
>> >>> >>> I define my ibuttons thusly:
>> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> >>> Space 2438 Humind
>> >>> >>> etc.
>> >>> >>>
>> >>> >>> And definet hey order they're read in so they line up:
>> >>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> >>> order for RRD
>> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, 
>> $ib_sensor2,
>> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
>> >>> of sensors
>> >>> >>>         #             Sump         Library      Crawl    computer
>> >>> >>>      Den         Servers     BedRoom        Dining Room
>> >>> >>>
>> >>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> >>> need, in particular the adding of the "Wet" value for the 
>> water sensor
>> >>> >>>
>> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>> >>>> store the data in the {weather} hash.  All I would
>> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>> >>> (on or off), and
>> >>> >>>> then present it as Marc does on his graph for "Main HVAC
>> >>> Heat" and "Main
>> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
>> >>> into the weather
>> >>> >>>> hash, as that should be easy enough
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> 
>> ------------------------------------------------------------------------------
>> >>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>> > from Actuate! Instantly Supercharge Your Business Reports 
>> and Dashboards
>> >>> > with Interactivity, Sharing, Native Excel Exports, App 
>> Integration & more
>> >>> > Get technology previously reserved for billion-dollar 
>> corporations, FREE
>> >>> >
>> >>> 
>> <<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>> > ________________________________________________________
>> >>> > To unsubscribe from this list, go to:
>> >>> 
>> <<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>> >
>> >>
>> >>
>> >>
>> >>----------------------------------------------------------------- 
>> -------------
>> >>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >>Get technology previously reserved for billion-dollar corporations, FREE
>> >><<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/414 
>> 0/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>________________________________________________________
>> >>To unsubscribe from this list, go to:
>> >><<https://lists.sourceforge.net/lists/listinfo/misterhouse-users> 
>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>
>> >
>> >
>> >
>> >------------------------------------------------------------------ 
>> ------------
>> >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >Get technology previously reserved for billion-dollar corporations, FREE
>> ><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ 
>> ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >________________________________________________________
>> >To unsubscribe from this list, go to:
>> ><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>ht 
>> tps://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>>
>>





------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

Marc MERLIN-7
Administrator
On Thu, Dec 18, 2014 at 04:44:53PM -0600, Dan Bemowski wrote:
> So I sent an email to Marc Merlin regarding this, and Marc had the
> solution.  When defining a color for RRD, it is not just an RGB value
> like #RRGGBB.  The color definition also takes a transparency value also
> #RRGGBBTT.  Just using #RRGGBB gives you the color with NO transparency.
>
> Here is what I came up with:
 
Note that there is both an rrdtool-users and cacti-users list for things
like this :)

Marc
 

> I will be writing up a better post on how to do all of this as I don't
> have the time at the moment.
>
> Dan
>
> On Sun, 2014-12-14 at 23:39 -0500, Rick Steeves wrote:
>
> > Look at the code that's associated with when there's no data and
> > produce that grey bar. It's the right range, so you should be able to
> > do the same thing.
> >
> > I don't know how to get it to show up in the back, as that grey bar
> > for no data doesn't do it (hmm, actually it does leave the scale
> > lines!). I have noticed however when i'm graphing many lines that
> > when the lines cross, the same line is always in the "front", so you
> > might be able to pull it off by making the determination for the red
> > bad to be set _first_, before the other lines are set (meaning the
> > lines are layered in the order they are in the code).
> >
> > Rick
> >
> >
> > At 11:19 PM 12/14/2014, Dan Bemowski wrote:
> > >How do I have it show the red bar the full height of the graph like
> > >the alternating white and gray bars on the background?  Also, how do
> > >I get it to show behind the line plots for the temps?
> > >
> > >Thanks for the help
> > >
> > >Dan
> > >
> > >On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
> > >>
> > >>
> > >>Nice work Dan. It's probably possible to use tempspare9 and
> > >>tempspare10 to have values already in RRD.
> > >>
> > >>Because it's the AREA command, you might be able to use the average
> > >>temp, and +1/-1 from the average temp (so you don't change the range
> > >>of your graph? )
> > >>
> > >>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
> > >> >I think I am close to figuring this out.  Not only did I have to
> > >> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
> > >> >also had to make modifications to the
> > >> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
> > >> >the modifications, I had to start a new RRD data file because the
> > >> >old file did not have the data for the new HVAC Heat and Cool.
> > >> >
> > >> >Here is a sample of what I have working as of now:
> > >> >[]
> > >> >
> > >> >
> > >> >I have 2 issues right now.  First, my values of 0 for off and 100
> > >> >for on need to be tweaked.  I need it to show similar to the "No
> > >> >data" area that is in gray.  That sizes itself to the other data
> > >> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
> > >> >other temp data in the graph.  I need that to be in the background
> > >> >and have the other line plots on top of it.
> > >> >
> > >> >Once I get this all finished I will post a page on my website
> > >> >explaining the changes that need to be made.
> > >> >
> > >> >Dan B.
> > >> >
> > >> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
> > >> >>That is exactly what I am trying to do.  When/if I figure it out,
> > >> >>I'll post it here.
> > >> >>
> > >> >>Dan
> > >> >>
> > >> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
> > >> >>>
> > >> >>>
> > >> >>>Dan let us know how you plot the area for hvac on or off. I can
> > >> >>>track the states of my stats and would be interested in layering
> > >> >>>heating and cooling on top of my room temp graphs.
> > >> >>>
> > >> >>>Sent from my mobile device.
> > >> >>>
> > >> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
> > >> >>>
> > >> <<<mailto:[hidden email]>mailto:[hidden email]><mailto:[hidden email]>[hidden email]>
> > >> wrote:
> > >> >>> >
> > >> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
> > >> >>> > assumed I remembered. Ignore the comment about wet, I don't actually
> > >> >>> > graph on it, just send email now that I look at it.
> > >> >>> >
> > >> >>> > I just looked at Marc's graph. It's got to be in the
> > >> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
> > >> >>> > be the same code that generates the greyed out areas when there's no
> > >> >>> > data. That looks like $colorna , which looks like it sets the value
> > >> >>> > by setting  the area for no data where it changes the value of AREA
> > >> >>> > when there $colorna is blank.
> > >> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
> > >> >>> > "AREA:wipeout#$colorna:No data\\\\n",
> > >> >>> > "AREA:wipeout2#$colorna",
> > >> >>> >
> > >> >>> > that looks like it's configured for each of the different graph types.
> > >> >>> >
> > >> >>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
> > >> >>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
> > >> >>> > actually he's not displaying the average, so perhaps instead he's
> > >> >>> > overwriting (and  relabeling?) the average temp value to 0, and
> > >> >>> > changing the value of $colorna based on which thing is on. That's
> > >> >>> > probably easier with less hacking.
> > >> >>> >
> > >> >>> > Rick
> > >> >>> > (and a note that my ibutton code is really just the hacked up base MH
> > >> >>> > ibutton code after adding a function for my specific device, to make
> > >> >>> > sure credit is where credit's due)
> > >> >>> >
> > >> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
> > >> >>> >> Rick,
> > >> >>> >>
> > >> >>> >> I don't see where you add the wet value to the weather hash, or is
> > >> >>> >> that not what you add it to?  Also, can you show a sample of your
> > >> >>> >> graph and how it looks?
> > >> >>> >>
> > >> >>> >> Thanks for the quick response.
> > >> >>> >>
> > >> >>> >> Dan B.
> > >> >>> >>
> > >> >>> >>
> > >> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
> > >> >>> >>>
> > >> >>> >>>
> > >> >>> >>> I'm not sure if this answers your question, but I have
> > >> >>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
> > >> >>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
> > >> >>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
> > >> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
> > >> >>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
> > >> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
> > >> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
> > >> >>> >>>
> > >> >>> >>> to get everything to display.
> > >> >>> >>>
> > >> >>> >>> I define my ibuttons thusly:
> > >> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
> > >> >>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
> > >> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
> > >> >>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
> > >> >>> >>> Space 2438 Humind
> > >> >>> >>> etc.
> > >> >>> >>>
> > >> >>> >>> And definet hey order they're read in so they line up:
> > >> >>> >>> # The order the sensors are read in - used to determine TempSpare
> > >> >>> >>> order for RRD
> > >> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3,
> > >> $ib_sensor2,
> > >> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
> > >> >>> of sensors
> > >> >>> >>>         #             Sump         Library      Crawl    computer
> > >> >>> >>>      Den         Servers     BedRoom        Dining Room
> > >> >>> >>>
> > >> >>> >>> I've attached my ibutton code which should have all the pieces you
> > >> >>> >>> need, in particular the adding of the "Wet" value for the
> > >> water sensor
> > >> >>> >>>
> > >> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
> > >> >>> >>>> store the data in the {weather} hash.  All I would
> > >> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
> > >> >>> (on or off), and
> > >> >>> >>>> then present it as Marc does on his graph for "Main HVAC
> > >> >>> Heat" and "Main
> > >> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
> > >> >>> into the weather
> > >> >>> >>>> hash, as that should be easy enough
> > >> >>> >
> > >> >>> >
> > >> >>> >
> > >> >>> >
> > >> >>> >
> > >> >>>
> > >> ------------------------------------------------------------------------------
> > >> >>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > >> >>> > from Actuate! Instantly Supercharge Your Business Reports
> > >> and Dashboards
> > >> >>> > with Interactivity, Sharing, Native Excel Exports, App
> > >> Integration & more
> > >> >>> > Get technology previously reserved for billion-dollar
> > >> corporations, FREE
> > >> >>> >
> > >> >>>
> > >> <<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > >> >>> > ________________________________________________________
> > >> >>> > To unsubscribe from this list, go to:
> > >> >>>
> > >> <<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> > >> >>> >
> > >> >>
> > >> >>
> > >> >>
> > >> >>-----------------------------------------------------------------
> > >> -------------
> > >> >>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > >> >>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > >> >>with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > >> >>Get technology previously reserved for billion-dollar corporations, FREE
> > >> >><<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/414 
> > >> 0/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > >> >>________________________________________________________
> > >> >>To unsubscribe from this list, go to:
> > >> >><<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>
> > >> https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> > >> >>
> > >> >
> > >> >
> > >> >
> > >> >------------------------------------------------------------------
> > >> ------------
> > >> >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > >> >from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > >> >with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > >> >Get technology previously reserved for billion-dollar corporations, FREE
> > >> ><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ 
> > >> ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > >> >________________________________________________________
> > >> >To unsubscribe from this list, go to:
> > >> ><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>ht
> > >> tps://lists.sourceforge.net/lists/listinfo/misterhouse-users
> > >>
> > >>
> > >>
> >
> >
> >
>
>

> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>


--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                         | PGP 1024R/763BE901

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

ricks03

I found it really helpful to have this here,  and look forward to
specifics on Dan's MH changes.

At 12:39 AM 12/19/2014, Marc MERLIN wrote:

>On Thu, Dec 18, 2014 at 04:44:53PM -0600, Dan Bemowski wrote:
> > So I sent an email to Marc Merlin regarding this, and Marc had the
> > solution.  When defining a color for RRD, it is not just an RGB value
> > like #RRGGBB.  The color definition also takes a transparency value also
> > #RRGGBBTT.  Just using #RRGGBB gives you the color with NO transparency.
> >
> > Here is what I came up with:
>
>Note that there is both an rrdtool-users and cacti-users list for things
>like this :)
>
>Marc
>
> > I will be writing up a better post on how to do all of this as I don't
> > have the time at the moment.
> >
> > Dan
> >
> > On Sun, 2014-12-14 at 23:39 -0500, Rick Steeves wrote:
> >
> > > Look at the code that's associated with when there's no data and
> > > produce that grey bar. It's the right range, so you should be able to
> > > do the same thing.
> > >
> > > I don't know how to get it to show up in the back, as that grey bar
> > > for no data doesn't do it (hmm, actually it does leave the scale
> > > lines!). I have noticed however when i'm graphing many lines that
> > > when the lines cross, the same line is always in the "front", so you
> > > might be able to pull it off by making the determination for the red
> > > bad to be set _first_, before the other lines are set (meaning the
> > > lines are layered in the order they are in the code).
> > >
> > > Rick
> > >
> > >
> > > At 11:19 PM 12/14/2014, Dan Bemowski wrote:
> > > >How do I have it show the red bar the full height of the graph like
> > > >the alternating white and gray bars on the background?  Also, how do
> > > >I get it to show behind the line plots for the temps?
> > > >
> > > >Thanks for the help
> > > >
> > > >Dan
> > > >
> > > >On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
> > > >>
> > > >>
> > > >>Nice work Dan. It's probably possible to use tempspare9 and
> > > >>tempspare10 to have values already in RRD.
> > > >>
> > > >>Because it's the AREA command, you might be able to use the average
> > > >>temp, and +1/-1 from the average temp (so you don't change the range
> > > >>of your graph? )
> > > >>
> > > >>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
> > > >> >I think I am close to figuring this out.  Not only did I have to
> > > >> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
> > > >> >also had to make modifications to the
> > > >> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
> > > >> >the modifications, I had to start a new RRD data file because the
> > > >> >old file did not have the data for the new HVAC Heat and Cool.
> > > >> >
> > > >> >Here is a sample of what I have working as of now:
> > > >> >[]
> > > >> >
> > > >> >
> > > >> >I have 2 issues right now.  First, my values of 0 for off and 100
> > > >> >for on need to be tweaked.  I need it to show similar to the "No
> > > >> >data" area that is in gray.  That sizes itself to the other data
> > > >> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
> > > >> >other temp data in the graph.  I need that to be in the background
> > > >> >and have the other line plots on top of it.
> > > >> >
> > > >> >Once I get this all finished I will post a page on my website
> > > >> >explaining the changes that need to be made.
> > > >> >
> > > >> >Dan B.
> > > >> >
> > > >> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
> > > >> >>That is exactly what I am trying to do.  When/if I figure it out,
> > > >> >>I'll post it here.
> > > >> >>
> > > >> >>Dan
> > > >> >>
> > > >> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
> > > >> >>>
> > > >> >>>
> > > >> >>>Dan let us know how you plot the area for hvac on or off. I can
> > > >> >>>track the states of my stats and would be interested in layering
> > > >> >>>heating and cooling on top of my room temp graphs.
> > > >> >>>
> > > >> >>>Sent from my mobile device.
> > > >> >>>
> > > >> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
> > > >> >>>
> > > >>
> <<<mailto:[hidden email]>mailto:[hidden email]><mailto:[hidden email]>[hidden email]>
>
> > > >> wrote:
> > > >> >>> >
> > > >> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
> > > >> >>> > assumed I remembered. Ignore the comment about wet, I
> don't actually
> > > >> >>> > graph on it, just send email now that I look at it.
> > > >> >>> >
> > > >> >>> > I just looked at Marc's graph. It's got to be in the
> > > >> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs
> , and it would
> > > >> >>> > be the same code that generates the greyed out areas
> when there's no
> > > >> >>> > data. That looks like $colorna , which looks like it
> sets the value
> > > >> >>> > by setting  the area for no data where it changes the
> value of AREA
> > > >> >>> > when there $colorna is blank.
> > > >> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
> > > >> >>> > "AREA:wipeout#$colorna:No data\\\\n",
> > > >> >>> > "AREA:wipeout2#$colorna",
> > > >> >>> >
> > > >> >>> > that looks like it's configured for each of the
> different graph types.
> > > >> >>> >
> > > >> >>> > Of course, my copy of weather_rrd_update_graphs is
> from 2007, so who
> > > >> >>> > knows what it looks like now :-) maybe it's built in
> somewhere.  Hmm,
> > > >> >>> > actually he's not displaying the average, so perhaps
> instead he's
> > > >> >>> > overwriting (and  relabeling?) the average temp value to 0, and
> > > >> >>> > changing the value of $colorna based on which thing is
> on. That's
> > > >> >>> > probably easier with less hacking.
> > > >> >>> >
> > > >> >>> > Rick
> > > >> >>> > (and a note that my ibutton code is really just the
> hacked up base MH
> > > >> >>> > ibutton code after adding a function for my specific
> device, to make
> > > >> >>> > sure credit is where credit's due)
> > > >> >>> >
> > > >> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
> > > >> >>> >> Rick,
> > > >> >>> >>
> > > >> >>> >> I don't see where you add the wet value to the
> weather hash, or is
> > > >> >>> >> that not what you add it to?  Also, can you show a
> sample of your
> > > >> >>> >> graph and how it looks?
> > > >> >>> >>
> > > >> >>> >> Thanks for the quick response.
> > > >> >>> >>
> > > >> >>> >> Dan B.
> > > >> >>> >>
> > > >> >>> >>
> > > >> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
> > > >> >>> >>>
> > > >> >>> >>>
> > > >> >>> >>> I'm not sure if this answers your question, but I have
> > > >> >>> >>> weather_graph_sensor_names = temp => Outdoor
> Temperature, humid =>
> > > >> >>> >>> Outdoor Humidity, dew => Dew Point, intemp =>
> Average Indoor Temp,
> > > >> >>> >>> inhumid => Average Indoor Humidity, tempspare1 =>
> Water Sensor,
> > > >> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space,
> tempspare4 =>
> > > >> >>> >>> Computer Room, tempspare5 => Den, tempspare6 =>
> Servers, tempspare7
> > > >> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1
> => Hum-Water
> > > >> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
> > > >> >>> >>>
> > > >> >>> >>> to get everything to display.
> > > >> >>> >>>
> > > >> >>> >>> I define my ibuttons thusly:
> > > >> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
> > > >> >>> >>>         $ib_sensor2->{object_name} = 'Computer
> Room';   # MH 1920
> > > >> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
> > > >> >>> >>>         $ib_sensor3->{object_name} = 'Crawl
> Space';     # Crawl
> > > >> >>> >>> Space 2438 Humind
> > > >> >>> >>> etc.
> > > >> >>> >>>
> > > >> >>> >>> And definet hey order they're read in so they line up:
> > > >> >>> >>> # The order the sensors are read in - used to
> determine TempSpare
> > > >> >>> >>> order for RRD
> > > >> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3,
> > > >> $ib_sensor2,
> > > >> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
> > > >> >>> of sensors
> > > >> >>> >>>         #             Sump         Library
> Crawl    computer
> > > >> >>> >>>      Den         Servers     BedRoom        Dining Room
> > > >> >>> >>>
> > > >> >>> >>> I've attached my ibutton code which should have all
> the pieces you
> > > >> >>> >>> need, in particular the adding of the "Wet" value for the
> > > >> water sensor
> > > >> >>> >>>
> > > >> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
> > > >> >>> >>>> store the data in the {weather} hash.  All I would
> > > >> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
> > > >> >>> (on or off), and
> > > >> >>> >>>> then present it as Marc does on his graph for "Main HVAC
> > > >> >>> Heat" and "Main
> > > >> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
> > > >> >>> into the weather
> > > >> >>> >>>> hash, as that should be easy enough
> > > >> >>> >
> > > >> >>> >
> > > >> >>> >
> > > >> >>> >
> > > >> >>> >
> > > >> >>>
> > > >>
> ------------------------------------------------------------------------------
> > > >> >>> > Download BIRT iHub F-Type - The Free Enterprise-Grade
> BIRT Server
> > > >> >>> > from Actuate! Instantly Supercharge Your Business Reports
> > > >> and Dashboards
> > > >> >>> > with Interactivity, Sharing, Native Excel Exports, App
> > > >> Integration & more
> > > >> >>> > Get technology previously reserved for billion-dollar
> > > >> corporations, FREE
> > > >> >>> >
> > > >> >>>
> > > >>
> <<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > > >> >>> > ________________________________________________________
> > > >> >>> > To unsubscribe from this list, go to:
> > > >> >>>
> > > >>
> <<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> > > >> >>> >
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >>-----------------------------------------------------------------
> > > >> -------------
> > > >> >>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > > >> >>from Actuate! Instantly Supercharge Your Business Reports
> and Dashboards
> > > >> >>with Interactivity, Sharing, Native Excel Exports, App
> Integration & more
> > > >> >>Get technology previously reserved for billion-dollar
> corporations, FREE
> > > >> >><<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&i 
> u=/414 > > >>
> 0/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > > >> >>________________________________________________________
> > > >> >>To unsubscribe from this list, go to:
> > > >> >><<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>
> > > >>
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> > > >> >>
> > > >> >
> > > >> >
> > > >> >
> > > >> >------------------------------------------------------------------
> > > >> ------------
> > > >> >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > > >> >from Actuate! Instantly Supercharge Your Business Reports
> and Dashboards
> > > >> >with Interactivity, Sharing, Native Excel Exports, App
> Integration & more
> > > >> >Get technology previously reserved for billion-dollar
> corporations, FREE
> > > >> ><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu= 
> /4140/ > > >>
> ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > > >> >________________________________________________________
> > > >> >To unsubscribe from this list, go to:
> > > >> ><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>ht
> > > >> tps://lists.sourceforge.net/lists/listinfo/misterhouse-users
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >
> >
> >
>
> >
> ------------------------------------------------------------------------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > Get technology previously reserved for billion-dollar corporations, FREE
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>
> > ________________________________________________________
> > To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >
>
>
>--
>"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
>Microsoft is to operating systems ....
>                                       .... what McDonalds is to
> gourmet cooking
>Home page: http://marc.merlins.org/                         | PGP
>1024R/763BE901




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

H Plato
In reply to this post by dbemowsk
Hi Dan,

  Di you get this all sorted out?  I have 6 temperature sensors that I am plotting inside, and I’d like to layer on 4 more area-type plots, main-heating, upper-hearing, main-cooling, upper-cooling. I also don’t want to lose the years of history. 

It looks like I use TempSpare1-6 so I think I can use TempSpare7-10. It’s been a long time since I’ve looked at RRDs, in my code, I set the temps via this:

$temp_master_bedroom->map_to_weather('TempSpare1','Master Bedroom');
$temp_theatre->map_to_weather('TempSpare2','Theatre');
$temp_garage->map_to_weather('TempSpare3','Garage');
$temp_basement->map_to_weather('TempSpare4','Under Stairs');
$temp_server_room->map_to_weather('TempSpare5','Server Room');
$temp_freezer->map_to_weather('TempSpare6','Basement Freezer');

With those objects being Analog_Sensor_Items.

I’m guessing there needs to be some sort of user code, that sets TempSpare7,8,9,10 when heating and cooling change states?



On Dec 18, 2014, at 3:44 PM, Dan Bemowski <[hidden email]> wrote:

So I sent an email to Marc Merlin regarding this, and Marc had the solution.  When defining a color for RRD, it is not just an RGB value like #RRGGBB.  The color definition also takes a transparency value also #RRGGBBTT.  Just using #RRGGBB gives you the color with NO transparency.

Here is what I came up with:


I will be writing up a better post on how to do all of this as I don't have the time at the moment.

Dan

On Sun, 2014-12-14 at 23:39 -0500, Rick Steeves wrote:
Look at the code that's associated with when there's no data and 
produce that grey bar. It's the right range, so you should be able to 
do the same thing.

I don't know how to get it to show up in the back, as that grey bar 
for no data doesn't do it (hmm, actually it does leave the scale 
lines!). I have noticed however when i'm graphing many lines that 
when the lines cross, the same line is always in the "front", so you 
might be able to pull it off by making the determination for the red 
bad to be set _first_, before the other lines are set (meaning the 
lines are layered in the order they are in the code).

Rick


At 11:19 PM 12/14/2014, Dan Bemowski wrote:
>How do I have it show the red bar the full height of the graph like 
>the alternating white and gray bars on the background?  Also, how do 
>I get it to show behind the line plots for the temps?
>
>Thanks for the help
>
>Dan
>
>On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
>>
>>
>>Nice work Dan. It's probably possible to use tempspare9 and
>>tempspare10 to have values already in RRD.
>>
>>Because it's the AREA command, you might be able to use the average
>>temp, and +1/-1 from the average temp (so you don't change the range
>>of your graph? )
>>
>>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
>> >I think I am close to figuring this out.  Not only did I have to
>> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
>> >also had to make modifications to the
>> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
>> >the modifications, I had to start a new RRD data file because the
>> >old file did not have the data for the new HVAC Heat and Cool.
>> >
>> >Here is a sample of what I have working as of now:
>> >[]
>> >
>> >
>> >I have 2 issues right now.  First, my values of 0 for off and 100
>> >for on need to be tweaked.  I need it to show similar to the "No
>> >data" area that is in gray.  That sizes itself to the other data
>> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
>> >other temp data in the graph.  I need that to be in the background
>> >and have the other line plots on top of it.
>> >
>> >Once I get this all finished I will post a page on my website
>> >explaining the changes that need to be made.
>> >
>> >Dan B.
>> >
>> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>> >>That is exactly what I am trying to do.  When/if I figure it out,
>> >>I'll post it here.
>> >>
>> >>Dan
>> >>
>> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>> >>>
>> >>>
>> >>>Dan let us know how you plot the area for hvac on or off. I can
>> >>>track the states of my stats and would be interested in layering
>> >>>heating and cooling on top of my room temp graphs.
>> >>>
>> >>>Sent from my mobile device.
>> >>>
>> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>> >>> 
>> <<<[hidden email]>[hidden email]><[hidden email]>[hidden email]> 
>> wrote:
>> >>> >
>> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> >>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> >>> > graph on it, just send email now that I look at it.
>> >>> >
>> >>> > I just looked at Marc's graph. It's got to be in the
>> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> >>> > be the same code that generates the greyed out areas when there's no
>> >>> > data. That looks like $colorna , which looks like it sets the value
>> >>> > by setting  the area for no data where it changes the value of AREA
>> >>> > when there $colorna is blank.
>> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> >>> > "AREA:wipeout#$colorna:No data\\\\n",
>> >>> > "AREA:wipeout2#$colorna",
>> >>> >
>> >>> > that looks like it's configured for each of the different graph types.
>> >>> >
>> >>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> >>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> >>> > actually he's not displaying the average, so perhaps instead he's
>> >>> > overwriting (and  relabeling?) the average temp value to 0, and
>> >>> > changing the value of $colorna based on which thing is on. That's
>> >>> > probably easier with less hacking.
>> >>> >
>> >>> > Rick
>> >>> > (and a note that my ibutton code is really just the hacked up base MH
>> >>> > ibutton code after adding a function for my specific device, to make
>> >>> > sure credit is where credit's due)
>> >>> >
>> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >>> >> Rick,
>> >>> >>
>> >>> >> I don't see where you add the wet value to the weather hash, or is
>> >>> >> that not what you add it to?  Also, can you show a sample of your
>> >>> >> graph and how it looks?
>> >>> >>
>> >>> >> Thanks for the quick response.
>> >>> >>
>> >>> >> Dan B.
>> >>> >>
>> >>> >>
>> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> I'm not sure if this answers your question, but I have
>> >>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>> >>>
>> >>> >>> to get everything to display.
>> >>> >>>
>> >>> >>> I define my ibuttons thusly:
>> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> >>> Space 2438 Humind
>> >>> >>> etc.
>> >>> >>>
>> >>> >>> And definet hey order they're read in so they line up:
>> >>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> >>> order for RRD
>> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, 
>> $ib_sensor2,
>> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
>> >>> of sensors
>> >>> >>>         #             Sump         Library      Crawl    computer
>> >>> >>>      Den         Servers     BedRoom        Dining Room
>> >>> >>>
>> >>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> >>> need, in particular the adding of the "Wet" value for the 
>> water sensor
>> >>> >>>
>> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>> >>>> store the data in the {weather} hash.  All I would
>> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>> >>> (on or off), and
>> >>> >>>> then present it as Marc does on his graph for "Main HVAC
>> >>> Heat" and "Main
>> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
>> >>> into the weather
>> >>> >>>> hash, as that should be easy enough
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> 
>> ------------------------------------------------------------------------------
>> >>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>> > from Actuate! Instantly Supercharge Your Business Reports 
>> and Dashboards
>> >>> > with Interactivity, Sharing, Native Excel Exports, App 
>> Integration & more
>> >>> > Get technology previously reserved for billion-dollar 
>> corporations, FREE
>> >>> >
>> >>> 
>> <<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>> > ________________________________________________________
>> >>> > To unsubscribe from this list, go to:
>> >>> 
>> <<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>> >
>> >>
>> >>
>> >>
>> >>----------------------------------------------------------------- 
>> -------------
>> >>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >>Get technology previously reserved for billion-dollar corporations, FREE
>> >><<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/414 
>> 0/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>________________________________________________________
>> >>To unsubscribe from this list, go to:
>> >><<https://lists.sourceforge.net/lists/listinfo/misterhouse-users> 
>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>
>> >
>> >
>> >
>> >------------------------------------------------------------------ 
>> ------------
>> >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >Get technology previously reserved for billion-dollar corporations, FREE
>> ><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ 
>> ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >________________________________________________________
>> >To unsubscribe from this list, go to:
>> ><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>ht 
>> <a href="tps://lists.sourceforge.net/lists/listinfo/misterhouse-users" class="">tps://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>>
>>






------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

dbemowsk
In reply to this post by dbemowsk
I do.  I was trying to put a party on my automation blog the other day and am having a little trouble with the CMS.  I should have it posted soon though.

Dan B.


Sent on the new Sprint Network from my Samsung Galaxy S®4.


-------- Original message --------
From: H Plato
Date:01/02/2015 4:55 PM (GMT-06:00)
To: Dan Bemowski ,Rick Steeves ,[hidden email]
Subject: Re: [mh] rrd graphs in misterhouse

Hi Dan,

  Di you get this all sorted out?  I have 6 temperature sensors that I am plotting inside, and I’d like to layer on 4 more area-type plots, main-heating, upper-hearing, main-cooling, upper-cooling. I also don’t want to lose the years of history. 

It looks like I use TempSpare1-6 so I think I can use TempSpare7-10. It’s been a long time since I’ve looked at RRDs, in my code, I set the temps via this:

$temp_master_bedroom->map_to_weather('TempSpare1','Master Bedroom');
$temp_theatre->map_to_weather('TempSpare2','Theatre');
$temp_garage->map_to_weather('TempSpare3','Garage');
$temp_basement->map_to_weather('TempSpare4','Under Stairs');
$temp_server_room->map_to_weather('TempSpare5','Server Room');
$temp_freezer->map_to_weather('TempSpare6','Basement Freezer');

With those objects being Analog_Sensor_Items.

I’m guessing there needs to be some sort of user code, that sets TempSpare7,8,9,10 when heating and cooling change states?



On Dec 18, 2014, at 3:44 PM, Dan Bemowski <[hidden email]> wrote:

So I sent an email to Marc Merlin regarding this, and Marc had the solution.  When defining a color for RRD, it is not just an RGB value like #RRGGBB.  The color definition also takes a transparency value also #RRGGBBTT.  Just using #RRGGBB gives you the color with NO transparency.

Here is what I came up with:


I will be writing up a better post on how to do all of this as I don't have the time at the moment.

Dan

On Sun, 2014-12-14 at 23:39 -0500, Rick Steeves wrote:
Look at the code that's associated with when there's no data and 
produce that grey bar. It's the right range, so you should be able to 
do the same thing.

I don't know how to get it to show up in the back, as that grey bar 
for no data doesn't do it (hmm, actually it does leave the scale 
lines!). I have noticed however when i'm graphing many lines that 
when the lines cross, the same line is always in the "front", so you 
might be able to pull it off by making the determination for the red 
bad to be set _first_, before the other lines are set (meaning the 
lines are layered in the order they are in the code).

Rick


At 11:19 PM 12/14/2014, Dan Bemowski wrote:
>How do I have it show the red bar the full height of the graph like 
>the alternating white and gray bars on the background?  Also, how do 
>I get it to show behind the line plots for the temps?
>
>Thanks for the help
>
>Dan
>
>On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
>>
>>
>>Nice work Dan. It's probably possible to use tempspare9 and
>>tempspare10 to have values already in RRD.
>>
>>Because it's the AREA command, you might be able to use the average
>>temp, and +1/-1 from the average temp (so you don't change the range
>>of your graph? )
>>
>>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
>> >I think I am close to figuring this out.  Not only did I have to
>> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
>> >also had to make modifications to the
>> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
>> >the modifications, I had to start a new RRD data file because the
>> >old file did not have the data for the new HVAC Heat and Cool.
>> >
>> >Here is a sample of what I have working as of now:
>> >[]
>> >
>> >
>> >I have 2 issues right now.  First, my values of 0 for off and 100
>> >for on need to be tweaked.  I need it to show similar to the "No
>> >data" area that is in gray.  That sizes itself to the other data
>> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
>> >other temp data in the graph.  I need that to be in the background
>> >and have the other line plots on top of it.
>> >
>> >Once I get this all finished I will post a page on my website
>> >explaining the changes that need to be made.
>> >
>> >Dan B.
>> >
>> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>> >>That is exactly what I am trying to do.  When/if I figure it out,
>> >>I'll post it here.
>> >>
>> >>Dan
>> >>
>> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>> >>>
>> >>>
>> >>>Dan let us know how you plot the area for hvac on or off. I can
>> >>>track the states of my stats and would be interested in layering
>> >>>heating and cooling on top of my room temp graphs.
>> >>>
>> >>>Sent from my mobile device.
>> >>>
>> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>> >>> 
>> <<<[hidden email]>[hidden email]><[hidden email]>[hidden email]> 
>> wrote:
>> >>> >
>> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> >>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> >>> > graph on it, just send email now that I look at it.
>> >>> >
>> >>> > I just looked at Marc's graph. It's got to be in the
>> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> >>> > be the same code that generates the greyed out areas when there's no
>> >>> > data. That looks like $colorna , which looks like it sets the value
>> >>> > by setting  the area for no data where it changes the value of AREA
>> >>> > when there $colorna is blank.
>> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> >>> > "AREA:wipeout#$colorna:No data\\\\n",
>> >>> > "AREA:wipeout2#$colorna",
>> >>> >
>> >>> > that looks like it's configured for each of the different graph types.
>> >>> >
>> >>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> >>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> >>> > actually he's not displaying the average, so perhaps instead he's
>> >>> > overwriting (and  relabeling?) the average temp value to 0, and
>> >>> > changing the value of $colorna based on which thing is on. That's
>> >>> > probably easier with less hacking.
>> >>> >
>> >>> > Rick
>> >>> > (and a note that my ibutton code is really just the hacked up base MH
>> >>> > ibutton code after adding a function for my specific device, to make
>> >>> > sure credit is where credit's due)
>> >>> >
>> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >>> >> Rick,
>> >>> >>
>> >>> >> I don't see where you add the wet value to the weather hash, or is
>> >>> >> that not what you add it to?  Also, can you show a sample of your
>> >>> >> graph and how it looks?
>> >>> >>
>> >>> >> Thanks for the quick response.
>> >>> >>
>> >>> >> Dan B.
>> >>> >>
>> >>> >>
>> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> I'm not sure if this answers your question, but I have
>> >>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>> >>>
>> >>> >>> to get everything to display.
>> >>> >>>
>> >>> >>> I define my ibuttons thusly:
>> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> >>> Space 2438 Humind
>> >>> >>> etc.
>> >>> >>>
>> >>> >>> And definet hey order they're read in so they line up:
>> >>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> >>> order for RRD
>> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, 
>> $ib_sensor2,
>> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
>> >>> of sensors
>> >>> >>>         #             Sump         Library      Crawl    computer
>> >>> >>>      Den         Servers     BedRoom        Dining Room
>> >>> >>>
>> >>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> >>> need, in particular the adding of the "Wet" value for the 
>> water sensor
>> >>> >>>
>> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>> >>>> store the data in the {weather} hash.  All I would
>> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>> >>> (on or off), and
>> >>> >>>> then present it as Marc does on his graph for "Main HVAC
>> >>> Heat" and "Main
>> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
>> >>> into the weather
>> >>> >>>> hash, as that should be easy enough
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> 
>> ------------------------------------------------------------------------------
>> >>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>> > from Actuate! Instantly Supercharge Your Business Reports 
>> and Dashboards
>> >>> > with Interactivity, Sharing, Native Excel Exports, App 
>> Integration & more
>> >>> > Get technology previously reserved for billion-dollar 
>> corporations, FREE
>> >>> >
>> >>> 
>> <<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>> > ________________________________________________________
>> >>> > To unsubscribe from this list, go to:
>> >>> 
>> <<https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>> >
>> >>
>> >>
>> >>
>> >>----------------------------------------------------------------- 
>> -------------
>> >>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >>Get technology previously reserved for billion-dollar corporations, FREE
>> >><<http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/414 
>> 0/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >>________________________________________________________
>> >>To unsubscribe from this list, go to:
>> >><<https://lists.sourceforge.net/lists/listinfo/misterhouse-users> 
>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users>https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>> >>
>> >
>> >
>> >
>> >------------------------------------------------------------------ 
>> ------------
>> >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> >with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> >Get technology previously reserved for billion-dollar corporations, FREE
>> ><http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ 
>> ostg.clktrk>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> >________________________________________________________
>> >To unsubscribe from this list, go to:
>> ><https://lists.sourceforge.net/lists/listinfo/misterhouse-users>ht 
>> <a href="tps://lists.sourceforge.net/lists/listinfo/misterhouse-users" class="">tps://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>>
>>






------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: rrd graphs in misterhouse

Steve Switzer

Hi everyone! I'm lurking again, and searching old threads to learn more. I just started using RRD graphs yesterday, and I want to have the same thing working. There's a few issues that I need to fix:

  1. My outdoor temp graph seems to be missing the actual temperature, but shows the "Apparent" temp: https://dl.dropboxusercontent.com/u/699427/weather_tempout_1day.png
  2. My indoor temps are blank on the graphs: https://dl.dropboxusercontent.com/u/699427/weather_tempin_1day.png
    1. Data exists in my csv file: https://dl.dropboxusercontent.com/u/699427/weather.csv.2016_08
    2. I'm setting $Weather{TempIndoor} in my Insteon code, but decided to try setting $Weather{tempindoor} and $Weather{intemp} as well, but this didn't help.
  3. How do I add the HVAC on/off overlay in MH 4.1? These instructions seem to be for an older copy of the weather_rrd_update.pl file.
  4. I can SSH into the MH server and look at data/rrd/graphs/* to see the graphs, but is there a place in the web interface to see this?

Thank you!

Steve



On 01/02/2015 06:10 PM, Dan Bemowski wrote:
I do.  I was trying to put a party on my automation blog the other day and am having a little trouble with the CMS.  I should have it posted soon though.

Dan B.


Sent on the new Sprint Network from my Samsung Galaxy S®4.


-------- Original message --------
From: H Plato
Date:01/02/2015 4:55 PM (GMT-06:00)
To: Dan Bemowski ,Rick Steeves ,[hidden email]
Subject: Re: [mh] rrd graphs in misterhouse

Hi Dan,

  Di you get this all sorted out?  I have 6 temperature sensors that I am plotting inside, and I’d like to layer on 4 more area-type plots, main-heating, upper-hearing, main-cooling, upper-cooling. I also don’t want to lose the years of history. 

It looks like I use TempSpare1-6 so I think I can use TempSpare7-10. It’s been a long time since I’ve looked at RRDs, in my code, I set the temps via this:

$temp_master_bedroom->map_to_weather('TempSpare1','Master Bedroom');
$temp_theatre->map_to_weather('TempSpare2','Theatre');
$temp_garage->map_to_weather('TempSpare3','Garage');
$temp_basement->map_to_weather('TempSpare4','Under Stairs');
$temp_server_room->map_to_weather('TempSpare5','Server Room');
$temp_freezer->map_to_weather('TempSpare6','Basement Freezer');

With those objects being Analog_Sensor_Items.

I’m guessing there needs to be some sort of user code, that sets TempSpare7,8,9,10 when heating and cooling change states?



On Dec 18, 2014, at 3:44 PM, Dan Bemowski <[hidden email]> wrote:

So I sent an email to Marc Merlin regarding this, and Marc had the solution.  When defining a color for RRD, it is not just an RGB value like #RRGGBB.  The color definition also takes a transparency value also #RRGGBBTT.  Just using #RRGGBB gives you the color with NO transparency.

Here is what I came up with:
<img moz-do-not-send="true" src="imap://steve%40switzerny%2Eorg@imap.googlemail.com:993/fetch%3EUID%3E/%5BGmail%5D/Drafts%3E1142?1418942441" class="" align="bottom" border="0">

I will be writing up a better post on how to do all of this as I don't have the time at the moment.

Dan

On Sun, 2014-12-14 at 23:39 -0500, Rick Steeves wrote:
Look at the code that's associated with when there's no data and 
produce that grey bar. It's the right range, so you should be able to 
do the same thing.

I don't know how to get it to show up in the back, as that grey bar 
for no data doesn't do it (hmm, actually it does leave the scale 
lines!). I have noticed however when i'm graphing many lines that 
when the lines cross, the same line is always in the "front", so you 
might be able to pull it off by making the determination for the red 
bad to be set _first_, before the other lines are set (meaning the 
lines are layered in the order they are in the code).

Rick


At 11:19 PM 12/14/2014, Dan Bemowski wrote:
>How do I have it show the red bar the full height of the graph like 
>the alternating white and gray bars on the background?  Also, how do 
>I get it to show behind the line plots for the temps?
>
>Thanks for the help
>
>Dan
>
>On Sun, 2014-12-14 at 22:42 -0500, Rick Steeves wrote:
>>
>>
>>Nice work Dan. It's probably possible to use tempspare9 and
>>tempspare10 to have values already in RRD.
>>
>>Because it's the AREA command, you might be able to use the average
>>temp, and +1/-1 from the average temp (so you don't change the range
>>of your graph? )
>>
>>At 10:00 PM 12/14/2014, Dan Bemowski wrote:
>> >I think I am close to figuring this out.  Not only did I have to
>> >edit the ~/misterhouse/bin/weather_rrd_update_graphs file, but I
>> >also had to make modifications to the
>> >~/misterhouse/code/common/weather_rrd_update.pl file.  After making
>> >the modifications, I had to start a new RRD data file because the
>> >old file did not have the data for the new HVAC Heat and Cool.
>> >
>> >Here is a sample of what I have working as of now:
>> >[]
>> >
>> >
>> >I have 2 issues right now.  First, my values of 0 for off and 100
>> >for on need to be tweaked.  I need it to show similar to the "No
>> >data" area that is in gray.  That sizes itself to the other data
>> >being displayed.  Second, the "Main HVAC Heat" color overwrites the
>> >other temp data in the graph.  I need that to be in the background
>> >and have the other line plots on top of it.
>> >
>> >Once I get this all finished I will post a page on my website
>> >explaining the changes that need to be made.
>> >
>> >Dan B.
>> >
>> >On Sun, 2014-12-14 at 11:49 -0600, Dan Bemowski wrote:
>> >>That is exactly what I am trying to do.  When/if I figure it out,
>> >>I'll post it here.
>> >>
>> >>Dan
>> >>
>> >>On Sun, 2014-12-14 at 10:39 -0700, H Plato wrote:
>> >>>
>> >>>
>> >>>Dan let us know how you plot the area for hvac on or off. I can
>> >>>track the states of my stats and would be interested in layering
>> >>>heating and cooling on top of my room temp graphs.
>> >>>
>> >>>Sent from my mobile device.
>> >>>
>> >>> > On Dec 14, 2014, at 12:36 AM, Rick Steeves
>> >>> 
>> <<<[hidden email]>[hidden email]><[hidden email]>[hidden email]> 
>> wrote:
>> >>> >
>> >>> > Hah, my fault, I haven't looked at that code since 2010 and just
>> >>> > assumed I remembered. Ignore the comment about wet, I don't actually
>> >>> > graph on it, just send email now that I look at it.
>> >>> >
>> >>> > I just looked at Marc's graph. It's got to be in the
>> >>> > weather_rrd_update code > mh/bin/mh_rrd_update_graphs , and it would
>> >>> > be the same code that generates the greyed out areas when there's no
>> >>> > data. That looks like $colorna , which looks like it sets the value
>> >>> > by setting  the area for no data where it changes the value of AREA
>> >>> > when there $colorna is blank.
>> >>> > "LINE2:fvar#$colortempavg:Average outdoor temperature",
>> >>> > "AREA:wipeout#$colorna:No data\\\\n",
>> >>> > "AREA:wipeout2#$colorna",
>> >>> >
>> >>> > that looks like it's configured for each of the different graph types.
>> >>> >
>> >>> > Of course, my copy of weather_rrd_update_graphs is from 2007, so who
>> >>> > knows what it looks like now :-) maybe it's built in somewhere.  Hmm,
>> >>> > actually he's not displaying the average, so perhaps instead he's
>> >>> > overwriting (and  relabeling?) the average temp value to 0, and
>> >>> > changing the value of $colorna based on which thing is on. That's
>> >>> > probably easier with less hacking.
>> >>> >
>> >>> > Rick
>> >>> > (and a note that my ibutton code is really just the hacked up base MH
>> >>> > ibutton code after adding a function for my specific device, to make
>> >>> > sure credit is where credit's due)
>> >>> >
>> >>> > At 01:32 AM 12/14/2014, Dan Bemowski wrote:
>> >>> >> Rick,
>> >>> >>
>> >>> >> I don't see where you add the wet value to the weather hash, or is
>> >>> >> that not what you add it to?  Also, can you show a sample of your
>> >>> >> graph and how it looks?
>> >>> >>
>> >>> >> Thanks for the quick response.
>> >>> >>
>> >>> >> Dan B.
>> >>> >>
>> >>> >>
>> >>> >>> On Sun, 2014-12-14 at 00:37 -0500, Rick Steeves wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> I'm not sure if this answers your question, but I have
>> >>> >>> weather_graph_sensor_names = temp => Outdoor Temperature, humid =>
>> >>> >>> Outdoor Humidity, dew => Dew Point, intemp => Average Indoor Temp,
>> >>> >>> inhumid => Average Indoor Humidity, tempspare1 => Water Sensor,
>> >>> >>> tempspare2 => Library, tempspare3 => Crawl Space, tempspare4 =>
>> >>> >>> Computer Room, tempspare5 => Den, tempspare6 => Servers, tempspare7
>> >>> >>> => Dining Room, tempspare8 => BedRoom, humidspare1 => Hum-Water
>> >>> >>> Sensor, humidspare2 => Hum-Crawl Space
>> >>> >>>
>> >>> >>> to get everything to display.
>> >>> >>>
>> >>> >>> I define my ibuttons thusly:
>> >>> >>> my $ib_sensor2= new iButton '100008013e7bdb5a';
>> >>> >>>         $ib_sensor2->{object_name} = 'Computer Room';   # MH 1920
>> >>> >>> my $ib_sensor3= new iButton '26000000815f600e';
>> >>> >>>         $ib_sensor3->{object_name} = 'Crawl Space';     # Crawl
>> >>> >>> Space 2438 Humind
>> >>> >>> etc.
>> >>> >>>
>> >>> >>> And definet hey order they're read in so they line up:
>> >>> >>> # The order the sensors are read in - used to determine TempSpare
>> >>> >>> order for RRD
>> >>> >>> my @ib_sensors = ($ib_sensor1, $ib_sensor6, $ib_sensor3, 
>> $ib_sensor2,
>> >>> >>> $ib_sensor5, ib_sensor4,$ib_sensor7,$ib_sensor8); # the array
>> >>> of sensors
>> >>> >>>         #             Sump         Library      Crawl    computer
>> >>> >>>      Den         Servers     BedRoom        Dining Room
>> >>> >>>
>> >>> >>> I've attached my ibutton code which should have all the pieces you
>> >>> >>> need, in particular the adding of the "Wet" value for the 
>> water sensor
>> >>> >>>
>> >>> >>> At 10:07 PM 12/13/2014, dbemowsk wrote:
>> >>> >>>> store the data in the {weather} hash.  All I would
>> >>> >>>> need to store is, furnace/heat (on or off), and AC/cooling
>> >>> (on or off), and
>> >>> >>>> then present it as Marc does on his graph for "Main HVAC
>> >>> Heat" and "Main
>> >>> >>>> HVAC Cool".  I am not too concerned about getting the data
>> >>> into the weather
>> >>> >>>> hash, as that should be easy enough



------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

12
Loading...