MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. charliwest
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 14
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: 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”

      posted in Requests
      C
      charliwest
    • RE: OwnCloud integration

      @Shampooman do you have this publicly anywhere? I have a bash script that does something I want an MMM to do but have no idea how to get it working and it looks to me thats what you are doing.
      Thanks

      posted in General Discussion
      C
      charliwest
    • RE: Tado module?

      OK, well I have had a play and I can get this working via the API with curl commands…I guess its s start, then I looked at the module docs and woosh, it went right over my head. If it helps anyone here is the process for doing it in bash.

      ##Fill in your email and your password
      USERNAME=you@youremail.com
      PASSWORD=yourPassword
      ####You probably don’t want to edit below here####
      ##Grabs a cookie to stash your session details
      curl --silent “https://my.tado.com/j_spring_security_check?j_password=$PASSWORD&j_username=$USERNAME” --data-binary “{}” --cookie-jar /tmp/tadocookies
      ##Grabs your unique home ID from a bunch of info
      curl --silent “https://my.tado.com/api/v1/me” -H “Referer: https://my.tado.com/” --cookie /tmp/tadocookies > homeId
      HOMEID=$(grep -o “homeId.," homeId| awk -F, ‘{print $1}’|awk -F: ‘{print $2}’)
      ##Now uses your home ID to get the current temp of your home and displays it
      curl --silent “https://my.tado.com/api/v1/home/$HOMEID/hvacState” -H “Referer: https://my.tado.com/” --cookie /tmp/tadocookies > temp
      TEMP=$(grep -o "celsius.
      ,” temp| awk -F, ‘{print $1}’|awk -F: ‘{print $2}’)
      echo “$TEMP”

      If someone can use that to make an MMM pretty please ;)

      posted in Requests
      C
      charliwest
    • Tado module?

      Don’t really get how to build these modules, although will take a stab at reading through some docs, but was wondering if anyone is already working on a tado module, I found this https://github.com/dVelopment/node-tado which I think might be useful as well?

      posted in Requests
      C
      charliwest
    • 1 / 1