• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Tado module?

Scheduled Pinned Locked Moved Requests
35 Posts 5 Posters 26.6k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    krisalexroberts @strawberry 3.141
    last edited by Nov 17, 2016, 10:09 PM

    @strawberry-3.141 I’ll be getting radiator thermostats in the next few weeks but no cooling

    1 Reply Last reply Reply Quote 1
    • D Offline
      dinkybluebug245 @charliwest
      last edited by dinkybluebug245 Nov 18, 2016, 8:10 PM Nov 18, 2016, 8:08 PM

      @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 file

      the 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”

      1 Reply Last reply Reply Quote 0
      • C Offline
        charliwest
        last edited by Nov 18, 2016, 8:22 PM

        @dinkybluebug245 probably a cut and paste error with the ticks, try from here https://github.com/charliwest/random_scripts/blob/master/tado2

        D 1 Reply Last reply Nov 18, 2016, 8:54 PM Reply Quote 0
        • D Offline
          dinkybluebug245 @charliwest
          last edited by Nov 18, 2016, 8:54 PM

          @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 token fi' 'ado.sh: command substitution: line 16: fi)
          /

          C 1 Reply Last reply Nov 18, 2016, 9:06 PM Reply Quote 0
          • C Offline
            charliwest @dinkybluebug245
            last edited by Nov 18, 2016, 9:06 PM

            @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?

            D 1 Reply Last reply Nov 18, 2016, 9:12 PM Reply Quote 0
            • D Offline
              dinkybluebug245 @charliwest
              last edited by dinkybluebug245 Nov 18, 2016, 9:21 PM Nov 18, 2016, 9:12 PM

              @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 ,"

              1 Reply Last reply Reply Quote 0
              • C Offline
                charliwest
                last edited by Nov 28, 2016, 6:35 PM

                So here is the first attempt https://github.com/olipayne/MMM-Tado-ThermoStats
                Works pretty well but still need some work

                D 1 Reply Last reply Nov 28, 2016, 9:41 PM Reply Quote 0
                • D Offline
                  dinkybluebug245 @charliwest
                  last edited by Nov 28, 2016, 9:41 PM

                  @charliwest this looks awesome. What variable is the tado home number?

                  C 1 Reply Last reply Nov 28, 2016, 9:43 PM Reply Quote 0
                  • C Offline
                    charliwest @dinkybluebug245
                    last edited by Nov 28, 2016, 9:43 PM

                    @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 ;)

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      charliwest
                      last edited by Nov 29, 2016, 10:54 AM

                      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 ;)

                      D 2 Replies Last reply Nov 29, 2016, 9:55 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy