A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 2 Votes
    2 Posts
    379 Views
    KristjanESPERANTOK
    Nice! :smiley: Please add it to the modules list: https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules.
  • 0 Votes
    4 Posts
    1k Views
    S
    my script turns off the need to run in sudo mode we should never run mm in sudo, or install w sudo
  • LIRC AUTOMATION

    Development
    4
    0 Votes
    4 Posts
    675 Views
    S
    @sranj ok, so u receive the trigger in the node_helper, and need to launch/exec/spawn your python pgm so you need the child_process library https://nodejs.org/en/knowledge/child-processes/how-to-spawn-a-child-process/ PIR uses the same library to launch the tvservice command, or vgencmd to blank the screen
  • 0 Votes
    2 Posts
    2k Views
    P
    install the MMM-Admin module. It will serve up a webpage and you can control the HDMI from there…even use it on your phone. works well
  • 2 Votes
    56 Posts
    89k Views
    S
    @randomnoise said in PIR-Sensor - put your mirror to sleep if not used: exec(“xdotool key space”); //simulate spacebar to disable screensaver. Needs xdotool to be installed Hello Randomnoise; So you did exactly what I am looking to do. Can you elaborate on how to configure this so my PIR will turn off the screen saver? I’ve already installed Xdotool, but I don’t know where to go from there.
  • GPIO without root

    Solved Development
    4
    0 Votes
    4 Posts
    6k Views
    paviroP
    Found a workaround! Use the shell within node to export the pins. Works without root if the user is added to the gpio group, to do that execute sudo useradd -g pi gpio. Setup the pins const exec = require('child_process').exec; exec("echo '22' > /sys/class/gpio/export", null); exec("echo 'in' > /sys/class/gpio/gpio22/direction", null); exec("echo '17' > /sys/class/gpio/export", null); exec("echo 'out' > /sys/class/gpio/gpio17/direction", null); Control the pins gpio.setup('sys'); gpio.wiringPiISR(22, gpio.INT_EDGE_BOTH, function(delta) { if (gpio.digitalRead(22) == 1) { console.log("High"); gpio.digitalWrite(17, 1) } else if (gpio.digitalRead(22) == 0) { console.log("Low"); gpio.digitalWrite(17, 0) } });