@bibi I am using an Apds sensor with other sensors on a Arduino connected to the pi via serial interface. I documented it and wrote a universal module to receive messages on the serial interface. You can find my documentation at Examples
Read the statement by Michael Teeuw here.
Posts
-
RE: Gesture control with APDS-9960
-
RE: PIR sensor to turn monitor off. Nothing works :(
@elleclouds Black causes the display to turn off the backlight which saves energy. But it is surely less effective than switching the display to standby mode.
-
RE: [MMM-GPIO-Notifications] Sends notifications based on GPIO events on multiple pins
@kash Hi, I only get the white screen if my config is broken really badly.
Are you sure you added a “,” after the last module before the Gpio module? -
RE: PIR sensor to turn monitor off. Nothing works :(
Hi,
it depends on your monitor. Maybe there is an option in the monitor configuration menu.
If not you can configure the MMM-Screen-Powersave-Notification module to only hide all modules and show the black background instead of turning the hdmi off (hideInsteadShutoff option) -
RE: PIR sensor to turn monitor off. Nothing works :(
@elleclouds Hi, do you see any output of the Gpio module in the log file?
-
RE: PIR sensor to turn monitor off. Nothing works :(
@satsatt
Hi,
it might be a problem with screen blanking.
If you edit your /boot/cmdline.txt like in this description it might solve the problem. -
RE: PIR sensor to turn monitor off. Nothing works :(
Hi,
i recently wrote a tutorial of how to use two of my modules to turn on/off the display with an PIR sensor.
I do not have much time to support at the moment but maybe it helps…
-
RE: MMM-MplayerRadio
@electros Perfect.
I think I will check in the script into the repository so you can easy update to upcoming versions -
RE: MMM-MplayerRadio
If you change your script to (playRadio.bash):
#!/bin/bash URL=$1 RUN=1 exit_script() { echo "Stopping playback" xmms2 stop xmms2 clear RUN=0 } trap exit_script SIGINT SIGTERM xmms2 stop xmms2 clear xmms2 add $URL xmms2 play while [ $RUN -gt 0 ]; do echo "Still running" sleep 1 done
and the config to
{ module: "MMM-MplayerRadio", header: "Radio", position: "top_center", config: { stations: [ { title: "KissFM", url: "https://live.kissfm.ro/kissfm.aacp", logo: "https://upload.wikimedia.org/wikipedia/ro/8/86/Logo_Kiss_FM.png", customCommand: "/home/pi/MagicMirror/modules/MMM-MplayerRadio/scripts/playRadio.bash", customCommandArgs: ["###URL###"], }, ], }, },
You can then reuse the same script for different stations only by adding the url as first parameter in the config
Edit: Added url back to the config
-
RE: MMM-MplayerRadio
Hi,
as i wrote in the documentation you need to make sure that your script runs as long as the station is active and needs to stop the playback if it gets a kill signal.
Maybe i will find a short tutorial about catching the kill signal.