Re: [rrd-users] Daily consumption

2016-11-13 Thread Simon Hobson
Bram Langen  wrote:

> ... but for full flexibility and data analysis (such as comparing same period 
> year over year) I let the Raspberry Pi write the counter values once a day to 
> a text file. Every so often I import the CSV data into MS-Excel, allowing any 
> data comparison you want.

You can (AIUI) do time period comparisons by using the time offset functions.
I've not done it myself, but AIUI you can create two CDEFs and offset one of 
them by (say) 365 days, then plot them on the same graph.

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] Daily consumption

2016-11-13 Thread Bram Langen
Guillaume,

Assuming you already created graphs, then creating one that shows daily numbers would work the same way - just set the intervals properly.  I wonder though it the result will be as 'clear' as you hope it will be.  I use the RRD-tool for my meter readings as well, including a couple of graphs showing a 1 and a 10 year period.  They give me a good visual indication, but for full flexibility and data analysis (such as comparing same period year over year) I let the Raspberry Pi write the counter values once a day to a text file.  Every so often I import the CSV data into MS-Excel, allowing any data comparison you want.
Bram 

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[rrd-users] Daily consumption

2016-11-13 Thread Guillaume Betous
Hi all !

I leave in France, and having a RPi and a very basic UART adapter, I can
retrieve some data from my electricity Meter. I could create some basic
RRDTool graphs, and I can now foolow my instantaneous consumption.

Here is my db creation :
rrdtool create edf \
   --start now \
   --step 60 \
   DS:cpt:COUNTER:60:0:U \
   RRA:AVERAGE:0.5:1:12 \
   RRA:AVERAGE:0.5:12:48 \
   RRA:AVERAGE:0.5:288:365 \

The "cpt" value is the electricity counter raw value (in Wh), meaning
electric consumption since the beginning (a very big number, which can only
increase). I update it every 10s.

What I want now is to have my daily consumption. I want a graph which
clearly show what was my total consumption yesterday, and the day before,
and the day before etc.

How can I do that ?

Thanks for your help !

gUI
-- 
Pour la santé de votre ordinateur, préférez les logiciels libres.
Lire son mail : http://www.mozilla-europe.org/fr/products/thunderbird/
Browser le web : http://www.mozilla-europe.org/fr/products/firefox/
Suite bureautique : http://www.libreoffice.org/download/
___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users