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

    Posts

    Recent Best Controversial
    • Commercial Smart Mirror?

      Tammax Smart Mirror Hits Kickstarter (video)

      http://flip.it/D_NZmu

      Has anyone seen this? Thoughts?

      posted in General Discussion
      lucallmonL
      lucallmon
    • RE: TV Show Time

      @vicdilou I think you have to have Sonarr running on the same machine as the mirror. Sonarr has to be started via the command line for the ical link to work. It’s working on mine. I just need to figure out how to make it run at boot.

      posted in Requests
      lucallmonL
      lucallmon
    • RE: Physical button

      you guys were no help. lol.

      This is what fixed it: https://www.raspberrypi.org/forums/viewtopic.php?t=68183&p=497867

      posted in Hardware
      lucallmonL
      lucallmon
    • RE: MMM-MirrorMirrorOnTheWall - Alexa voice control to hide/show modules and display text/images

      @zman3 It’s because there’s no guide. It’s just figure it out yourself. You know this isn’t a well-organized module when you look at how many posts/replies are in it.

      posted in System
      lucallmonL
      lucallmon
    • RE: My First Build, 24 Inch In A Custom Frame

      What mirror did you use? I mean, where did you get the mirror?

      posted in Show your Mirror
      lucallmonL
      lucallmon
    • RE: Physical button

      @Jopyth @KirAsh4 I have two buttons set up–1 to shutdown the pi, and another I was hoping to set it up to run “pm2 restart mm” to restart the MM. I have 2 separate .py scripts, 1 for each. And I edited the /etc/rc.local file to run the scripts at startup. I’m not sure what I’m doing wrong though. Here’s my rc.local file:

      #!/bin/sh -e
      #
      # rc.local
      #
      # This script is executed at the end of each multiuser runlevel.
      # Make sure that the script will "exit 0" on success or any other
      # value on error.
      #
      # In order to enable or disable this script just change the execution
      # bits.
      #
      # By default this script does nothing.
      
      # Print the IP address
      _IP=$(hostname -I) || true
      if [ "$_IP" ]; then
        printf "My IP address is %s\n" "$_IP"
      fi
      
      python /home/pi/.sd_button.py,
      
      python /home/pi/.rs_button.py
      
      exit 0
      
      

      the files .sd and .rs_button.py files are the ones. here is the .py for the shutdown that works on GPIO pin 25 and ground:

      #!/bin/python
      #This script was authored by AndrewH7 and belongs to him (www.instructables.com/member/AndrewH7)
      #You have permission to modify and use this script only for your own personal usage
      #You do not have permission to redistribute this script as your own work
      #Use this script at your own risk
      
      import RPi.GPIO as GPIO
      import os
      
      gpio_pin_number=25
      #Replace YOUR_CHOSEN_GPIO_NUMBER_HERE with the GPIO pin number you wish to use
      #Make sure you know which rapsberry pi revision you are using first
      #The line should look something like this e.g. "gpio_pin_number=7"
      
      GPIO.setmode(GPIO.BCM)
      #Use BCM pin numbering (i.e. the GPIO number, not pin number)
      #WARNING: this will change between Pi versions
      #Check yours first and adjust accordingly
      
      GPIO.setup(gpio_pin_number, GPIO.IN, pull_up_down=GPIO.PUD_UP)
      #It's very important the pin is an input to avoid short-circuits
      #The pull-up resistor means the pin is high by default
      
      try:
          GPIO.wait_for_edge(gpio_pin_number, GPIO.FALLING)
          #Use falling edge detection to see if pin is pulled
          #low to avoid repeated polling
          os.system("sudo shutdown -h now")
          #Send command to system to reboot
      except:
          pass
      
      GPIO.cleanup()
      #Revert all GPIO pins to their normal states (i.e. input = safe)
      
      

      and here is the one that doesn’t work:

      #!/bin/python
      #This script was authored by AndrewH7 and belongs to him (www.instructables.com/member/AndrewH7)
      #You have permission to modify and use this script only for your own personal usage
      #You do not have permission to redistribute this script as your own work
      #Use this script at your own risk
      
      import RPi.GPIO as GPIO
      import os
      
      gpio_pin_number=18
      #Replace YOUR_CHOSEN_GPIO_NUMBER_HERE with the GPIO pin number you wish to use
      #Make sure you know which rapsberry pi revision you are using first
      #The line should look something like this e.g. "gpio_pin_number=7"
      
      GPIO.setmode(GPIO.BCM)
      #Use BCM pin numbering (i.e. the GPIO number, not pin number)
      #WARNING: this will change between Pi versions
      #Check yours first and adjust accordingly
      
      GPIO.setup(gpio_pin_number, GPIO.IN, pull_up_down=GPIO.PUD_UP)
      #It's very important the pin is an input to avoid short-circuits
      #The pull-up resistor means the pin is high by default
      
      try:
          GPIO.wait_for_edge(gpio_pin_number, GPIO.FALLING)
          #Use falling edge detection to see if pin is pulled
          #low to avoid repeated polling
          os.system("sudo reboot")
          #Send command to system to reboot
      except:
          pass
      
      GPIO.cleanup()
      #Revert all GPIO pins to their normal states (i.e. input = safe)
      
      

      it’s essentially the same but it’s in GPIO 18 and ground. Also, I’ve alternated the pin and that didn’t change anything.

      Here’s what my pi currently looks like: https://goo.gl/photos/eJrMh8i9ZZHC4RCr8

      Any thoughts?

      posted in Hardware
      lucallmonL
      lucallmon
    • RE: Physical button

      @Jopyth how do you control multiple buttons? I have 2 connected but I can only get one to work.

      posted in Hardware
      lucallmonL
      lucallmon
    • RE: MMM-ModuleScheduler - Module Schedules and Notifications

      I have found that this white screen that happens every day essentially freezes the entire Magic Mirror and I have to press CRTL+Q to restart. It doesn’t actually freeze the entire RPi.

      posted in System
      lucallmonL
      lucallmon
    • RE: Phone Notifications

      Has anyone had an issue with filling up your notifications and then no new notifications come through at all?

      posted in Utilities
      lucallmonL
      lucallmon
    • 1
    • 2
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 9 / 12