@deepshades
Basically its just the standard PIR-Sensor shipped with female to female gpio connections (PIR-Sensor Amazon).
Read the statement by Michael Teeuw here.
Posts
-
RE: PIR Sensor turning display on/off over and over
-
RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)
First of all, I really appreciate these transport modules, great job.
With the new MMM-PublicTransportDB module, a nationwide transport checking is possible in theory, but I might have some problems with this.
After getting my station ID of interest from a csv-file of the Deutsche Bahn (http://download-data.deutschebahn.com/static/datasets/haltestellen/D_Bahnhof_2016_01_alle.csv), and implementing the module in the MagicMirror config file, either the module displays a loading string “lade…” or that no transport connection is found for this station…
I tried several stationIDs, the ones in the Github-example included, but none seem to work for me.
Any more ideas how to get it working?
Below my current config-file:{ module: 'MMM-PublicTransportDB', position: 'top_left', config: { stationId: 8079125, } },
If I got this right only one parameter is necessary -> stationID, the rest is not required for now.
-
RE: PIR Sensor turning display on/off over and over
Basically I had the same error with the display turning on and off over time. All in anger, I deinstalled the MagicMirror from the Pi and began at zero again.
After updating and upgrading the Pi and installing the MagicMirror, a new try with the PIR-Module was iniciated. So I installed the PIR-Module and somehow noticed that my GPIO cables were wrong connected (ground connected to GPIO21 and vice-versa).
So after this embarassing moment of disbelieve I changed the connections and checked if the sensor is working with a simple python script:from gpiozero import MotionSensor import time pir = MotionSensor(21) while True: #repeat this forever if pir.motion_detected: # if motion is detected print the message print("Motion detected!") if not pir.motion_detected: # if no motion is detected print the message print("No motion detected!") time.sleep(1)
Note that my pir is using GPIO21.
With this script I tested the sensor and it worked like a charm, even though the sensor is placed 5 centimeters away from the raspberry pi 3 (with no case or even a bead installed).
In the end, I only had to do acd MagicMirror
again, and install the MagicMirror:
npm install
. With this setup the MMM-PIR-module works magnificient. -
RE: PIR Sensor turning display on/off over and over
Similar problem here, PIR works like a charm (tested with code of post #4) but after starting the MagicMirror the display is turned off and on over and over even though nothing is changed in front of the sensor. (I use MMM-PIR).
-
RE: [MMM-PIR-Sensor] Install failing
Hey, thanks for advising us how to install the modules, but I´m still struggling to find a solution for me even after updating nodejs and npm to the latest builts…
Similar error with corrected package.json.Unable to find electron-prebuilt's version number, either install it or specify an explicit version
I even tried the
npm rebuild
@Mar suggested. My last attempt to get this working was updating electron to its newest version but this didn´t help either.
Is there anything I could further try to install this module correctly? -
RE: MMM-KVV - Local Karlsruhe transport (KVV) departure times
As a Karlsruher I have to say, the MMM-KVV Script runs like a charm, big thanks to @yo-less !
One or two annotations and suggestions:
For me, it seems like that themaxConn
(maximum amount of displayed connections) is limited to 10 even if a value higher than 10 is stated. So in practice, if you have to walk 7-8 minutes to the station, every of the 10 trains already departed. As a workaround, I determined a specificdirection
to get more possible choices, but only the amount of the 10 trains which head to the specified direction appear (mostly 4-6 connections).
Is there any way to exclude departure times (like exclude: now to departure in 5 minutes) or to extend the displayed connections further than 10?