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

    Posts

    Recent Best Controversial
    • GIFs upon motion detection

      When my MMM-PIR-Sensor actives, I want a small delay (to wait for the screen to display) followed by a compliment GIF (nice to see you!):

      https://media.giphy.com/media/3NtY188QaxDdC/giphy.gif
      https://media4.giphy.com/media/12aLwIe3NSPBoQ/giphy.gif
      https://media.giphy.com/media/q4sdF9tchap6E/giphy.gif
      https://media.giphy.com/media/wBELrJgO6ZtII/giphy.gif

      These would be picked at random like the compliments module and then faded out.

      MMM-ImagesPhotos would be a good fit if it could be activated with a notification and then faded out after an amount of time that was configurable.

      posted in Requests
      O
      orayoflighto
    • RE: Help with MMM-PIR-Sensor tvservice logical evaluation

      I figured it out. There are missing brackets for the if statement. In node_helper.js:

      From:

              if (data.indexOf("0x120002") !== -1)
                exec("/opt/vc/bin/tvservice --preferred && chvt 6 && chvt 7", null);
      

      To:

              if (data.indexOf("0x120002") !== -1){
                exec("/opt/vc/bin/tvservice --preferred && chvt 6 && chvt 7", null);
             }
      

      @paviro

      posted in Troubleshooting
      O
      orayoflighto
    • RE: Google Analytics

      @SvenSommer your link just links to this thread. I am guessing you were trying to link to github?

      https://github.com/SvenSommer/MMM-GoogleAnalytics

      posted in Requests
      O
      orayoflighto
    • Help with MMM-PIR-Sensor tvservice logical evaluation

      Can someone help shed some light on this piece of code in the MMM-PIR-Sensor module? In the node_helper.js there is:

            // Check if hdmi output is already on
            exec("/opt/vc/bin/tvservice -s").stdout.on('data', function(data) {
              if (data.indexOf("0x120002") !== -1)
                exec("/opt/vc/bin/tvservice --preferred && chvt 6 && chvt 7", null);
      

      I understand what it is doing. It is checking if the monitor is in standby [TV is off] and if so then it turns it on. This bit of code also executes when the monitor is on though which is the part that I am having trouble with. I understand that 0x120002 is what tvservice reports when the monitor is off. I don’t understand the!== -1

      Any help? I would like to change the logic so it doesn’t execute that line when the monitor is on (0x12000a)

      posted in Troubleshooting
      O
      orayoflighto
    • RE: MMM-PiLights notification trigger for PIR

      The answer to my question is to add the sendNotification line in the MMM-PiLights.js as follows:
      From:

      	socketNotificationReceived: function(notification, payload) {
      		if (notification === "USER_PRESENCE"){
      			this.sendNotification(notification, payload)
      		}
      

      To:

      	socketNotificationReceived: function(notification, payload) {
      		if (notification === "USER_PRESENCE"){
      			this.sendNotification(notification, payload);
                              this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse');
      		}
      

      Unfortunately I have realized that I want to do something more elaborate then the PiLights module allows so instead I am now calling a python script instead.

      posted in Troubleshooting
      O
      orayoflighto
    • MMM-PiLights notification trigger for PIR

      Has anyone successfully used the

      this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse');
      

      trigger in the MMM-Pilights or similar in the MMM-Sounds module?

      I would like to turn on some LEDs when the PIR turns on my monitor. I plan on back lighting my mirror with LEDs. According to the MMM-PiLights documentation the above snipit of code should turn them on. Any help with where to insert the above code in the MMM-PIR-Sensor module would be greatly appreciated.

      posted in Troubleshooting
      O
      orayoflighto
    • RE: MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      I ordered these:
      https://www.amazon.com/gp/product/B01COEJST8/ref=oh_aui_detailpage_o09_s00?ie=UTF8&psc=1

      FYI - for those that are reading this in the future, make sure that your power supply ground is grounded to the RPi ground. That tripped me up.

      posted in Utilities
      O
      orayoflighto
    • RE: MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      Does anyone know if APA102 (or DOTSTAR) can be used without modification of the code?

      posted in Utilities
      O
      orayoflighto
    • RE: Default Calender-absolute Date

      Did anyone resolve this? I am having the same issue.

      posted in Troubleshooting
      O
      orayoflighto
    • RE: MMM-Oneliner

      Where do the jokes come from?

      posted in Fun & Games
      O
      orayoflighto
    • 1 / 1