Page 1 of 2

multiple temperature sensors in one graph

Posted: Monday 31 October 2016 21:32
by wobbenl
Is it possible to always show multiple temperature sensors in one graph?
I have several temperature sensors and wants to make clear map

Re: multiple temperature sensors in one graph

Posted: Monday 31 October 2016 22:36
by bobkersten
This is something that's on a lot of people's wishlist for quite some time now, including mine. Not only to be able to combine temperature sensors into one chart, but also utility, switch and other devices. For instance, combine thermostat setpoints with actual room temperatures and cv control, solar energy generation vs energy consumption, outside temperture vs gas usage, etc. Lots of very useful use cases.

I've been working on something, but unfortunately it is far from being ready yet.

Re: multiple temperature sensors in one graph

Posted: Monday 31 October 2016 22:36
by Egregius
Something like this? :mrgreen:

Image

Re: multiple temperature sensors in one graph

Posted: Monday 31 October 2016 22:59
by bobkersten
Something like that, only from within Domoticz :) Like this.

Re: multiple temperature sensors in one graph

Posted: Monday 31 October 2016 23:07
by bobkersten
And as the original poster requested; something like this.

Re: multiple temperature sensors in one graph

Posted: Monday 31 October 2016 23:59
by mischa
@bobkersten

How do you get the chart menu option?

Re: multiple temperature sensors in one graph

Posted: Tuesday 01 November 2016 6:49
by bobkersten
mischa wrote:How do you get the chart menu option?
It's something I've been working on myself, but like I said, it isn't ready yet.

Re: multiple temperature sensors in one graph

Posted: Tuesday 01 November 2016 12:38
by wobbenl
yes like that. :)

Re: multiple temperature sensors in one graph

Posted: Tuesday 01 November 2016 12:56
by edwin1234
Looks very nice,
I want that too :P
How did it ?

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 17:25
by Champal
@bobkersten : it's exactly the missing part of domoticz ! (and why I'm looking for another software)
It's not ready but can we help you to test/improve your work ?

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 19:11
by Toulon7559
Can be mistaken, but Domoticz release V3.5864 (and even some earlier versions) already has some comparable capability under the tab Temperature.
The following screenshots (with Dutch language) show a screencut for my configuration for the location of the selection key, and an example picture with a combination graph for some of my thermometers.

Bob,
Has your effort a link with this functionality?
Selection of 'Adapted Graphics'
Selection of 'Adapted Graphics'
screenshot-aangepaste grafiek1 2016-11-05 19-00-30.png (26.45 KiB) Viewed 8214 times
Example graph with multiple temperatures
Example graph with multiple temperatures
screenshot-aangepaste grafiek2 2016-11-05 19-03-54.png (129.62 KiB) Viewed 8214 times

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 19:19
by mischa
True, only for temperature sensors not for utility sensors like electrical consumption or sensors from your solar installation.

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 19:24
by Toulon7559
;-) Apparently several people thinking along the same lines at the same time .....

The first graph in Bob's message (= 3.jpg) already deals with Power Graphs:
;-) apparently he already has the basics available for wider coverage with such graphs.
See also http://www.domoticz.com/forum/viewtopic ... 80#p100587

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 19:37
by Champal
Toulon7559 wrote:Can be mistaken, but Domoticz release V3.5864 (and even some earlier versions) already has some comparable capability under the tab Temperature.
Only for temperature, not possible to save several config, no refresh, ...

For exeample, i would show in one graph my temperature regulation :
* room temperature / ext temperature
* setpoint (depends on hours/day)
* state of electric heater
* power consumption

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 19:37
by bobkersten
As I've mentioned before, it's far from ready yet :) but I've put my progress in a branch in my own fork of domoticz. It can be found here:

https://github.com/bobkersten/domoticz.git

And the branch is not surprisingly called "custom_charts". As of now only temperature, setpoint and a few electrical devices are working. The thing I ran into was the fact that the retrieval of chart data is kind of messy right now and I'd like to clean that up first so that I can use it for these charts as well. Also, the tab needs to be enabled first in Settings and there's no label yet in the translations, so look for an empty checkbox :)

I'd like to hear from you guys what you think.

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 20:39
by abc1000
And gas, temp outside maybe?

Re: multiple temperature sensors in one graph

Posted: Saturday 05 November 2016 23:33
by Champal
I have already a compiled domoticz running with several script in bdd :
* script getting power consumption from a custom board and writing to an "P1 Smart Meter/Energy"
* scripts thermostat who compute and set "virtual switch" in domoticz
* script that push "virtual switch" to real switch on custom boards

I have also USB RFlink in read only mode but read from 2 domoticz doesn't work (fisrt start get data)

Steps to have second (custom_charts) domoticz with data from the first and without break my current insatllation (disable script who write to real world)
* get and compil the custom_charts domoticz
* start the second domoticz with another www port
* stop the first domoticz
* import a backup from the first to the second
* on the second disable script who are sending order
* on the second disable RFlink device
* stop the second domoticz
* start my first domoticz
* start the second domoticz

Ok it's running but I have some problems
* First I disable RFLink (in hardware menu) :
** scripts make error when reading temperature, why ? hardware is disable but device are here !
** I can't add device from [RFLink] and I can't change type/position/color from an existing device
* When I reenable RFLink :
* the data are in the graph but my 2 test graphs are completely buggy
* I have deleted all the graphs and now adding new graph or editing graph is buggy (console javascript : Error: ctrl.activeChart is null)$
* After some retries it's work again
* For some device I have is the javascript console : "Unknown device with type=Lighting 1, subtype=X10" or "Unknown device with type=Light/Switch, subtype=Selector Switch"

After adding unknow type if I add a serie to the graph 2 it's add to the graph 1 (there is already 5 series in graph 2)
* Display graph 2 : json.htm?type=series&chart_idx=2
* Add a serie => wrong chart_idx (=1) : json.htm?type=command&param=addserie&device_idx=207&graphtype=1&position=1&color=red&chart_idx=1
Even after delete unknow type this bug still occur

Questions :
* Is there a way to have my second domoticz reading RFLink device from database without try to catch the USB port ?

Thanks for your job, I'm new user of domoticz (2 month) and digging in the c++/database don't enjoy me but playing with js is ok !

Now I'm going to bed :D

Re: multiple temperature sensors in one graph

Posted: Sunday 06 November 2016 15:32
by bobkersten
The easiest way to run a separate development version of Domoticz is by using the "Domoticz Remote Server" hardware. Your main server that is running your house will keep on running and doesn't need to be interrupted by restarts while your second Domoticz just fetches data from this main server. Ofcourse this doesn't work if you develop hardware support, but for this custom charts implementation it'll work just fine.

Thanks for reporting the issues you've encountered. Like I said, this is still very much work in progress, so bugs are to be expected. Once I think it's ready for wide-spread beta testing and Gizmocus thinks it's a worthwhile addition to Domoticz, I'll file a merge-request, but until then there's no support for running this version :)

Re: multiple temperature sensors in one graph

Posted: Thursday 28 September 2017 16:37
by methinx
Hi,

What's the status of this graph optoin? I'm looking for exactly this!

Re: multiple temperature sensors in one graph

Posted: Thursday 28 September 2017 18:24
by bobkersten
methinx wrote: Thursday 28 September 2017 16:37 What's the status of this graph optoin? I'm looking for exactly this!
Honestly, I've stopped putting energy into this custom charts effort due to the way the core of Domoticz works. Instead, I've started writing my own controller software, initially only supporting the hardware I own. I've reduced the number of device types to just four, which makes it a whole lot easier to combine different devices into one chart, whereas with Domoticz there are just too many possible combinations. The software is called Micasa and can be found at https://github.com/fellownet/micasa for those who are interested.