Page 1 of 2

How to combine sensors in single graph?

Posted: Saturday 08 November 2014 15:19
by number3
Is it possible to combine a Tempearture Sensor and let's say Gas Usage in a single graph?
If the answer is yes, can you explain how?

Thanks...

Re: How to combine sensors in single graph?

Posted: Saturday 08 November 2014 16:14
by gizmocuz
i guess you already know the answer of this as you did not find this option.
Please propose a patch that does this

Re: How to combine sensors in single graph?

Posted: Saturday 08 November 2014 21:30
by number3
gizmocuz wrote:i guess you already know the answer of this as you did not find this option.
Please propose a patch that does this
Nope, I didnot know. But now I do... hm, let me think about this.

The thing I want to to is to visualize the temperature sensor (virtual weatherstation) and the gasmeter readings in a single graph.
So I was thinking that it might be possible to combine two "sensors" in a single sensor field.

Re: How to combine sensors in single graph?

Posted: Sunday 09 November 2014 16:11
by alttab
looking for this too

Re: How to combine sensors in single graph?

Posted: Monday 10 November 2014 8:05
by Sappien
+1

Re: How to combine sensors in single graph?

Posted: Monday 10 November 2014 20:39
by roblom
+1

Re: How to combine sensors in single graph?

Posted: Monday 10 November 2014 21:42
by pietervanharen
+1

Re: How to combine sensors in single graph?

Posted: Tuesday 11 November 2014 20:22
by sheriff
+1 maybe in a simple reporting module ?

Re: How to combine sensors in single graph?

Posted: Saturday 15 November 2014 14:05
by number3
So has anyone that responded a suggestion how to solve this? Seen a library or a other open source project that we could look at to take the reporting module from?

Anyone?

Re: How to combine sensors in single graph?

Posted: Sunday 16 November 2014 0:11
by roblom
I would say start with the same units (so for example kWh). I think that would be less complicated because it's the same like the temp graphs.

As i have no programming skills I'm not able to select a useable graph software but maybe someone else can and use the list below as a startpoint.
http://en.wikipedia.org/wiki/Graph_database

Re: How to combine sensors in single graph?

Posted: Thursday 12 November 2015 22:57
by Eternity
Yeah, great idea!

I would love to combine my electricity consumption graph (via P1-USB) with the energy produced by "Winddelen" (windmill) graph.
So, what is used versus what is produced.

Both graphs are available in Domoticz, but unfortunately in separate windows/charts.

Re: How to combine sensors in single graph?

Posted: Friday 13 November 2015 0:29
by ashygan
While this would be a cool new feature, meanwhile, you could still make your own graphs using the json api, a custom page and a graph libray like jschart.
The custom graphs pages in Domoticz all call a URL like http://domoticz_server/json.htm?type=graph&sensor=temp&idx=8&range=2015-10-22T2015-10-29&graphtype=1&graphTemp=true&graphChill=false&graphHum=false&graphBaro=false&graphDew=false&graphSet=false

This solution needs you to get your hands dirty, but it also corrects one bug on custom graphs : The colors always stay the same :)

Re: How to combine sensors in single graph?

Posted: Friday 13 November 2015 1:39
by andreo
Very usefull

Re: How to combine sensors in single graph?

Posted: Tuesday 29 December 2015 10:57
by Abbadon
bump?

Re: How to combine sensors in single graph?

Posted: Tuesday 29 December 2015 11:04
by Egregius
Maybe https://github.com/Egregius/PHP-Custom- ... r/temp.php can lead to a solution.
It shows a graph of room temperature together with the setpoint.

Re: How to combine sensors in single graph?

Posted: Sunday 27 March 2016 14:23
by gerb
Eternity wrote:Yeah, great idea!

I would love to combine my electricity consumption graph (via P1-USB) with the energy produced by "Winddelen" (windmill) graph.
So, what is used versus what is produced.

Both graphs are available in Domoticz, but unfortunately in separate windows/charts.
I use a dummy "p1 smart meter" to combine my two solar strings, one as tariff 1 and the other as tariff 2. Because domoticz thinks it is a smart meter, it automatically adds the two values for the daily result. This only works if you have not more than two inputs. I would rather have a custom graph possibility where you can choose the number of inputs and if domoticz should add them up or not (during the (live) present day or only in the graphs of the previous days. I think there are plenty people that want to combine/add measurements.

Re: How to combine sensors in single graph?

Posted: Wednesday 30 March 2016 23:55
by free_nsc
I see there is something now in the latest release that allows to show Produced and Used values on one graph.

How is the data for used energy to be fed into the sensor?
I am using json integration fed from my Goodwe inverter but would love to also present values from Aeotec HEM 2 on one graph.

Re: How to combine sensors in single graph?

Posted: Thursday 31 March 2016 13:44
by RidingTheFlow
It would be surely a cool feature, but, it will require quite some thought and tinkering on how to implement it.
Even when I theoretically can add all this to Domoticz, for now its less time use just to export CSVs and analyse in Excel :)

Re: How to combine sensors in single graph?

Posted: Sunday 15 May 2016 13:20
by korniza
+1
if customs sensors can get more than 1 measurement types (for example temp/hummidity/barometer) adding multiple sensors can give a nice graph matrix

Re: How to combine sensors in single graph?

Posted: Sunday 15 May 2016 13:27
by gizmocuz
+1
How about influxdb and grafana ?