Read the statement by Michael Teeuw here.
Tado module?
-
I tweaked the bash script to the api @krisalexroberts suggested as it takes a lot less to do it, and at @dinkybluebug245’s suggestion added the extra readings…although not sure how the pi will read the hex values? But it works on mac
USERNAME=you@your.email
PASSWORD=yourPassword
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” -
@charliwest - so how does this all get written up as a magic mirror module? do you know?
-
Yeah no idea about nodejs stuff, spoke to a friend today who is hoping to build a magicmirror (I still havent had time to set mine up at all). He is keen to have a look at this with me. We will hopefully sit down over a couple of beers next week and see if we can bash something out.
Anyone else who already knows more about modules happy for them to take the above and make it work…
@dinkybluebug245 did you test the above, even though only a bash script, still pretty cool -
@charliwest I would have some sparetime tonight, therefore I could help out if someone with a tado acc would like to join me
-
@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”