Hi,
i normally added cards to my module descriptions in the showcase are.
Currently the cards are not being included. Is this feature broken?
I tried it with Firefox and Chromium, both with the same result.
Hi,
i normally added cards to my module descriptions in the showcase are.
Currently the cards are not being included. Is this feature broken?
I tried it with Firefox and Chromium, both with the same result.
I use an HifiBerry DAC+ on my mirror to play Spotify and Radio.
The aim of this module is to provide a simple mechanism to play online radios on the mirror and switch between different stations.
Because my wife and i like different stations i added profile support as well.
The module can be controlled either by notifications or touch.
It uses the Raspian “mplayer” to play “m3u” playlist files my favorite webpage of online radios (http://www.surfmusik.de/) provides. But you can use any m3u file you like.
MMM-MplayerRadio
[card:Tom-Hirschberger/MMM-MplayerRadio]
streamlink wrapper supports additional custom arguments like the vlc wrappers nowvlcWrapper.bash and vlcPaWrapper.bash now support a variable count of custom options that can be added after the stream url. The options will be added directly to the vlc command line i.e. to disable certificate verification.vlc is used now. Use the provided vlcWrapper.bash script to start vlc with the options needed.vlcPaWrapper.bash script to use the additional options needed to start vlc with enabled stream information support.vlcPaWrapper.bash which uses vlc to play a stream but sets the audio of vlc with pa_volume to a configurable value beforexmms2 and HiFiBerryOS wrapper.HiFiBerryOS is now more robust if the station gets changed or if the playback gets stopped at the HiFiBerryOS interfacecustomCommand is used and the wrapper/program stopsThis now Version 0.0.9 provides:
This new Version 0.0.8 provides:
This new Version 0.0.7 provides:
This new Version 0.0.6 provides:
This new Version 0.0.5 provides:
As there are a lot of problems with mplayer at the moment i strongly suggest to use the customCommand feature to play the stations with vlc. See the readme for details!
The initial release provides the following features



I did a lot of work on the module the last days. I integrated a more complex (and more detailed) example with an APDS-9960 and different Laser sensors, support sending payload based containing strings of the messages and it is possible to send different notifications based on the same input message in different profiles (MMM-ProfileSwitcher)
I did some work on the module the last days.
An example how to use an PIR sensor is integrated now. Also a new delay option is included and the possibility to send different notifications for the same pin based on profiles
I did a lot of work to the module the last days. Now modules can be hidden / shown instead of turning off/on the display. Also a countdown can be displayed and the delay can be set by active profile (MMM-ProfileSwitcher)
This is an Add-On module to MMM-ProfileSwitcher and is based on MMM-pages and MMM-page-indicator.
I wanted to be able to specify pages on my mirror but also be able to have different profiles on each page (i.e. i wanted an calendar page where either the events of my wife or my ones are displayed).
MMM-ProfileControl differs between horizontal profiles (pages) and vertical ones. If you do not specify different vertical profiles the vertical indicator can be hidden and the modules behavior is nearly the same as of MMM-pages.
The current profile can be changed with different notifications either to a specific horizontal or vertical one or you can iterate through them.
If you do not like the default icons of the indicators you can change them via configuration.
The module also keeps track of profile changes that happen through other modules (CHANGED_PROFILE notification).
Attention: At the moment there are problems with MMM-CalenderExt2. I am already in contact with eouia and i think i found an solution. In my personal setup i use an patched version that works fine.
Because i only send notifications to MMM-ProfileSwitcher modules that did not work without my module will not work with it.


MMM-ProfileControl
[card:Tom-Hirschberger/MMM-ProfileControl]
Hi,
great that you are interested in my module. I did not test ist for a while and currently have no working installation of MM.
Hopefully the answer of Sam helps you.
I will try to get my mirror running this week and will test the module.
Hi,
I asked me the same quastion a view weeks ago but could not find a library for the sensor that is still maintained. I ended up in buying a arduino board and send the signals via USB serial interface to the pi now.
@ejay-ibm you are a genius and saved me a lot of time.
I had the same idea but no time to implement it.
Thank you very mich
@AdnanAhmed97
Hi, i do not have any experience with keypads. A short research showed me, that the pads work with a polling mechanism. You need to check in a endless loop if two signals on different pins happend. In my opinion this is a bad job for the Pi. A better solution would be to do recognition work on a arduino board and only send the result (key x pressed) via serial interface to the Pi.
Hi, i do not now the script youbare using but i wrote two modules which do exactly what you like https://github.com/Tom-Hirschberger/MMM-Screen-Powersave-Notification and https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications
Hi,
i wanted to suggest to use the https://github.com/Trekky12/MMM-ModuleToggle module in combination with in example my https://github.com/Tom-Hirschberger/MMM-Serial-Notifications module.
The problem is that the MMM-RadioDe does not work. There are open issues as from 2017.
I tried to do a quick fix but can’t get it run at the moment.
@ejay-ibm I will take a look as fast as i can. It is deffinitly a problem with the code i added
Edit: Added a pull request which should fix the issue
@sdetweil You are absolutly right. But it is a totally different aproach. Hiding the modules to get the background as dark as possible does not save the same energy as turning off the screen. I am one of the lucky guys that uses a Benq monitor which shuts off in a second after turning off the signal and is back in less than three when turning it on again.
I think your module is the perfect solution for people who are not that lucky
@Stef Hi, yesterday i added two Modules to the Showcase Area. On that monitors GPIO Pins and one which controls the Monitor.
My usecase is exactly like yours. I use an PIR sensor to detect user presence and want the screen to be turned off after a configurable timeout.
If you want to try them:
MMM-Screen-Powersave-Notification
and
MMM-GPIO-Notifications
Hi,
i had the same problem the last weeks.
It looks like pm2 creates the startup script for systemd with wrong parameters.
You should check if there exists a file “/etc/systemd/systemd/pm2-pi.service”
In my case the file existed but contained the following lines:
USER=root which should be USER=pi
Environment=PM2_HOME=/root/.pm2 which should be Environment=PM2_HOME=/home/pi/.pm2
PIDFile=/root/.pm2/pm2.pid which should be PIDFile=/home/pi/.pm2/pm2.pid
If the file does not exist you can create it with:
sudo pm2 startup systemd -u pi
But you need to check the values again after creating it.
In the end you can enable the script with:
sudo systemd enable pm2-pi.service
The parts in described by @Chris are needed as well
@Sean All things i needed are merged now; i archived my repostory and added a hint to yours to the readme
This module is inspired by https://github.com/mboskamp/MMM-PIR and https://github.com/mboskamp/MMM-PIR but is controlled by notifications;
Based on “USER_PRESENCE”, “SCREEN_ON”, “SCREEN_OFF” and “SCREEN_TOGGLE” notifications the screen is controlled; By default “vcgencmd” command is used to turn the screen on or off and also to check the current status but it can be changed in the config file;
After the configured delay (which can be changed during rutime with an “SCREEN_POWERSAVE” notification) the screen will be turned off if no “USER_PRESENCE” notification had been send;
If needed custom scripts can be run after switching the screen on or off;
MMM-Screen-Powersave-Notification
[card:Tom-Hirschberger/MMM-Screen-Powersave-Notification]
spawnSync and spawn instead of execSync and exec now. the old commands caused “Error: write EFAULT” exceptions in installations with current nodejs and electron versionsxrandr or tvservice as an alternative to the default vcgencmd command to control the screen. xrandr is the only solution working with current “vc4-kms-v3d” driver used in Raspberry Bullseye operating system.This module monitores multiple configurable GPIO pins for state changes; if one of the pins changes to the configured state the notifcations which are specified will be send.
I wrote this module to send “USER_PRESENCE” notifications based on PIR Sensors.
MMM-GPIO-Notifications
[card:Tom-Hirschberger/MMM-GPIO-Notifications]
I recently added an example on how to connect a HC-SR501 PIR sensor to GPIO4 and send a SCREEN_ON notification to the MMM-Screen-Powersave-Notification module.
forceInfoFileUsage. If this option is set to true the build in device information will be skipped the usage of the gpioinfo.json is forced.** rolled back**
gpioinfo can be used but also named GPIOs.BREAKING CHANGES
gpio_debounce is now set to 0gpio_state and notifications options is deprecated now. Use notifications_low and notifications_high instead.gpio_debounce and the options delay, delay_low and delay_high to the README