toon additional data

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

Moderators: marcelr, Toonz, TheHogNL, TerrorSource

toon additional data

Postby vso » Sat May 23, 2020 8:47 pm

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 5:14 pm, edited 3 times in total.
vso
Member
Member
 
Posts: 63
Joined: March 2019

Re: toon additional data

Postby TheHogNL » Sun May 24, 2020 3:15 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017

Re: toon additional data

Postby TheHogNL » Sun May 24, 2020 3:26 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017

Re: toon additional data

Postby vso » Sun May 24, 2020 3:27 pm

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 ..
vso
Member
Member
 
Posts: 63
Joined: March 2019

Re: toon additional data

Postby TheHogNL » Sun May 24, 2020 3:36 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017

Re: toon additional data

Postby mAiden » Sun May 24, 2020 3:54 pm

Member of the Toon Software Collective
mAiden
Member
Member
 
Posts: 310
Joined: July 2017

Re: toon additional data

Postby TheHogNL » Sun May 24, 2020 4:22 pm

Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017

Re: toon additional data

Postby vso » Sun May 24, 2020 5:13 pm

added
vso
Member
Member
 
Posts: 63
Joined: March 2019

Re: toon additional data

Postby X1pheR » Sun Oct 18, 2020 10:14 pm

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}
X1pheR
Starting Member
Starting Member
 
Posts: 8
Joined: May 2020

Re: toon additional data

Postby TheHogNL » Tue Oct 20, 2020 8:24 am

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017

Re: toon additional data

Postby TheHogNL » Tue Oct 20, 2020 10:07 am

@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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017

Re: toon additional data

Postby TheHogNL » Fri Oct 23, 2020 10:32 am

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1729
Joined: August 2017


Return to Toon miscellaneous

Who is online

Users browsing this forum: No registered users and 1 guest