How to combine sensors in single graph?

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

Moderators: leecollings, remb0

number3
Posts: 6
Joined: Friday 15 August 2014 20:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

How to combine sensors in single graph?

Post 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...
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: How to combine sensors in single graph?

Post 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
Quality outlives Quantity!
number3
Posts: 6
Joined: Friday 15 August 2014 20:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to combine sensors in single graph?

Post 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.
alttab
Posts: 25
Joined: Friday 07 November 2014 19:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to combine sensors in single graph?

Post by alttab »

looking for this too
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: How to combine sensors in single graph?

Post by Sappien »

+1
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: How to combine sensors in single graph?

Post by roblom »

+1
pietervanharen
Posts: 7
Joined: Monday 23 December 2013 19:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to combine sensors in single graph?

Post by pietervanharen »

+1
sheriff
Posts: 9
Joined: Thursday 11 September 2014 19:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Contact:

Re: How to combine sensors in single graph?

Post by sheriff »

+1 maybe in a simple reporting module ?
number3
Posts: 6
Joined: Friday 15 August 2014 20:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: How to combine sensors in single graph?

Post 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?
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: How to combine sensors in single graph?

Post 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
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to combine sensors in single graph?

Post 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.
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
ashygan
Posts: 5
Joined: Wednesday 16 September 2015 22:55
Target OS: Linux
Domoticz version:
Contact:

Re: How to combine sensors in single graph?

Post 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 :)
User avatar
andreo
Posts: 42
Joined: Friday 07 August 2015 21:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: Anna Paulowna, Netherlands
Contact:

Re: How to combine sensors in single graph?

Post by andreo »

Very usefull
Latest version of Domoticz and more running on Docker|Raspberry Pi 4-B 8GB Bookworm|RF-Link|Klik Aan Klik Uit|Nefit easy|ESPeasy|P1 power meter|S0PCM-5 through Ser2Net|Alecto WS5500|FrtizBox|Satel Integra|Solis
Greetz Andre.
Abbadon
Posts: 40
Joined: Thursday 01 October 2015 8:25
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland, Wrocław
Contact:

Re: How to combine sensors in single graph?

Post by Abbadon »

bump?
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: How to combine sensors in single graph?

Post 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.
gerb
Posts: 3
Joined: Friday 18 March 2016 22:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to combine sensors in single graph?

Post 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.
free_nsc
Posts: 36
Joined: Friday 19 December 2014 0:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to combine sensors in single graph?

Post 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.
RidingTheFlow
Posts: 72
Joined: Friday 11 March 2016 18:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Essex, UK
Contact:

Re: How to combine sensors in single graph?

Post 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 :)
korniza
Posts: 157
Joined: Thursday 27 August 2015 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6028
Location: Greece
Contact:

Re: How to combine sensors in single graph?

Post 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
>>>> Google Home <<<<<
SBC: Odroid XU4 * Raspberry Pi2 * banana Pi v1
Peripherals: rfxtrx433E, aeon z-stick gen5, bluetooth dongles
Extended Software packages: Xeoma (video NVR), FHEM (extra home automation software)
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: How to combine sensors in single graph?

Post by gizmocuz »

+1
How about influxdb and grafana ?
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests