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

    Topics

    • T

      Modify clock module

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      2
      0 Votes
      2 Posts
      1k Views
      brobergB
      In custom.css add .clock .date {color: red}
    • T

      Pi keeps crashing

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      581 Views
      qu1queQ
      Hello, I do not know what your problem is due to, but I recommend that you do not use NOOBS, use better only raspbian. You can download it here: https://www.raspberrypi.org/downloads/raspbian/ I recommend you the raspbian image with desktop (not the one with recommended software)
    • T

      Google assistant segmentation fault

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      1
      0 Votes
      1 Posts
      548 Views
      T
      Has anyone found a fix for google assistant segmentation fault. I’ve set up the assistant and it works fine with googlesamples-assistant-pushtotalk When I try googlesamples-assistant-hotword it throws up a segmentation fault. Is there a work around for this
    • T

      PIR Sensor

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      2k Views
      T
      Thank you, that got rid of that error. Still no joy with the PIR sensor though unfortunately. The strange thing is if i change my monitor_on and monitor_off sh files to vcgencmd display_power 0 vcgencmd display_power 1 the pir works fine and shuts off / turns on my monitor. these are my scrips #!/usr/bin/env python import sys import time import RPi.GPIO as io import subprocess io.setmode(io.BCM) SHUTOFF_DELAY = 30 # in seconds, how long the monitor will be on until next button press or PIR detection PIR_PIN = 22 # 15 on the board (this needn’t to be a PIR. Can be a button also) LED_PIN = 16 # optional, don’t use as Relay-PIN. It just shows detection time of the PIR without delay time def main(): io.setup(PIR_PIN, io.IN) io.setup(LED_PIN, io.OUT) turned_off = False last_motion_time = time.time() while True: if io.input(PIR_PIN): last_motion_time = time.time() io.output(LED_PIN, io.LOW) print ".", sys.stdout.flush() if turned_off: turned_off = False turn_on() else: if not turned_off and time.time() > (last_motion_time + SHUTOFF_DELAY): turned_off = True turn_off() if not turned_off and time.time() > (last_motion_time + 1): io.output(LED_PIN, io.HIGH) time.sleep(.1) def turn_on(): subprocess.call(“sh /home/pi/monitor_on.sh”, shell=True) def turn_off(): subprocess.call(“sh /home/pi/monitor_off.sh”, shell=True) if name == ‘main’: try: main() except KeyboardInterrupt: io.cleanup() monitor on script DISPLAY=:0 xscreensaver-command -deactivate monitor off script DISPLAY=:0 xscreensaver-command -activate
    • T

      Pir Sensor not shutting off screen.

      Watching Ignoring Scheduled Pinned Locked Moved Tutorials
      6
      0 Votes
      6 Posts
      2k Views
      S
      @tinsebayacc I just added some code to my module to handle PIR_SENSOR sending notice of user around… so you shouldn’t have to change anything there… well, stop it from turning off the display
    • 1 / 1