more G-Labs products

Author Topic: Viewing multiple days on the Energy Meter graph  (Read 2931 times)

August 22, 2015, 10:19:56 PM
Read 2931 times

Fmstrat

  • **
  • Information
  • Jr. Member
  • Posts: 34
Hi,

I'm not sure I fully understand the energy meter display. For instance, in the attached screenshot, I'm showing 8/20-8/22. It's currently 16:16 hours.

On the left, it seems to actually be showing today, 8/22 up until 16:00. Then, on the right, what is that? the 20th? The 21st? Shouldn't the graph be showing the information from left to right with the key indicating the day of the month?

Thanks!

August 23, 2015, 05:54:59 AM
Reply #1

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
It always shows midnight to 23:59 across the bottom.  Red is today's data from midnight to now. Bars are min max average for past days based upon what you select with the date selecters. Took me a little while to figure it out. For some things it's nice but for other things that don't repeat on daily cycle it would be nice to have multiple days across the bottom

I have been using thingspeak.com for better charts. Their website is a little clunky for configuring the charts.  There is a  plugin to make one chart with two lines.  It gets slow with a lot of data too.

But even better there is "HighChart", a html/JavaScript file you can download to your computer that is awesome, it will reference the thingspeak.com data and displays a very flexible/configurable chart.  You can click to add lines/data, drag to expand timescale.  Here is the thingspeak specific HighChart:

http://community.thingspeak.com/forum/thingspeak-plugins/highchart-plugin/

Actually it could probably be tweaked for home genie data without using thingspeak. Not sure if it could reference the existing statistics data file.  Or maybe a HG program to write to CSV file that HighCharts could reference.   Not sure of the licensing either.   

Could we add a webpage to the home genie server easily, or is it all dynamically generated?  Then we could go to: http://IPADDRESS/hg/HighChartMultichannel.html

[edited to make it more readable and added few details]

« Last Edit: August 24, 2015, 06:14:22 PM by kevin1 »

August 23, 2015, 07:54:25 PM
Reply #2

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Hi All,

Now you have one more option in the Statistics : Hours or Days.
Hours works as before.
Days shows data on several days as selected by date entries.
I have commited that several weeks ago. But you have to compile a new version by yourself with last github sources of HG.
Here is one sample of Meter.Watts on August.

August 24, 2015, 06:33:22 AM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
This is pretty much exactly what I've been looking for...

http://forum.arduino.cc/index.php?action=dlattach;topic=213058.0;attach=66752

Any chance this could be interacted with from within HG?

August 24, 2015, 10:31:14 AM
Reply #4

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Hi bkenobi,
I thought about that also. I am in time to add multi channels charts, but actually only by domain of values. I don't mix two Y channels

Cheers
Dani
« Last Edit: August 24, 2015, 10:36:39 AM by dani »

August 24, 2015, 04:09:47 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Multiple values on the same chart would be preferred, but being able to display multiple days worth of data and interact with the data similar to the picture would be sufficient.  Having just the current day and an overall average of the period is not all that useful for my needs, so what you have showed in your picture is an interesting improvement.

September 12, 2015, 03:19:56 PM
Reply #6

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Hi bkenobi,

My multichannels charts is ready look at that topic for screenshot :
http://www.homegenie.it/forum/index.php?topic=129.msg6488#msg6488
You have to wait until Gene merge it

Cheers
Dani

September 12, 2015, 03:56:11 PM
Reply #7

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
The picture looks great! Looking forward to testing it out.  my primary issue currently is figuring out why HG stops processing the MQTT data after around 3 days.  Once I suse that and your display update is incorporated, I can move to the next project.

September 12, 2015, 09:53:43 PM
Reply #8

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
dani-

is this multiple days and multiple channels?  looks great!  ready for some new features!

September 13, 2015, 12:16:53 AM
Reply #9

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Yes multiple days and multi channel. As you choice. Only if you choice Temperature, it shows every sensor with température.

September 15, 2015, 12:21:17 PM
Reply #10

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Hi bkenobi, kevin1,

My combined chart (Temperature-Humidity is ready look at that topic for screenshot :
http://www.homegenie.it/forum/index.php?topic=129.msg6521#msg6521

Cheers
Dani

September 15, 2015, 04:55:20 PM
Reply #11

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
That looks great!  Thanks for taking the time to work on this.