Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Module to get indoor temperature from smartsensor

    Requests
    1
    2
    63
    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.
    • Z
      ZeFX last edited by

      Hello everyone,

      i’ve been playing around with the MagicMirror for few weeks, and learning how to use prog on the rpi at the same time. Quite new for me but passionating.

      I’m using a sensibo (https://www.sensibo.com/) to control my aircon unit. The device is basically a smart IR remote with a temperature and humidity sensor, all connected to wifi, and with an open API !
      Basically, I’d like to be able to pull “temperature” and “humidity” measurement from the sensor and display it on the MagicMirror.

      They have published the script, with the measurements function, but I am clueless on how to adapt it into a “currentweather” like module. https://github.com/Sensibo/sensibo-python-sdk

      Any pointers would be greatly appreciated !

      Thanks a lot in advance.

      Kind Regards
      Pierre

      1 Reply Last reply Reply Quote 0
      • Z
        ZeFX last edited by

        update on this !

        After more research, I’m getting closer to a working solution !
        Basically, I can get temperature and humidity data by sending the following url:
        https://home.sensibo.com/api/v2/pods/{podID}/measurements?apiKey={apikkeyXXX}
        In which I can input my API key and my device/pod ID.
        It will reply with a JSON giving this :

        	
        Response body
        Download
        {
          "status": "success",
          "result": [
            {
              "time": {
                "secondsAgo": 17,
                "time": "2020-07-08T19:53:04.450414Z"
              },
              "temperature": 27.3,
              "humidity": 49.5
            }
          ]
        }
        

        After hours looking on how to get and display those two values, i’ve opted to use this module MMM-json-feed.

        And after some playing around, it finally shows like this:
        a8428806-ff26-4c7d-8f2a-fbc8e77a5af1-image.png

        Now, I need to find a way to :
        +Round up values
        +Add Celsius and % for each value
        +Replace “Temperature” and “Humidity” by a nice FontAwesome icon

        If anyone has any pointers for one of the above, it will be appreciated !

        Cheers
        Pierre

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy