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

    hmoed

    @hmoed

    1
    Reputation
    599
    Profile views
    5
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    hmoed Unfollow Follow

    Best posts made by hmoed

    • Who can help me to find my PIR Sensor problem

      Who can help me to find my PIR Sensor problem ?

      Using:
      Raspberry Pi 3 Model B Rev 1.2
      processor : 3
      model name : ARMv7 Processor rev 4 (v7l)
      BogoMIPS : 76.80
      Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant : 0x0
      CPU part : 0xd03
      CPU revision : 4
      Hardware : BCM2835
      Revision : a02082
      Serial : 00000000af2e503e

      MMM v2.1.3
      https://github.com/paviro/MMM-PIR-Sensor.git

      already done:
      git clone …
      npm install …
      chmod on user and map structures

      All i get is my normal MM screen and every other modul works fine.
      Testing on Motion-test.js shows me the correct status, and turns HDMI monitor off and on.

      also tested the MMM-MotionCensor but the same problem. the monitor is not going to sleep.

      regards,
      Harm Moed

      posted in Troubleshooting
      H
      hmoed

    Latest posts made by hmoed

    • RE: Who can help me to find my PIR Sensor problem

      Bob thnx,

      It’s working fine now.
      just iinstalled it like a service and added the PIR.PY a litle bit just for my personal settings and my HDMI screen turns off afther 5 minutes.

      Next thing i want to do is to include it as a module in he MMM Remote Control app so i can show or hide the status and countdown time on un mobile or screen.

      tHNx again Bob.

      posted in Troubleshooting
      H
      hmoed
    • Who can help me to find my PIR Sensor problem

      Who can help me to find my PIR Sensor problem ?

      Using:
      Raspberry Pi 3 Model B Rev 1.2
      processor : 3
      model name : ARMv7 Processor rev 4 (v7l)
      BogoMIPS : 76.80
      Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant : 0x0
      CPU part : 0xd03
      CPU revision : 4
      Hardware : BCM2835
      Revision : a02082
      Serial : 00000000af2e503e

      MMM v2.1.3
      https://github.com/paviro/MMM-PIR-Sensor.git

      already done:
      git clone …
      npm install …
      chmod on user and map structures

      All i get is my normal MM screen and every other modul works fine.
      Testing on Motion-test.js shows me the correct status, and turns HDMI monitor off and on.

      also tested the MMM-MotionCensor but the same problem. the monitor is not going to sleep.

      regards,
      Harm Moed

      posted in Troubleshooting
      H
      hmoed
    • RE: PIR motion works but screen ceeps alive

      back again,
      uncutter installed and is working
      remote controle module installed and is working from pc and my iPhone, top app.
      i can turn monitor off/on
      when i check the PIR on Python Idle3 it’s handeling motion correctly.
      BUT on the live mirror the PIR does nothing…

      HELP !

      posted in Troubleshooting
      H
      hmoed
    • RE: PIR motion works but screen ceeps alive

      thanks for the quick replay.
      I did instyall the unclutter for mouse pointer disable but not the way you discriped.
      I wil try what you typed above.

      1. sudo apt-get install x11-xserver-utils unclutter
      2. disabling the screensaver

      Afther that i take a look at the install of the remote control module.

      The Python script was only to show that the PIR is working outside MM2
      And i don’t run it the same time.

      i will inform back.

      posted in Troubleshooting
      H
      hmoed
    • PIR motion works but screen ceeps alive

      this is my first post, so be gantle with me please… ;-)

      PIR motion works on test but my hdmi connected screen ceeps on, it will not going off.

      Some PIR Test info on Python Idle3:
      import RPi.GPIO as GPIO
      import time
      sensor = 4
      GPIO.setmode(GPIO.BCM)
      GPIO.setup(sensor, GPIO.IN, GPIO.PUD_DOWN)
      previous_state = False
      current_state = False
      while True:
      time.sleep(0.1)
      previous_state = current_state
      current_state = GPIO.input(sensor)
      if current_state != previous_state:
      new_state = “HIGH” if current_state else “LOW”
      print(“GPIO pin %s is %s” % (sensor, new_state))

      OUTPUT on waving to PIR:
      GPIO pin 4 is HIGH
      GPIO pin 4 is LOW
      GPIO pin 4 is HIGH
      GPIO pin 4 is LOW
      GPIO pin 4 is HIGH
      GPIO pin 4 is LOW
      GPIO pin 4 is HIGH

      Config.js:
      module: ‘MMM-PIR-Sensor’,
      config: {
      sensorPIN: 4,
      powerSaving: true
      }

      ON NPM Start:
      Loading config …
      Loading module helpers …
      No helper found for module: alert.
      No helper found for module: clock.
      Initializing new module helper …
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper …
      Initializing new module helper …
      All module helpers loaded.
      Starting server op port 8080 …
      Server started …
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Connecting socket for: MMM-PIR-Sensor
      Sockets connected & modules started …
      Launching application.
      Create new calendar fetcher for url: http://p35-calendars.icloud.com/published/2/xxxxxxxxxxxxxxxxxx - Interval: 300000
      Create new news fetcher for url: http://feeds.nos.nl/nosjournaal - Interval: 300000
      Whoops! There was an uncaught exception…
      { Error: EBUSY: resource busy or locked, write
      at Error (native)
      at Object.fs.writeSync (fs.js:786:20)
      at Object.fs.writeFileSync (fs.js:1353:24)
      at new Gpio (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/onoff/onoff.js:88:8)
      at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:54:18)
      at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:98:10)
      at emitTwo (events.js:106:13)
      at Socket.emit (events.js:191:7)
      at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:503:12
      at _combinedTickCallback (internal/process/next_tick.js:67:7) errno: -16, code: ‘EBUSY’, syscall: ‘write’ }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?

      Settings:
      Edit /boot/config.txt
      set hdmi_force_unplug=1
      sdtv_mo=2 // Normal PAL

      sudo su
      /var/spool/cron/crontabs
      @reboot python /home/pi/Documents/PIR/pir.py &

      Also done:
      sudo apt-get update
      sudo apt-get upgrade
      sudo reboot
      in MMM-PIR-Sensor folder
      npm install
      sudo reboot

      what O what can it be ?

      posted in Troubleshooting
      H
      hmoed