Graphs Enhancements...

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
trixwood

Graphs Enhancements...

Post by trixwood »

Is it possible to have as a graph not only day, month, year but also hour?

So it also would be nice to have in the other graphs, an opacity graph underneat it with the highest values.
So you can detect extremes, which does not show up on the day graph... something to detect spikes...

ke stupid me, i found out you could zoom in... :oops:

Still can't see spikes thou
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Graphs Enhancements...

Post by Egregius »

Something like this?

Image

I store temperatures every minute in a MySQL database. After that, I can do whatever I want with them :D
trixwood

Re: Graphs Enhancements...

Post by trixwood »

So how do you produce the graph?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Graphs Enhancements...

Post by Egregius »

The chart is produced by https://github.com/Egregius/PHP-Custom- ... /chart.php
Example usage at https://github.com/Egregius/PHP-Custom- ... r/temp.php

With the temperatures stored every minute in MySQL I can easily calculate min/avg/max based on the timestamp. I do that by grouping on the left characters of the timestamp. So possibilities are 10 minutes, 1 hour, 1 day, 1 month, ...
I did it this way because I wanted to store all temperatures for a while. Normally this week my house gets extra insulation so I hope I can see the difference in the graphs.
Will extend my script then so I can have 2 days plotted in 1 graph (or something like that).
Amsterdam020
Posts: 55
Joined: Saturday 05 March 2016 21:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5629
Contact:

Re: Graphs Enhancements...

Post by Amsterdam020 »

Egregius, can you share your script how to export from Domoticz to a mysql database and how to implement it?
Thanks!
Rp3, youlesss, rfxcom, philips hue, dsb1820
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Graphs Enhancements...

Post by Toulon7559 »

@egregius

Just for quick understanding ( ;-) avoiding the need/effort to read/dissect your scripts):
at what location is your resulting MySQL-database (at computer running Domoticz?, or elsewhere?)?

Reason for the question:
I am looking for a solution to get a graph/chart at a remote website, which means that somehow I have to transfer&convert information between Domoticz and the websiteserver. See http://www.domoticz.com/forum/viewtopic ... 28&t=13537
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest