Page 1 of 12

Re: Software: modifications and extensions Toon

Posted: Mon Jan 16, 2017 7:35 pm
by Ierlandfan
I found out that Toon is logging the Opentherm ID's (Not all but most of them) in an app called boiler, I enabled the app but it doesn't show up in the menu (If I am not mistaken originally you need a subscription for that) The rra's are there and it shouldn;t be that hard to modify the config_hcb_rrd.xml and the app to log the ones that are missing.
If I knew how to enable it . I already added it to /HCBv2/qml/qb/base/global but can't see the tile anywhere,

Re: Software: modifications and extensions Toon

Posted: Mon Jan 16, 2017 8:09 pm
by Toonz
Ierlandfan wrote:I found out that Toon is logging the Opentherm ID's (Not all but most of them) in an app called boiler, I enabled the app but it doesn't show up in the menu (If I am not mistaken originally you need a subscription for that) The rra's are there and it shouldn;t be that hard to modify the config_hcb_rrd.xml and the app to log the ones that are missing.
If I knew how to enable it . I already added it to /HCBv2/qml/qb/base/global but can't see the tile anywhere,
hmm, my boiler app folder is empty (..\qml\apps\boiler just has a 'lang' subfolder). If you have the full app and post it here then I am happy to have a look.

Re: Software: modifications and extensions Toon

Posted: Mon Jan 16, 2017 8:49 pm
by marcelr
I found out that Toon is logging the Opentherm ID's (Not all but most of them) in an app called boiler, I enabled the app but it doesn't show up in the menu
Hi Ierlandfan,

I think the built-in boiler app refers to leased equipment; I don't see any readout of boiler data anywhere, can you name file and directory where you found the OT ID logging? Can't find it in your set of files either, but then again, I may be blind as a bat.

Anyway, I'm working on it :-). (Not the app, but a set of qml scripts that delivers boiler status to a tile). Got the acquisition working, still need to design a bunch of icons to go with the numbers. Exercise patience :-)

Re: Software: modifications and extensions Toon

Posted: Mon Jan 16, 2017 9:49 pm
by Ierlandfan
I found these references in hcb_config_hcb_rrd.xml

Code: Select all

<rrdLogger>
     <package>hcb_rrd</package>
     <uuid>eneco-001-005536:hcb_config_6279FBDA4CE</uuid>
     <name>thermstat_boilerOpMode</name>
     <internalAddress>thermstat_boilerOpMode</internalAddress>
     <visibility>1</visibility><deviceUuid>o-001-005536:happ_thermstat_62323C6A4D0</deviceUuid><deviceVar>BoilerOpMode</deviceVar><deviceSvc>ThermostatInfo</deviceSvc><sampleType>double</sa
    <binLength>60</binLength>
    <bins>43200</bins>
    <futureBins>0</futureBins>
    <consolidator>last</consolidator>
    <name>30days</name>
    <minSamplesPerBin>0</minSamplesPerBin>
    <saveInterval>1</saveInterval></rra><rra>
    <binLength>3600</binLength>
    <bins>8765</bins>
    <futureBins>0</futureBins>
    <consolidator>avg</consolidator>
    <name>year</name>
    <minSamplesPerBin>0</minSamplesPerBin>
    <saveInterval>1</saveInterval></rra></rrdLogger>
    <rrdLogger>
     <package>hcb_rrd</package>
     <uuid>eneco-001-005536:hcb_config_627ADDFA4CE</uuid>
     <name>thermstat_internalSetpoint</name>
     <internalAddress>thermstat_internalSetpoint</internalAddress>
     <visibility>1</visibility><deviceUuid>o-001-005536:happ_thermstat_62323C6A4D0</deviceUuid><deviceVar>InternalSetpoint</deviceVar><deviceSvc>ThermostatInfo</deviceSvc><sampleType>double
    <binLength>60</binLength>
    <bins>43200</bins>
    <futureBins>0</futureBins>
    <consolidator>last</consolidator>
    <name>30days</name>
    <minSamplesPerBin>0</minSamplesPerBin>
    <saveInterval>1</saveInterval></rra><rra>
    <binLength>3600</binLength>
......(truncated for reading, there's more)
Just a question, are you querying internally? e.g.not the website happ_thermstat?action=printTableInfo?

Re: Software: modifications and extensions Toon

Posted: Mon Jan 16, 2017 10:30 pm
by marcelr
Just a question, are you querying internally? e.g.not the website happ_thermstat?action=printTableInfo?
Oh yes, but from within:

Code: Select all

xmlhttp.open( "GET", "http://127.0.0.1/happ_thermstat?action=printTableInfo", true );
xmlhttp.send();
Works like a charm ;-)

Did you find any boiler logs in the rrd databases in /HCBv2/data/hcb_rrd/?

EDIT: Just for reference, added a screenshot of the tile in the making. Layout sucks, icons are incomplete and suck as well, data are generated by a chunk of software, and relayed to my test toon through Schelte's OTGW. It's not connected to a real boiler, the actual numbers therefore make no sense (yet).

On screen:
room temp setpoint, room temp, boiler temp setpoint, boiler output temp, boiler input temp, outside temp, water pressure, rel. modulation level.
Need to make a bunch of nice icons, add warnings for low pressure and non-condensing return temperatures.

Re: Software: modifications and extensions Toon

Posted: Wed Jan 18, 2017 11:01 pm
by marcelr
Just finished the first draft version of the boiler status tile.
It turned out to be a busy one. It displays boiler temperatures, setpoints (room temp, dhw temp and boiler output), modulation level, system pressure, outside temperature (if you have that connected).

To do:
Check floating point values (qml doesn't support signed characters, so two's complements of separate data bytes need to be handled in a special way).

Handle non-OT boiler properly. There's some code in the app, but it only gets it right when the thermostat is already set to bang-bang control.

Display warnings when boiler pressure is low, and indicate non-condensing boiler return temperatures (> 55 degrees or so).

Install in the usual way (add "boilerstatus" somewhere in the loadable modules list in /HCBv2/qml/qb/base/Globals.qml, and drop the boilerstatus folder in /HCBv2/qml/apps/ ).
Enjoy, and please provide feedback if things don't work for you, or you see things you don't understand (I sure hope the icons are more or less clear).

Oh, one more thing: this tile will work with fw versions from 3.0.29 through 3.5.4. For 3.6.3 you will need to retrofit an older version of happ_thermstat.

EDIT: app moved to downloads thread.

Re: Software: modifications and extensions Toon

Posted: Thu Jan 19, 2017 12:09 am
by Toonz
nice, as I am on 3.6.3 now, where can I find an older (compatible) version of happ_thermstat?

Re: Toon app: boiler status

Posted: Fri Aug 25, 2017 12:21 am
by phoenixb
@toonz already get the old file somewhere? I'm looking also for this one ;-)

Re: Toon app: boiler status

Posted: Sat Aug 26, 2017 2:56 pm
by odelay99
Hi, since I updated to 4.4.21 boiler status app is not working anymore, I understand I need to downgrade to happ-thermstat_1.554-trunk_qb2.ipk
Where can I find that file?

Re: Toon app: boiler status

Posted: Tue Nov 07, 2017 9:44 am
by gielie
I’m on fw 4.8.25 and I also like to try this out, were can I find the older files I need to get this to work.

Re: Toon app: boiler status

Posted: Sat Nov 18, 2017 11:02 am
by klaphekje
SW version 3.0.29 used happ-thermstat_1.554-trunk_qb2.ipk. I have not tried it myself so i don't know if there are any dependencies.

Re: Toon app: boiler status

Posted: Mon Nov 20, 2017 11:36 pm
by Toonz
Hi guys,

finally a breakthrough in getting boilerdata stored in the rra databases (or any other data from any rra database on Toon):

Via a simple html page on Toon you can retrieve all data from the rra databases.
Create an html file 'ReadRRD.html' in the folder HCBv2/www/hcb_rrd with the following content to demonstrate:

Code: Select all

<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>RRD read dataset</title>
</head>
<BODY>
<FORM action="/hcb_rrd" method="post">
	<INPUT type="text" name="loggerName" value="thermstat_boilerChPressure"/>
	<INPUT type="text" name="rra" value="year"/><BR/>
	<INPUT type="hidden" name="action" value="getRrdData"/>
	<INPUT type="submit" value="Send"/>
</FORM>
</BODY>
</HTML>
and call the page via [url]http://<ip_Toon>/hcb_rrd/ReadRRD.html[/url]

and you will get back the full dataset :D for use in Domoticz, qml or whatever you want to do with it.
All available loggerNames are listed in /HCBv2/config/config_hcb_rrd.xml in the tag <rrdLogger><name> like thermstat_dhwBurnerStarts etc.
You can also select the period like year, 30days, 5min, 5yrhours etc from the config file <rra><name> tags

Just fill in your loggerName in the web page and the selected period and have fun !!

(No need for any programming Marcelr, sorry 8) )

Kind regardz,

Toonz

Re: Toon app: boiler status

Posted: Tue Nov 21, 2017 12:30 pm
by gielie
This looks nice but i don't get any results back, only get this.

Code: Select all

<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>RRD read dataset</title>
</head>
<BODY>
<FORM action="/hcb_rrd" method="post">
   <INPUT type="text" name="loggerName" value="thermstat_boilerChPressure"/>
   <INPUT type="text" name="rra" value="year"/><BR/>
   <INPUT type="hidden" name="action" value="getRrdData"/>
   <INPUT type="submit" value="Send"/>
</FORM>
</BODY>
</HTML>
as plain text, am i doing something wrong

Re: Toon app: boiler status

Posted: Tue Nov 21, 2017 3:02 pm
by Henk-JanS
Did you chmod +x the file?

What's the result of ls -la - does it look like

Code: Select all

eneco-001-123456:/qmf/www/hcb_rrd# ls -la
drwxr-xr-x    2 108      111            664 Nov 21 12:56 .
drwxrwxr-x   20 root     root          1416 Sep 30 08:41 ..
-rwxr-xr-x    1 root     root           421 Nov 21 12:56 ReadRRD.html
-rwxr-xr-x    1 108      111           4508 Aug  9 06:19 editDevice.html
-rwxr-xr-x    1 108      111          18696 Aug  9 06:19 hcb_rrd.html
-rwxr-xr-x    1 108      111            115 Aug  9 06:19 lang_en.js
-rwxr-xr-x    1 108      111            404 Aug  9 06:19 lang_nl.js
lrwxrwxrwx    1 root     513             12 Mar 18  2014 rrd_data -> /tmp/hcb_rrd
-rwxr-xr-x    1 108      111            472 Aug  9 06:19 testSet.html

Re: Toon app: boiler status

Posted: Tue Nov 21, 2017 7:16 pm
by Toonz
No need to chmod +x the file.

Have you used to correct url (without the port number): e.g. http://192.168.x.x/hcb_rrd/ReadRRD.html?
Is the Toon webserver running properly?

Or do you mean you get that back as the source? Which is correct.
You will get the dataset back when you press the SEND button on the webpage.