A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Rest API for layout switching

    2
    0 Votes
    2 Posts
    2k Views
    0
    Okay a bit later and I found this: http://electron.atom.io/docs/api/ I don’t know if it will help or if I should use anything on it so if you have any knowledge of this please advise.
  • Philips Hue Light Switches based wakeup

    utility
    3
    1 Votes
    3 Posts
    4k Views
    MichMichM
    Go for node. Adding a python solution would make no sense.
  • Camera / Motion based wake/sleep

    utility
    6
    0 Votes
    6 Posts
    5k Views
    A
    @paviro Nice. I’ll definitely try it
  • GPIO without root

    Solved gpio wiring-pi
    4
    0 Votes
    4 Posts
    7k 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) } });
  • Usind date from one module to another

    core
    5
    0 Votes
    5 Posts
    4k Views
    paviroP
    Well that’s true :/