Read humidity from Toon

Everything about external control, apps, VNC, etc goes here.

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Read humidity from Toon

Postby FireSon » Fri Jan 17, 2020 6:27 pm

Is it possible to get the humidity from a rooted Toon2? I would like to use it in Home Assistant.
Thanks,
Jan
FireSon
Starting Member
Starting Member
 
Posts: 12
Joined: May 2010

Re: Read humidity from Toon

Postby TheHogNL » Fri Jan 17, 2020 6:50 pm

Just created a small extra routine in the tsc script which should put info about that in the file http://toon-ip-address/tsc/sensors
Press 'check update' in tsc menu to get the new script (it will say 'no update found' but it does update the script, there is just no new firmware).
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1882
Joined: August 2017

Re: Read humidity from Toon

Postby FireSon » Fri Jan 17, 2020 8:56 pm

Wauw thanks, that is quick and it works :D
FireSon
Starting Member
Starting Member
 
Posts: 12
Joined: May 2010

Re: Read humidity from Toon

Postby glsf91 » Mon Jan 20, 2020 9:12 pm

TheHogNL wrote:Just created a small extra routine in the tsc script which should put info about that in the file http://toon-ip-address/tsc/sensors
Press 'check update' in tsc menu to get the new script (it will say 'no update found' but it does update the script, there is just no new firmware).


I don't know if it can be changed but should Content-Type: application/octet-stream in the response not be Content-Type: application/json
In chrome it wants to save a file when requested.
glsf91
Member
Member
 
Posts: 170
Joined: September 2017

Re: Read humidity from Toon

Postby mAiden » Mon Jan 20, 2020 9:56 pm

glsf91 wrote:
TheHogNL wrote:Just created a small extra routine in the tsc script which should put info about that in the file http://toon-ip-address/tsc/sensors
Press 'check update' in tsc menu to get the new script (it will say 'no update found' but it does update the script, there is just no new firmware).


I don't know if it can be changed but should Content-Type: application/octet-stream in the response not be Content-Type: application/json
In chrome it wants to save a file when requested.


Dokt change it Thehog. Otherwise Home Assistant will be crash.
Member of the Toon Software Collective
mAiden
Member
Member
 
Posts: 330
Joined: July 2017

Re: Read humidity from Toon

Postby RoadXY » Wed Jan 22, 2020 12:27 pm

Are there any sensors on a Toon v1 which can be read?
RoadXY
Member
Member
 
Posts: 111
Joined: October 2015


Return to Toon external control

Who is online

Users browsing this forum: No registered users and 1 guest

cron