MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

Module to get indoor temperature from smartsensor



  • 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



  • 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


Log in to reply