toon additional data

If you don't know where to post, post here.

Moderators: marcelr, TheHogNL, Toonz

Post Reply
vso
Member
Member
Posts: 63
Joined: Wed Mar 27, 2019 11:27 pm

toon additional data

Post 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 ?)
Last edited by vso on Sun May 24, 2020 6:14 pm, edited 3 times in total.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post 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
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post by TheHogNL »

BTW, stop creating multiple new topics for about the same information.. just deleted another topic also talking about this urls
Member of the Toon Software Collective
vso
Member
Member
Posts: 63
Joined: Wed Mar 27, 2019 11:27 pm

Re: toon additional data

Post 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 ..
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post 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.
Member of the Toon Software Collective
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: toon additional data

Post by mAiden »

Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post by TheHogNL »

Member of the Toon Software Collective
vso
Member
Member
Posts: 63
Joined: Wed Mar 27, 2019 11:27 pm

Re: toon additional data

Post by vso »

added
X1pheR
Starting Member
Starting Member
Posts: 8
Joined: Thu May 21, 2020 2:38 pm

Re: toon additional data

Post 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}
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post 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.
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post 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
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: toon additional data

Post 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).
Member of the Toon Software Collective
Post Reply

Return to “Toon miscellaneous”