MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Chiggo
    3. Best
    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 6
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Roomtemperature with DS18B20

      @Phate

      No, it’s not available on GitHub. But with the hints from @MichMich it was pretty easy to realize.

      To load the drivers for the DS18B20 I followed these instructions https://www.kompf.de/weather/pionewiremini.html

      To get the DS18B20 working with node.js I installed this https://www.npmjs.com/package/ds18x20

      And finaly I edited the scripts of the systemtemperature-module and it works.

      Step-by-Step

      • Add this line to your /boot/config.txt
      dtoverlay=w1-gpio,gpiopin=4,pullup=on
      
      • Add to your /etc/modules following and reboot the Pi
      w1-gpio pullup=1 
      w1-therm
      
      • Note the ID of your sensor (go to /sys/bus/w1/devices and list the files, the ID should look something like this 28-04163746c8ff
      • Got to /MagicMirror/modules and create a folder named MMM-Temperature
      • Create a file named MMM-Temperature.js and copy the code from my post for this script
      • Create a file named node_helper.js and copy the code from my post and change the ID of my sensor to yours (it’s in line 16)
      • Register this module in your /MagicMirror/config/config.js
      • Restart your MM and you are done :)

      Hope I could help. Let me know if it works.

      posted in Troubleshooting
      C
      Chiggo
    • 1 / 1