Toon app: boiler status

Forum about the tweaking of the Eneco Toon.

Moderator: marcelr

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Mon Jan 16, 2017 6:35 pm

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,
Ierlandfan
Member
Member
 
Posts: 113
Joined: October 2013

Re: Software: modifications and extensions Toon

Postby Toonz » Mon Jan 16, 2017 7:09 pm

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.
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby marcelr » Mon Jan 16, 2017 7:49 pm

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 :-)
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Mon Jan 16, 2017 8:49 pm

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?
Ierlandfan
Member
Member
 
Posts: 113
Joined: October 2013

Re: Software: modifications and extensions Toon

Postby marcelr » Mon Jan 16, 2017 9:30 pm

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.
Attachments
BoilerstatusTile.png
BoilerstatusTile.png (8.18 KiB) Viewed 4319 times
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby marcelr » Wed Jan 18, 2017 10:01 pm

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.
Attachments
BoilerstatusTile.png
BoilerstatusTile.png (13.39 KiB) Viewed 4909 times
marcelr
Advanced Member
Advanced Member
 
Posts: 815
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby Toonz » Wed Jan 18, 2017 11:09 pm

nice, as I am on 3.6.3 now, where can I find an older (compatible) version of happ_thermstat?
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Re: Toon app: boiler status

Postby phoenixb » Thu Aug 24, 2017 11:21 pm

@toonz already get the old file somewhere? I'm looking also for this one ;-)
__________________
phoenixb
Member
Member
 
Posts: 487
Joined: July 2009
Location: Netherlands

Re: Toon app: boiler status

Postby odelay99 » Sat Aug 26, 2017 1:56 pm

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?
odelay99
Starting Member
Starting Member
 
Posts: 20
Joined: May 2017

Re: Toon app: boiler status

Postby gielie » Tue Nov 07, 2017 8:44 am

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.
gielie
Starting Member
Starting Member
 
Posts: 44
Joined: November 2017

Re: Toon app: boiler status

Postby klaphekje » Sat Nov 18, 2017 10:02 am

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.
Attachments
happ-thermstat_1.554-trunk_qb2.ipk.zip
(166.47 KiB) Downloaded 22 times
klaphekje
Starting Member
Starting Member
 
Posts: 36
Joined: October 2016

Re: Toon app: boiler status

Postby Toonz » Mon Nov 20, 2017 10:36 pm

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 http://<ip_Toon>/hcb_rrd/ReadRRD.html

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
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Re: Toon app: boiler status

Postby gielie » Tue Nov 21, 2017 11:30 am

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
gielie
Starting Member
Starting Member
 
Posts: 44
Joined: November 2017

Re: Toon app: boiler status

Postby Henk-JanS » Tue Nov 21, 2017 2:02 pm

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
Henk-JanS
Starting Member
Starting Member
 
Posts: 10
Joined: November 2017

Re: Toon app: boiler status

Postby Toonz » Tue Nov 21, 2017 6:16 pm

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.
Toonz
Advanced Member
Advanced Member
 
Posts: 575
Joined: December 2016

Next

Return to Eneco Toon as Domotica controller

Who is online

Users browsing this forum: No registered users and 1 guest