Read the statement by Michael Teeuw here.
Tado module?
-
@strawberry-3.141 i have availability tonight
-
@strawberry-3-141 - Hello - I can help over the weekend, and next week - evenings this week Im busy
-
would be great to get someone with other devices than a heating unit
-
@strawberry-3.141 can’t help with that. But if you need some else to test tado heating api. I can help.
-
@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 ,"