• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Cowboysdude's Mirror

Scheduled Pinned Locked Moved Show your Mirror
49 Posts 9 Posters 47.6k Views 9 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cowboysdude Module Developer @ostfilinchen
    last edited by Sep 26, 2016, 8:23 PM

    @ostfilinchen said in Cowboysdude's Mirror:

    ERROR

    Run the mirror in dev mode

    npm start dev

    Then see what errors you’re getting :)

    1 Reply Last reply Reply Quote 0
    • B Offline
      bibi
      last edited by bibi Oct 30, 2016, 5:04 PM Oct 30, 2016, 5:03 PM

      @cowboysdude Hi! would you mind helping me to install/debug your module please? i am not able to make it work even tho i followed your instructions :( thx if you can do this favor.
      let me know what should i share (command to run etc) to make it easy to “debug”

      C 1 Reply Last reply Oct 30, 2016, 5:13 PM Reply Quote 0
      • C Offline
        cowboysdude Module Developer @bibi
        last edited by Oct 30, 2016, 5:13 PM

        @bibi said in Cowboysdude's Mirror:

        @cowboysdude Hi! would you mind helping me to install/debug your module please? i am not able to make it work even tho i followed your instructions :( thx if you can do this favor.
        let me know what should i share (command to run etc) to make it easy to “debug”

        Sure I will help you all I can :)

        B 1 Reply Last reply Oct 30, 2016, 5:26 PM Reply Quote 0
        • B Offline
          bibi @cowboysdude
          last edited by Oct 30, 2016, 5:26 PM

          @cowboysdude oh that’s really really awesome!
          so what i have done is git Pir-Sensor & wiringPi into root? =>
          0_1477847789347_Capture d’écran 2016-10-30 à 18.15.31.png

          edit with nano pir.py =>
          0_1477847957260_Capture d’écran 2016-10-30 à 18.18.45.png

          chmod all 3 files at pi@raspberrypi:~ $

          and crontab also at pi@raspberrypi:~ $

          0_1477848117253_Capture d’écran 2016-10-30 à 18.21.35.png

          the jumper on PIR sensor in on H and the knobs are both set at minimum level

          1 Reply Last reply Reply Quote 0
          • C Offline
            cowboysdude Module Developer
            last edited by cowboysdude Oct 30, 2016, 5:37 PM Oct 30, 2016, 5:36 PM

            First make sure your wiring is correct… use the pin in the pir.py…

            Then…

            I put the pir.py and both sh files in the pi root directly

            pi/pir.py
            pi/monitor_off.sh
            pi/monitor_on.sh

            sudo chmod +x pir.py

            sudo chmod +x monitor_off.sh

            sudo chmod +x monitor_on.sh

            Then…

            sudo crontab -e

            On the last line enter:

            @reboot python /home/pi/pir.py &

            Hit CRTL-O to save then exit

            Reboot your pi

            B 2 Replies Last reply Oct 30, 2016, 5:43 PM Reply Quote 0
            • B Offline
              bibi @cowboysdude
              last edited by bibi Oct 30, 2016, 5:51 PM Oct 30, 2016, 5:43 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • B Offline
                bibi @cowboysdude
                last edited by bibi Oct 31, 2016, 6:24 PM Oct 31, 2016, 5:52 PM

                @cowboysdude that’s exactly what i did all 3 files are located in Pi home directory as well as wiringPi.
                sudo chmod there too & crontab too…
                but not working… there should be something else.
                i try to run your .sh file so the outcome is that monitor_off file works well but the monitor_on file displays the following message:
                0_1477938102221_Capture d’écran 2016-10-31 à 19.19.42.png
                would you mind to share with me YOUR following files plssssss =>
                0_1477938144578_Capture d’écran 2016-10-31 à 19.20.01.png
                thx you!

                C 1 Reply Last reply Oct 31, 2016, 9:22 PM Reply Quote 0
                • C Offline
                  cowboysdude Module Developer @bibi
                  last edited by Oct 31, 2016, 9:22 PM

                  @bibi go here:

                  https://github.com/cowboysdude/Pir-Sensor

                  download the monitor_on.sh and try running it again.

                  B 1 Reply Last reply Oct 31, 2016, 9:36 PM Reply Quote 0
                  • B Offline
                    bibi @cowboysdude
                    last edited by bibi Oct 31, 2016, 10:29 PM Oct 31, 2016, 9:36 PM

                    @cowboysdude Apperently i could get ride off this xset message now the monitor is turning on but the screen stays black… screensaver issue maybe.

                    C 1 Reply Last reply Nov 1, 2016, 3:03 AM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @bibi
                      last edited by Nov 1, 2016, 3:03 AM

                      @bibi said in Cowboysdude's Mirror:

                      @cowboysdude Apperently i could get ride off this xset message now the monitor is turning on but the screen stays black… screensaver issue maybe.

                      Yes that’s why I gave you the new one to try… I believe you’re having a screen saver issue.

                      The way I handled mine was to install xscreensaver and disable it :)

                      B 1 Reply Last reply Nov 1, 2016, 9:16 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy