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

    Posts

    Recent Best Controversial
    • RE: Can I control a relay on MagicMirror2?

      Using WebIOPI is simple way to control GPIOs . The followings is my solution.

      1. To install WebIOPI to your raspberry Pi.
        webiopi Installation
        Note: if you use webiopi 0.7 and rasp 2, you have to run the patch.

      2. In the node_help.js of your module, use ‘http post’ to control the GPIOs.
        WebIOPI rest api
        ex:
        SET ‘GPIO 3’ to ‘IN’ , the request as below:
        HTTP POST
        http:/192.168.1.200:8000/GPIO/3/function/in

      posted in Development
      johnsonkaoJ
      johnsonkao
    • 1 / 1