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

    Posts

    Recent Best Controversial
    • PIR with a relay module

      So, as in this thread I am trying to use a PIR sensor that powers off my screen via a relay. I’ve had no luck so far. The module MMM-PIR-sensor works nicely as it should, as long as I don’t use relayPIN in the config.js. I also tried doing that via external python scripts, but somehow the relay doesn’t get triggered. Well, it clicks extactly once and that’s it.

      Has anyone managed to use a PIR sensor with a relay on a Raspberry Pi 3 B? If so, how did you do that?

      Edit: Btw, gpio -g write 27 0 or gpio -g write 27 1 do absoloutly nothing. Wiringpi v 2.44 is installed.

      posted in Troubleshooting
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      I am currently fighting with the software and I still have to build the frame but I’ll post pictures once everything is done.
      I already got my mirror and it is indeed dark. Though, that should be ok as it is a tiny room with a window (our guest toilet).

      Edit: I would like to mention the very nice service of Brigla. First, it arrived only 24 hours after I placed the order but the mirror had a minor defect (one tiny spot without refective coating). So I wrote them an email about it yesterday. This morning they replied they would ship another mirror and I don’t have to return the old one. Effectively giving me two for the price of one…
      Fun fact: They are only 70km from where I live.

      posted in General Discussion
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Ok, I did all that and I do get the “…” when I run the pir.py, but the relay doesn’t get triggered. Tried the monitor_oX.sh with and without sudo. Maybe I should just start all over new. Everything seems to be a bit messed up. I reverted back to motion detector only and also that isn’t working anymore in MM.

      Edit: Started a new thread here.

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Thank you so much!

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Two minutes if you know what you’re doing…
      The problem is I don’t have a button. I did create the relay.py script and run it. It triggers the relay exactly once and then stays like this. I can’t even stop the script anymore once it’s running…

      Man, I really thought setting up the relay would be as easy as adding one line to the config. Wish I had tried to set it up earlier.

      Still need help with this. :-(

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Thanks so far. I did npm uninstall wiring-pi and installed wiringpi via git. Now I don’t get the error anymore but the relay still does nothing. It’s getting late and won’t have the time today anymore to look into it. Let me know if you have other ideas and I will continue tomorrow.

      Thanks so far.

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Hmm, I get

      Unable to determine hardware version. I see: Hardware   : BCM2835
      ,
       - expecting BCM2708 or BCM2709. Please report this to projects@drogon.net
      

      when I run gpio -g write 27 1 .

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      I would like to use the MMM-PIR-sensor module to trigger the relay to power off the LCD. However, whenever I set
      relayPIN: 27, in the config.js, the motion detector doesn’t do anything anymore. Anyone know what else I have to change in the config? It’s working just fine without the relay.

      Config working without relay (switches off HDMI):

                      {
                      module: 'MMM-PIR-Sensor',
                      config: {
                              sensorPIN: 22, 
                              relayPIN: false,
                              powerSaving: true,
                              }
                      },
      

      Not working with relay:

                      {
                      module: 'MMM-PIR-Sensor',
                      config: {
                              sensorPIN: 22,
                              relayPIN: 27,
                              relayOnState: 1,
                              powerSaving: true,
                              }
                      },
      

      The problem is I am using a V59 LCD controller board which doesn’t power on again once the HDMI is re-activated.

      posted in Tutorials
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      I don’t think the thickness of the glass influences the transmission as glass itself is very light-transmissive and the reflective layer is just a very thin coating on the glass.

      I also think that in a darker room the Mirastar should be better but this is the first time I am dealing with 2-way mirrors…

      posted in General Discussion
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      Hi Tom,

      thanks a lot for the tip with Brigla. Haven’t found them before although I was searching the web for a long time already. I have placed an order for the Mirropane Chrome Spy with a transmission of 8%. It is less than 50€ incl. shipping. Pretty amazing price! Almost a third of what I would have paid at Glas-star.de! At least I didn’t burn too much money if that’s not the right mirror. Anyhow, I’d still like to get feedback from other users about their choices. That’s also why I reply in English :-)

      posted in General Discussion
      M
      MadScientist
    • 1
    • 2
    • 17
    • 18
    • 19
    • 20
    • 21
    • 20 / 21