A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-PIR-Sensor with RelayPin and execute script
- 
 Sorry i understand. MMM-PIR-Sensor config with no RelayPin config. Make RelayPin with your script. 
- 
 
- 
 when execute the python script (python /home/pi/scripts/light.py), i got following error: File “/home/pi/scripts/light.py”, line 22 
 read = GPIO.input(PIR_GPIO)
- 
 Hi, i got an error when i run python script. now the whole error message: File “/home/pi/scripts/light.py”, line 22 
 read = GPIO.input(PIR_GPIO)
 ^
 IndentationError: expected an indented blockthx 
- 
 @nogE 
 Python is a bit tricky. Unlike other languages python needs proper indentation. Make sure you don’t mix up tabs and whitespaces. Best practice is to use 4 whitespaces instead of one tab.
- 
 Yes, the error code says, you have not enought whitespaces before the lines. 


