Read the statement by Michael Teeuw here.
Tado module?
-
@strawberry-3.141 I’ll be getting radiator thermostats in the next few weeks but no cooling
-
@charliwest This didnt work for me…
I got this error:
tado.sh: line 5: unexpected EOF while looking for matching `"’
tado.sh: line 12: syntax error: unexpected end of filethe contents of tado.sh, is:
USERNAME=xxx
PASSWORD=xxxx
curl --silent “https://my.tado.com/mobile/1.9/getCurrentState?username=“$USERNAME”&password=“$PASSWORD”” > temp
insideTemp=$(grep -o “insideTemp." temp| awk ‘{print substr($1,13,4)}’)
setPointTemp=$(grep -o "setPointTemp.” temp| awk ‘{print substr($1,15,4)}’)
heatingOn=$(if grep -q ““heatingOn”:true” temp; then
echo '\xf0\x9f\x94\xa5’
else
echo '\xf0\x9f\x9a\xab’
fi)
echo “$insideTemp” / “$setPointTemp” / “$heatingOn” -
@dinkybluebug245 probably a cut and paste error with the ticks, try from here https://github.com/charliwest/random_scripts/blob/master/tado2
-
@charliwest Thanks for the response, I get a different error now,
grep: temp: No such file or directory
grep: temp: No such file or directory
tado.sh: command substitution: line 16: syntax error near unexpected tokenfi' 'ado.sh: command substitution: line 16:
fi)
/ -
@dinkybluebug245 there shouldn’t be a line 16, can you double check the file u made is correct. Where are you running the script from? Also it says something about ado.sh … not sure what that’s referring to?
-
@charliwest Yes you’re right… file wasnt created correctly.
output now is
20.5 / 10," / \xf0\x9f\x9a\xab
seems to work, but your comment on how the pi would deal with hex values was right, and because the second value only has two digits (10) Im assuming this is why its picking up the characters ,"
-
So here is the first attempt https://github.com/olipayne/MMM-Tado-ThermoStats
Works pretty well but still need some work -
@charliwest this looks awesome. What variable is the tado home number?
-
@dinkybluebug245 I’ll write a readme for it tomorrow, but basically if you manually run my original tado.sh in each step you will get the answers. If you need more into it will be there when the readme is ready ;)
-
OK, the readme is there now, hope it makes sense.
https://github.com/olipayne/MMM-Tado-ThermoStats/tree/master
Its by no means perfect, and still want to try and automated the homeid if I can, and add an icon for on or off but have yet to work out which result that actually is ;)