Getting year log data by month

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Triangle
Posts: 8
Joined: Wednesday 10 June 2015 20:42
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Getting year log data by month

Post by Triangle »

Hi, For my frontpage (thanks G3rard) I'm making some small changes/additions. One of them is my solar energy production. I have the day graph and the mont graph. Both displayed as sparklines. I do like to have a year graph with totals for each month. I can get the data:

Code: Select all

/json.htm?type=graph&sensor=counter&idx=69&range=year
But data is a total per day. Is there a json api call to get the data as in domoticz itself (under report), or do I have to total the data myself? :roll:
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Getting year log data by month

Post by Egregius »

Total it yourself, or maybe read it directly from the database and let sql total it with a group by statement.
franzelare
Posts: 141
Joined: Thursday 19 February 2015 21:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting year log data by month

Post by franzelare »

how do you display graphs on your frontpage, also want do display some graphs on my custom frontpage...
Triangle
Posts: 8
Joined: Wednesday 10 June 2015 20:42
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Getting year log data by month

Post by Triangle »

I used http://omnipotent.net/jquery.sparkline/#s-about and an ajax call in frontpage.js.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest