Hi,
gave it a new try today. But i can`t get xmms2 to run on my pi. Looks like the xmms alsa plugin has some problems with my HifiBerry.
Also tried omxplayer but it has problems with internet streams.
Hi,
gave it a new try today. But i can`t get xmms2 to run on my pi. Looks like the xmms alsa plugin has some problems with my HifiBerry.
Also tried omxplayer but it has problems with internet streams.
@electros
mplayer -cache 256 -playlist PLAYLISTFILE
I will try to reduce the flickering but I don’t think this will stop the problem of your stations not being played.
I spent the last hour to read more about Xmms2. I don’t think that I can implement an easy way to switch between the two players. One of the main problems is that Xmms2 does not provide the current stream info of the station.
@electros I just realised that the flickering means that the module tries to switch to the sender but the mplayer process runs into an error.
Does it work if you run the command directly in the shell?
@electros
Sorry for that.
I will check it tomorrow. It is curious because I did not change anything in the backend.
Found a hack:
You can create an own m3u file which contains this url “http://stream.laut.fm/magicfm”. This one is working fine with mplayer
{
title: "Test",
url: "/home/pi/test.m3u",
}
I tried this link on the command line:
mplayer -cache 256 -playlist http://www.surfmusik.de/m3u/magicfm,14949.m3u
Mplayer complains that the station is to slow. It doesn’t even start playing in my case.
It looks like mplayer has some known problems with aac.
But you are right. If i use xmms2 it works.
The problem is, that xmms2 uses a totally different interface.
But also some good news. I released a new version 0.0.2 which adds two volume buttons.
@electros I will check if I can include two control buttons to increase/decrease the volume by sending notifications to MMM-Volume.
This is a simple module which uses external scripts as data source to display the temperature and humidity of different sensors.
As i use an HTU21 sensor a script to read the values is included already. There scripts to read data of DHT11, DHT22, BME280, DS18B20 included as of version 0.0.2.
MMM-Temperature
[card:Tom-Hirschberger/MMM-Temperature]
spawnSync instead of execSync to call the scripts now. execSync caused “Error: write EFAULT” exceptions so this change was necessaryadditional values like wind speed, uv and rain can be displayed now
modified some of the examples to get a more reliable wifi connection on the esp32 boards and added a new example
This new version 0.0.4 provides the following features:
This new version 0.0.3 provides the following features:
This new version provides the following improvements:
The initial release provides the following features


Hi,
i wrote an complete example recently and added it to my module:
HC-SR501 PIR Example
I translated it to german language as well: HC-SR501 PIR Beispiel
Hi,
normally mplayer is very fast. Can you try to reduce the caching with the “mplayerCache” option either for one station or globally for all. The default value is 512 and may be a little high.
There already exists an module to control the volume MMM-Volume which i use in my setup.
Sorry if it look liked i am taking the things personal that wasn’t my goal.
I want my modules to work and not to cause problems…
Could it be that you run two Browser (maybe build in and a second head) because the notifications get fired twice?
Edit: The delay seems to work. Because there are 20 seconds between the first time the gpio fires and the second time.
Maybe the problem is not the GPIO. Did you find same useful information in the log. Is the GPIO module fireing that often?
If an delay is configured in the GPIO module any events within this time range will be ignored. It is a simple mechanism and does not depend on the sensor. I use it with three PIRs in my setup without any problems.
Edit: There should be some entry like “MMM-GPIO-Notifications: : Skipped notifcation…” in the log if the delay works and the sensor fires
Ps.: My modules write a lot of debug output to the log file. Maybe there is a hint in “~/.pm2/logs/MagicMirror-out.log”
Sorry, my mistake. Sure the profiles option in the GPIO config will cause the module to only fire the notification on pageOneEveryone.
What kind of PIR are you using, a HC-SR501? Maybe your jumper is set to pulse a signal as long as a object is in distance.
@DaVinki said in Another PIR sensor:
MMM-ProfileSwitcher
Hi,
your configuration of MMM-ProfileSwitcher is wrong. In your case it will simply look like this:
{
module: 'MMM-ProfileSwitcher',
config: {
// See 'Configuration options' for more information.
}
}
But you need to add the classes part to your MMM-Wallpaper module:
{
module: 'MMM-Wallpaper',
config: {
...
}
classes: 'pageOneEveryone',
},
So your config will look like this:
{
module: 'MMM-ProfileSwitcher',
config: {
defaultClass: "pageOneEveryone",
ignoreModules: ["moduleVisiableOnEveryPageOne", "moduleVisibleOnEveryPageTwo"]
}
},
{
module: 'MMM-Wallpaper',
config: {
//Add your wallpaper config here
}
classes: 'pageOneEveryone',
},
{
module: 'MMM-ProfileControl',
position: 'bottom_bar',
config: {
profiles: [
['pageOneEveryone'],
['pageTwoEveryone'],
],
}
},
{
module: 'MMM-GPIO-Notifications',
config: {
'22': {
gpio_state: 1,
gpio_debounce: 10,
delay: 1000,
notifications: [
{
notification: 'PROFILE_DECREMENT_HORIZONTAL',
},
]
}
}
},
The result will be two pages “pageOneEveryone” and “pageTwoEveryone”.
Every time your PIR triggers an “1” the GPIO Module will send an Notification to switch to the next page (and start again with “pageOneEveryone” if the end is reached).
You then can add “classes: ‘pageOneEveryone’,” to every module you want to be displayed an “pageOneEveryone” and “classes: ‘pageTwoEveryone’,” to every module you want to be displayed on “pageTwoEveryone”.
If you want to have modules displayed on every page you can add them to the ignore list of MMM-ProfileSwitcher.
Hi,
to me it sounds more like pages/profiles you are looking for.
My https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications module is able to trigger notifications based on GPIO events.
In combination with https://github.com/tosti007/MMM-ProfileSwitcher and https://github.com/Tom-Hirschberger/MMM-ProfileControl you could toggle through the profiles with your PIR sensor.
Thanks for the reply. I added download links to all my posts for the moment.
@omoioli
Hi, great if you like it.
What exactly do you mean. Currently there are a lot of problems with the forum. Are the screenshots not visible or do you like to have an different one?
This module querys the mjpeg streams of cams connected to Synology Diskstations with the syno api and displays the cams in an column based grid.
One cam can be displayed in a bigger view. This cam can either be changed by notification or click/touch.
I use the mjpeg streams because i do not need any other tools to render/display them. The quality is not that good as with RTSP streams but for need the quality is good enough.
MMM-SynologySurveillance
[card:Tom-Hirschberger/MMM-SynologySurveillance]



moduleIsDisplayedInEveryProfile which needs to be set to true if MMM-ProfileSwitcher is used but the module is set to the ignore list and is displayed on all profilessyno library a custom implementation is used now. The custom implementation is compatible with newer releases of Surveillance Station (> 9.1) nowskipOnPrivilegeError config option is dropped with the new implementation. If configured it will be ignored now.changedPositionAnimationSpeed with this release. If the position of one cam changes and the gui needs to be refreshed this animation speed is used instead of the “usual” one. The option is set to 0 as default to reduce flickering.debug config option to re-enable more outputimgDecodeCheckInterval which can either be set for all or for single cams. If the option is set to a value higher than 0 the module periodically (unit is seconds) checks if the displayed cam image is still decodeable. If not the URL gets reset and a refresh of all URLs is triggered. This is to avoid freezed cam images.minimumTimeBetweenRefreshs which prevents to refresh the URLs to often (i.e. cause of the new imgDecodeCheckInterval). The unit is milliseconds!restoreBigAfterProfileChange can be set to false.animationSpeed being ignored if module is shown after it was hiddenprofiles not working properly in all casesHi,
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.