Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. wishmaster270
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    wishmaster270

    @wishmaster270

    Module Developer

    18
    Reputation
    74
    Posts
    601
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online
    Location Munich - Germany Age 34

    wishmaster270 Follow
    Project Sponsor Module Developer

    Best posts made by wishmaster270

    • [MMM-GPIO-Notifications] Sends notifications based on GPIO events on multiple pins

      Description:

      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.

      Download:

      MMM-GPIO-Notifications

      Example:

      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.


      Version 0.0.3

      • it is now possible to send different notifications based on profiles

      Version 0.0.2

      • introduced an delay option which can be used to suppress notifications if they happen to quick after another (PIR-Sensor without option to configure a hold time)

      Version 0.0.1

      • A first version of the module which montiores different GPIO pins and sends notifications based on the events
      posted in Utilities
      wishmaster270
      wishmaster270
    • MMM-MplayerRadio

      Description:

      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.

      Download:

      MMM-MplayerRadio


      Version 0.0.4

      • The flickering has been reduced massively.

      Version 0.0.3

      • it is possible to configure a custom script to play the stations. This way it is possible to use in example xmms2 instead of mplayer
      • added an autoplay feature. Simply add the index of the station you want to start automatically after the module started to the new config option “autoplay”. The index starts with 0.
      • reduced the flickering caused by station and profile changes

      Version 0.0.2

      • added buttons to increase/decrease the volume (send notification to MMM-Volume)

      Version 0.0.1

      The initial release provides the following features

      • Using multiple stations and add an logo for each one
      • The stations can be switched by notification or touch
      • Stations either can have no profile (valid for all profiles) or an profile string

      Screenshots

      posted in Entertainment
      wishmaster270
      wishmaster270
    • MMM-SynologySurveillance

      Description:

      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.

      Download:

      MMM-SynologySurveillance

      Screenshots

      Vertical

      Horizontal


      Version 0.0.7

      • the Synology Diskstations throw privilege errors randomly; this is a known bug and caused some cams to disappear although an valid url had been provided at the last refresh; the default behavior now is to ignore this errors and keep the last url or position information; this can be changed with an new config option (skipOnPrivilegeError)
      • if an error occurs during the fetch of the position information of a camera the cam will be displayed without the information; next time the information is provided it will be updated

      Version 0.0.6

      • fixed an issue which caused position (ptz) changes to not work correctly if the internal position index differed to the ones used in the SynologyStation (i.e. because stations got deleted)
      • the view now only will be refreshed if either the cam stream or the ptz information changed after a fetch
      • it is now possible to force a refresh of the cam information by clicking on the dummy icon if no information had been provided previously
      • the PTZ information now only will be fetched if either showPositions or showBigPositions is active

      Version 0.0.5

      • fixed cam streams not updating after connection is to ds or cam is lost
      • fixed update issues of cam positions
      • fixed styles issues if cams with and without positions are mixed

      Version 0.0.4

      • it is now possible to move the cam to positions stored in the ds either by notification or by click/touch
      • the positions can be displayed as squares either only for the big and/or for the small cams
      • if next or prev position notification is called without specifying a cam the big one is used automatically

      Version 0.0.3

      • fixed a bug which caused wrong media URLs if multiple Diskstations are used
      • it is now possible to replace the protocol and host part of the media URLs (http://XXX.XXX.XXX.XXX) with the values configured. The Diskstation returns private IPs although the access is through a public IP otherwise.

      Version 0.0.2

      • Layouting is now organized with flex box layout instead of tables
      • Added two layouts (horizontal, vertical) which can be choosen by configuration
      • Column count of vertical layout now needs to be configured via css

      Version 0.0.1

      • query the urls of cams of Synology Diskstations with the syno api
      • display the cams in an grid based on columns
      • show one cam in a bigger view
      • change the bigger view cam by notification or click/touch
      • display different cams in different profiles
      posted in Utilities
      wishmaster270
      wishmaster270
    • RE: Looking for a European weather provider

      Hi, if you are still interested…
      I currently use the free Weatherbit api to display German weather in the NOOA3 module.

      posted in Development
      wishmaster270
      wishmaster270
    • RE: Can't get pm2 to auto launch after reboot

      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

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • 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)

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • [MMM-Screen-Powersave-Notification] A module which (de)activates the screen based on delay and notifications

      Description:

      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;

      Download:

      MMM-Screen-Powersave-Notification


      0.0.5

      • it now is possible to change to configured profile instead of shutting off the screen

      0.0.4

      • a new config option “hideInsteadOffShutdown” only hides/shows the modules instead of shutting off /on the display; the additional scripts can be used as if shutting down / on

      0.0.3

      • It is now possible to display an countdown if an module position is configured

      0.0.2

      • It is now possible to define different delays for different profiles (MMM-ProfileSwitcher)

      0.0.1

      • Supports “USER_PRESENCE”, “SCREEN_ON”, “SCREEN_OFF”, “SCREEN_TOGGLE” and “SCREEN_POWERSAVE” notifications
      • Scripts can be run after turning the screen on or off (i.e. to (de)activate a microphone)
      • Forced down/up is supported (i.e. to ignore an PIR event)
      posted in Utilities
      wishmaster270
      wishmaster270
    • RE: Is it possible to ad an Arduino?

      @Shinji0912 Hi, I wrote a module which converts messages received at serial interfaces to notifications (https://github.com/Tom-Hirschberger/MMM-Serial-Notifications). I have two Arduinos connected to my Pi with gesture and distance sensors.

      My temperature module (https://github.com/Tom-Hirschberger/MMM-Temperature) can receive notifications to update the values.
      Edit: The notification feature is only available in the development branch at the moment. I will mere it to the master the next days.
      There are examples integrated which show how to connect an esp32 board with WiFi to get temperature and humidity.
      Currently I am working on a module which should use MQTT to control an WS2801 LED Strip. But this one is in a very early state and will take a while to develop.

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • 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.

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • MMM-ProfileControl

      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.

      Screenshots

      Page One / Profile Two

      Page two / Profile one

      Download

      MMM-ProfileControl


      Currently the following features are implemented:

      • Horizontal and vertical profile support
      • Indicator of the horizontal and vertical profile
      • All icons (horizontal, vertical, separator) can be changed in the configuration
      • Notifications to change either to a direct profile or rotate horizontal and vertical
      posted in Utilities
      wishmaster270
      wishmaster270

    Latest posts made by wishmaster270

    • RE: MMM-MplayerRadio

      @robfer Hi, sure you can. The right class will be “.module.newsfeed”

      posted in Entertainment
      wishmaster270
      wishmaster270
    • RE: MMM-MplayerRadio

      @robfer Hi, normally there is some other module covering the buttons in such cases.
      You can solve this by setting z-index in your custom.css.
      The higher the index the more in the foreground the module will be.

      The following config is part of my custom.css file:

      .MMM-ImagesPhotos, .MMM-ImageSlideshow, .MMM-COVID19, .MMM-Spotify, .MMM-Temperature, .MMM-LEDStripControl {
          z-index: -1;
      }
      
      .MMM-MplayerRadio {
          z-index: 999;
      }
      
      posted in Entertainment
      wishmaster270
      wishmaster270
    • RE: MMM-RadioDE will not play

      @Blackmirror
      Hi, maybe the url of the radio station changed. The player then tries to start the station and stops directly.

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • RE: Simple module to receive m3u8 stream and change volume via GPIPs?

      @buchair said in Simple module to receive m3u8 stream and change volume via GPIPs?:

      m3u8-Stream

      Hi,

      my MMM-MplayerRadio module uses mplayer to play radio playlist files. I think it will work with m3u8 as well. It uses a touch interface to control the MMM-Volume module. It do not know what you mean with GPIPs but maybe this combination may fit your needs.

      posted in Feature Requests
      wishmaster270
      wishmaster270
    • RE: MMM-RadioDE will not play

      Hi,

      great if it works. You may want to add an “showStations: false,” to your config. The yellow radio symbol then will be displayed instead of showing the station logos. If you want the module to be invisible you can remove the position option. The module will be functional even if it is not displayed.

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • RE: MMM-RadioDE will not play

      @Blackmirror Hi, if you like you can give a try to my radio module MMM-MplayerRadio. There are config options to hide most things and there is a autoplay feature.

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • RE: "No Signal" message when PIR sensor is triggered

      @steverichab Hi, there are other PIR modules that support hiding out of the box like MMM-NewPIR or mine MMM-Screen-Powersave-Notification.
      My module needs my GPIO module to get triggered. You ca find a complete example here

      posted in Troubleshooting
      wishmaster270
      wishmaster270
    • RE: Is there a way to temporarily disable a module?

      @BigDanT
      Hi,

      you need another module to get it work: MMM-ProfileSwitcher

      The idea is to define a “normal” class to which all modules do belong that will be displayed if motion is detected. The Slideshow will be in class “slideshow”.
      The Screensave module is configured to not shutoff the monitor but change to the “slideshow” profile.
      If SCREEN_ON is triggered the Screensave module will change back to the profile that was used before the screensave (in our case “nomal”).

      I updated the config example to do the job (but i could not test it at the moment):

      var config = {
          address: '0.0.0.0',
          electronOptions: {},
          ipWhitelist: [],
          modules: [
      
              //Screen on & off timer{
              {
                  module: 'MMM-ModuleScheduler',
                  config: {
                      notification_schedule: [
                          // TURN THE MONITOR/SCREEN ON AT 07:30 EVERY DAY
                          {
                              notification: 'SCREEN_ON',
                              schedule: '00 07 * * *',
                              payload: {
                                  'forced': true
                              }
                          },
                          // TURN THE MONITOR/SCREEN OFF AT 22:30 EVERY DAY
                          {
                              notification: 'SCREEN_OFF',
                              schedule: '30 22 * * *',
                              payload: {
                                  'forced': true
                              }
                          },
                      ]
                  }
              },
      
              {
                  module: 'alert',
                  config: {},
                  classes: 'normal'
              },
      
              {
                  module: 'updatenotification',
                  position: 'top_bar',
                  config: {
                      ignoreModules: []
                  },
                  classes: 'normal'
              },
      
              {
                  module: 'clock',
                  position: 'top_left',
                  config: {},
                  classes: 'normal'
              },
      
              // top Right Calenar
              {
                  module: 'calendar',
                  header: 'Family Calendar',
                  position: 'top_left',
                  config: {
                      calendars: [{
                              symbol: 'calendar-check',
                              url: 'https://calendar.google.com/calendar/ical/xxx.ics',
                          }
                      ],
                  },
                  classes: 'normal'
              },
      
              // Weather Section
              {
                  module: 'currentweather',
                  position: 'top_right',
                  config: {
                      location: 'UK',
                      locationID: 'xxx',
                      appid: 'xxx',
                  },
                  classes: 'normal'
              }, {
                  module: 'weatherforecast',
                  position: 'top_right',
                  header: 'Weather Forecast',
                  config: {
                      location: 'false',
                      locationID: 'xxx',
                      appid: 'xxx',
                  },
                  classes: 'normal'
              },
      
              //Screencast
      
              {
                  module: 'MMM-Screencast',
                  position: 'bottom_right',
                  config: {
                      position: 'center',
                      height: 600,
                      width: 800,
                      castName: 'MagicMirror',
                  },
                  classes: 'normal'
              },
      
              
              //PLex Slideshow
              {
                  module: 'MMM-PlexSlideshow',
                  classes: 'Digital-Pictureframe',
                  position: 'fullscreen_above',
                  config: {
                      plex: {
                          hostname: '192.168.1.123',
                          port: 32400,
                          username: 'xxx@xxx.com',
                          password: 'password',
                      },
                      transitionImages: true,
                  },
                  classes: 'slideshow'
              },
      
              //MM Remote Control
              {
                  module: 'MMM-Remote-Control',
                  header: '',
                  config: {
                      customCommand: {},
                      customMenu: 'custom_menu.json',
                      showModuleApiMenu: true,
                      apiKey: ''
                  }
              },
      
              //News Headlines
      		{
                  module: 'newsfeed',
                  position: 'top_bar',
                  header: '',
                  config: {
                      feeds: [
                          {
                              title: 'BBC News',
                              url: 'http://feeds.bbci.co.uk/news/rss.xml'
                          }
                      ],
                      startTags: [],
                      endTags: [],
                      prohibitedWords: []
                  },
                  classes: 'normal'
              },
      
              {
                  module: 'MMM-GPIO-Notifications',
                  config: {
                      '4': {
                          gpio_state: 1,
                          gpio_debounce: 0,
                          delay: 30000,
                          notifications: [{
                                  notification: 'SCREEN_ON',
                                  payload: {
                                      'forced': false
                                  }
                              }, {}
                          ]
                      }
                  }
              },
              {
                  module: 'MMM-Screen-Powersave-Notification',
                  config: {
                      delay: 60,
                      hideInsteadShutoff: true, //do not shutoff the screen
                      changeToProfile: "slideshow" //change to this profile instead of hiding the modules
                  }
              },
              {
                  module: 'MMM-ViewNotifications',
                  position: 'bottom_left',
                  header: 'Notifications',
                  config: {
                      timeout: 0,
                      format: '{time}: "{module}" sent "{notification}" with {payloadData}', // See below for configurable options
                      includeModules: ["MMM-GPIO-Notifications", "MMM-Screen-Powersave-Notification"]
                  },
                  classes: 'normal'
              },
              {
                  //https://github.com/tosti007/MMM-ProfileSwitcher
      			module: "MMM-ProfileSwitcher",
      			config: {
      				defaultClass: "normal",
      				ignoreModules: [
                          "MMM-ModuleScheduler",
                          "MMM-Remote-Control",
                          "MMM-GPIO-Notifications",
      				],
      			}
      		},
      
          ]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {
          module.exports = config;
      }
      
      posted in General Discussion
      wishmaster270
      wishmaster270
    • RE: Is there a way to temporarily disable a module?

      @BigDanT Hi, sorry but I don’t use the modules in exact this configuration so I do not have a config that contains all parts. But I included an example folder to my GPIO module which contains instructions of how to setup an PIR. Maybe it is a good start: examples

      posted in General Discussion
      wishmaster270
      wishmaster270