MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. orayoflighto
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 30
    • Best 6
    • Controversial 0
    • Groups 1

    orayoflighto

    @orayoflighto

    Project Sponsor

    9
    Reputation
    962
    Profile views
    30
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    orayoflighto Unfollow Follow
    Project Sponsor

    Best posts made by orayoflighto

    • RE: LED Backlight for mirror - PIR to control them

      I did this.

      alt text

      I used the MMM-PIR-Sensor module and changed the following 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);
                exec("python /home/pi/py-spidev/RPi-LPD8806/LED.py");
             }
      

      and

      From:

            exec("/opt/vc/bin/tvservice -o", null);
      

      To:

            exec("/opt/vc/bin/tvservice -o", null);
            exec("python /home/pi/py-spidev/RPi-LPD8806/off.py");
             }
      

      Note that in the first from - to there is a “)” missing in the original code that you will need to fix. Also note that as soon as the module gets updated if you hack the code like I did above it will be wiped out when you update.

      posted in General Discussion
      O
      orayoflighto
    • RE: LED Backlight for mirror - PIR to control them

      @cowboysdude

      I used these only because they were incredibly cheap and I originally started out looking at MMM-PiLights which uses the same LPD8806 type:

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

      I used this python code:
      https://github.com/longjos/RPi-LPD8806

      posted in General Discussion
      O
      orayoflighto
    • RE: MMM-GooglePhotos

      For those just joining, I was able to get this to work using the Google OAuth desktop option and the V2 token generator that hermanho made at the link below

      https://github.com/aneaville/MMM-GooglePhotos/issues/145

      posted in Entertainment
      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 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
    • RE: LED Backlight for mirror - PIR to control them

      Different strips have different ways they need to be programmed. Some have faster refresh rates than others.

      Most people will suggest ADA102 for beginners. The strips I linked to are LPD8806. As I mentioned previously the only reason I bought those ones is that MMM-PiLights was programmed to use them.

      posted in General Discussion
      O
      orayoflighto

    Latest posts made by orayoflighto

    • RE: MMM-GooglePhotos

      For those just joining, I was able to get this to work using the Google OAuth desktop option and the V2 token generator that hermanho made at the link below

      https://github.com/aneaville/MMM-GooglePhotos/issues/145

      posted in Entertainment
      O
      orayoflighto
    • RE: MMM-GooglePhotos

      I just updated to the latest And my photos stopped displaying. Anyone else have this issue?

      I just get Loading…

      posted in Entertainment
      O
      orayoflighto
    • Calendar excludedEvents behavior not as expected?

      I am having trouble with the excludedEvents parameter in the calendar module. I can get some words to filter but not others. For instance I if I have the following two events on the calendar:

      School Early Dismissal
      Roger’s Special - Art

      If I enter ‘Early’ in the excludedEvents array then as expected the School Early Dismissal goes away. If I enter ‘Roger’ or ‘Art’ or ‘Special’ then I can’t get the second event to filter out.

      I have 3 calendars. I tried eliminating all but the one that pulls the “Roger’s Special - Art” event and still no luck. I am starting to think that there is something about that calendar ics that prevents events from being filtered? Is this possible?

      		module: "calendar",
      			header: "Calendar",
      			position: "top_left",
      			config: {
      				maxTitleLength: "30",
      				timeFormat: "absolute",
      				nextDaysRelative: true,
      				titleReplace: {'SPECIAL MEETING':'meeting'},
      				displaySymbol: false,
      				//maximumNumberOfDays: "62",
      				fade: false,
      				excludedEvents: ['Special'],
      				calendars: [
      					{
      						
      						// symbol: "calendar-check-o ",
      						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
      						maxTitleLength: "17"
      					},
      
      posted in Troubleshooting
      O
      orayoflighto
    • RE: MMM-GooglePhotos

      @Sean looking forward to it. Thanks again for an awesome module.

      @sdetweil I now have a cron job to turn the monitor off. Is that what you mean by “sleep”? Does that stop the API requests?

      posted in Entertainment
      O
      orayoflighto
    • RE: MMM-GooglePhotos

      First, thanks for a great module. Its greatly appreciated.

      Is there a way to prevent API requests during certain time periods? I have 14000 photos in an album that is only going to grow with time which is going to kill my API requests but I don’t need requests to take place at 2AM for instance.

      posted in Entertainment
      O
      orayoflighto
    • RE: MMM-Pir-Sensor - Hue lights control

      @kimzer

      Check this thread out:

      https://forum.magicmirror.builders/topic/4649/led-backlight-for-mirror-pir-to-control-them/5

      posted in Troubleshooting
      O
      orayoflighto
    • RE: Other options to hanging the mirror on a wall

      Some options where discussed here:

      https://forum.magicmirror.builders/topic/4529/question-about-mounting-a-mirror-in-a-dorm/10

      posted in Troubleshooting
      O
      orayoflighto
    • RE: What can YOUR mirror do?

      @Mykle1

      Mine is also hosting PiHole and also doing a cron job every hour to test ISP download speeds

      I don’t have any processor intensive modules installed.

      posted in General Discussion
      O
      orayoflighto
    • RE: After update, Calendar shows infinite number of events.

      @slametps

      The maximumEntries setting now applies to each calendar rather than globally. So if you have 5 calendar URLs then you get 50 listings (if the default is set to 10). Before the change it would show the most recent 10 events from all of your calendars.

      posted in Troubleshooting
      O
      orayoflighto
    • RE: After update, Calendar shows infinite number of events.

      You didn’t miss it. It is a change with the most recent update.

      posted in Troubleshooting
      O
      orayoflighto