Page 1 of 1

toon additional data

Posted: Sat May 23, 2020 9:47 pm
by vso
To get the daily "stats" (start of day power/gas etc) what would be the easiest way ..

this is the list i compiled browsing the topics ..

http://<ToonIP>/boilerstatus/boilervalues.txt
http://<ToonIP>/happ_pwrusage?action=GetCurrentUsage
http://<ToonIP>/happ_thermstat?action=changeSchemeState&state=0
http://<ToonIP>/happ_thermstat?action=getModuleVersion
http://<ToonIP>/happ_thermstat?action=getWeeklyList
http://<ToonIP>/happ_thermstat?action=getEdge2Stats
http://<ToonIP>/happ_thermstat?action=getHeatingHistory
http://<ToonIP>/happ_thermstat?action=getThermostatInfo
http://<ToonIP>/happ_thermstat?action=changeSchemeState&state=2&temperatureState=0
http://<ToonIP>/happ_thermstat?action=setSetpoint&Setpoint=2250 (in this case sets the temperature to 22,5 degrees)
http://<ToonIP>/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
http://<ToonIP>/hcb_rrd?action=getRrdData&loggerName=gas_flow&rra=5min&readableTime=0&nullForNaN=1&from=1588754943&to=1588776543
http://<ToonIP>/hcb_rrd?action=getRrdData&loggerName=thermstat_boilerChPressure&rra=year&readableTime=1&samples=100&nullForNaN=1&from=1504301154&to=1509301154&skipEmpty=1
http://<ToonIP>/hcb_rrd?action=getRrdData&loggerName=thermstat_boilerBurnerHours&rra=30days&readableTime=1&nullForNaN=1
http://<ToonIP>/happ_thermstat?action=printTableInfo
http://<ToonIP>/hdrv_zwave/index.html
http://<ToonIP>/hdrv_zwave?action=getDevices.json
http://<ToonIP>/hdrv_zwave?action=getDevices
http://<ToonIP>/tsc/sensors (toon2 only)

but it looks like it isn't there ..

http://<ToonIP>/boilerstatus/boilervalues.txt i found the sourcecode, this would be a nice easy way .. to get the desired data ..
(change a bit of code to display the data from /qmf/config/config_happ_pwrusage.xml ?)

Re: toon additional data

Posted: Sun May 24, 2020 4:15 pm
by TheHogNL
Thanks for summing this together. I changed your post a bit for errors.

There are also:
/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
/happ_pwrusage?action=GetCurrentUsage

To get daily stats you should use the RRD url

Re: toon additional data

Posted: Sun May 24, 2020 4:26 pm
by TheHogNL
BTW, stop creating multiple new topics for about the same information.. just deleted another topic also talking about this urls

Re: toon additional data

Posted: Sun May 24, 2020 4:27 pm
by vso
TheHogNL wrote:Thanks for summing this together. I changed your post a bit for errors.

There are also:
/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
/happ_pwrusage?action=GetCurrentUsage

To get daily stats you should use the RRD url
added to the list thx

I mean the value that gets subtracted to calculate daily "stuff" (solar deliverd/returned" usage and so forth) the "specific" value .. I understand you can get 1 or more values


TheHogNL wrote:BTW, stop creating multiple new topics for about the same information.. just deleted another topic also talking about this urls
n/p both were simulair ..

Re: toon additional data

Posted: Sun May 24, 2020 4:36 pm
by TheHogNL
vso wrote: I mean the value that gets subtracted to calculate daily "stuff" (solar deliverd/returned" usage and so forth) the "specific" value .. I understand you can get 1 or more values
.
That data is in RRD. Only data what is in the xml file is monthly totals (but also in RRD). For some stupid reason the Toon takes the month data from the file and not the toon.

Re: toon additional data

Posted: Sun May 24, 2020 4:54 pm
by mAiden

Re: toon additional data

Posted: Sun May 24, 2020 5:22 pm
by TheHogNL

Re: toon additional data

Posted: Sun May 24, 2020 6:13 pm
by vso
added

Re: toon additional data

Posted: Sun Oct 18, 2020 11:14 pm
by X1pheR
Nice! I was looking for an overview. Can anybody tell what the info in /tsc/sensors exactly is? On my toon2 it outputs a sensors file with the values below but what does tvoc and eco2 mean? Also the humidity value seems to be off. When I look at the corresponding tile on the toon2 itself it displays 68 percent humidity. Sometimes it's off even more.

Code: Select all

{"temperature":20.2, "humidity":71.5, "tvoc":24, "eco2":564}

Re: toon additional data

Posted: Tue Oct 20, 2020 9:24 am
by TheHogNL
X1pheR wrote:Nice! I was looking for an overview. Can anybody tell what the info in /tsc/sensors exactly is? On my toon2 it outputs a sensors file with the values below but what does tvoc and eco2 mean? Also the humidity value seems to be off. When I look at the corresponding tile on the toon2 itself it displays 68 percent humidity. Sometimes it's off even more.

Code: Select all

{"temperature":20.2, "humidity":71.5, "tvoc":24, "eco2":564}
tvoc is total volatile compound and eco2 is equivilant co2, vanuit deze sensor https://www.sciosense.com/products/envi ... as-sensor/
Genoeg te vinden op internet wat het precies betekend. Maar ervaring leert dat je er niks van aan moet trekken omdat de sensor erg onnauwkeurig is, of althans de algoritmes die de toon gebruikt om vanuit de ruwe waardes uit de ccs801 sensor deze waardes te berekenen.

De humidity moet ik even naar kijken waarom deze afwijkt van de tile. Al heel lang zit er een afwijking in de tile van de normale toon (niet rooted) voor luchtvochtigheid. Misschien dat ze dat onlangs verbeterd hebben waardoor onze aanpassing niet meer werkt en juist deze afwijking opleverd.

Re: toon additional data

Posted: Tue Oct 20, 2020 11:07 am
by TheHogNL
@X1pheR can you confirm you have set 'temp compensation' in the toon? I expect this to be the issue for the humidity calculation

Re: toon additional data

Posted: Fri Oct 23, 2020 11:32 am
by TheHogNL
Yesterday a new 5.33.9 resource file was created to fix the humidity tile. It didn't use the temp. correction set by the user so it showed the humidity relative to the measured temperature instead of the user-corrected/shifted temperature. The sensors file in /qmf/www/tsc/sensors did use the corrected temperature already. That explains the difference before.

Please notice, the original toon software still shows the humidity relative to the internal temperature sensor (which due to internal cpu heating is much too high, resulting in a much to low humidity).