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

    Topics

    • J

      MMM-Buttons to change pages

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      7
      0 Votes
      7 Posts
      561 Views
      S
      @captheavenger they sell wires with the GPIO pin sockets, the other end could be male or female, just clip that off and extend with anything… I have a spool of 20ga wire…
    • J

      Problem with MMM-ValuesByNotification and MMM-CommandToNotification

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      19
      0 Votes
      19 Posts
      2k Views
      wishmaster270W
      @Jimmy1502 You will need to comment the try, too. Additionally the indention of the code needs to be changed. The file will be look like this then: #!/bin/python3 #Install Dependencies: # pip3 install adafruit-circuitpython-dht # sudo apt-get install libgpiod2 import time import board import adafruit_dht import json import sys gpio_nr = 4 if len(sys.argv) > 1: gpio_nr = int(sys.argv[1]) # Initial the dht device, with data pin connected to: dhtDevice = adafruit_dht.DHT22(getattr(board, "D%d"%gpio_nr)) result = {} result["temperature_c"] = dhtDevice.temperature result["humidity"] = dhtDevice.humidity result["temperature_f"] = (result["temperature_c"]*1.8) + 32 result["error"] = False print(json.dumps(result))
    • 1 / 1