MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. wishmaster270
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 6
    • Topics 16
    • Posts 329
    • Groups 2

    Posts

    Recent Best Controversial
    • [MMM-MQTTbridge] A module to publish and receive MQTT messages

      MMM-MQTTbridge

      https://github.com/Tom-Hirschberger/MMM-MQTTbridge

      MMM-MQTTbridge allows you to integrate your MagicMirror into your smart home system via MQTT protocol and manage MagicMirror via MQTT messages by converting them into MM Notifications and vise verse - listen to your MM’s Notifications and convert them into MQTT mesages.

      So, this module for MagicMirror does the following:

      Listens to MQTT messages from your MQTT broker and, if mqtt-message arrives, module sends MM Notifications based on the pre-configured mqtt-to-notification Dictionary rules.
      Listens to the MM Notifications within your MagicMirror environment. If Notification arrives, module sends MQTT message based on the preconfigured notification-to-mqtt Dictionary rules.

      mqttbridge_logo.png

      Download:

      MMM-MQTTbridge


      Version 2.2.4:

      • updated jsonpath-plus and mqtt dependency

      Version 2.2.3:

      • bumped version of jsonpath-plus library to 10.1.0

      Version 2.2.2:

      • added a postinstall script which creates a copy of the imported JSONPath library cause MagicMirror only imports files with ending js and not cjs to fix JSONPath

      Version 2.2.1:

      • bumped jsonpath-plus library to version 10.0.1
      • bumped mqtt library to version 5.10.1
      • only print each event (received notification or received mqtt message) on console if debug is enabled, now

      Version 2.2.0:

      • fixed incl condition
      • introducing two new conditions time to suppress messages / notifications if they happen to quickly after each other and tdiff to send messages / notifications only if they changed or there is enough time gap between the last one
      • it is possible to configure notifications / messages which should be send after the module connected and subscribed successfully now

      Version 2.1.0:

      • it is possible the parse the input of MQTT messages as JSON now
      • the JSON content of MQTT messages now can be filtered with JSONPath-Plus
      • the payload of MQTT messages or notifications now can be formatted with a format string before further processing happens
      • it is possible to configure complex conditions (equal, lower than, lower equal, greater, greater equal, includes, matches) for message and notification processing now

      Version 2.0.0:

      :information_source: This is the first release after the ownership of the module changed to Tom-Hirschberger
      :warning: There are breaking changes in the notiDictionary.js and mqttDictionary.js with this release. Make sure to save the two dict files before updating. The files will be ignored with future releases and there is no need to be careful with them after version 2.0.0! Please read the two sections in the Readme about the dictionaries.

      The following things changed:

      • The way of how to configure how to ignore the payload of notifications and MQTT messages changed
      • The way of how to configure how to send the payload of notifications as MQTT messages and the payload of MQTT messages as payload of notifications changed
      • It is now possible to configure a “last will” message and define if you like a clean MQTT session (see http://www.steves-internet-guide.com/mqtt-clean-sessions-example/ for details) or any other of MQTT.js supported connection option
      • It is now possible to configure a QoS value, the retain flag and any other of MQTT.js supported option for published MQTT messages (either in general or individual for single messages)
      • It is now possible to configure a QoS value and any other of MQTT.js supported option for subscribed MQTT messages (either in general or individual for single topics)
      • The paths of the dictionary files can be configured now and the dictionary files in the “dict” directory will be ignored during updates.
      • If one of the dictionary files is missing or has syntax errors a warning is printed but the module starts with empty configuration (and does not crash the whole mirror anymore)
      • The speed of the notification and message filter has been increased
      posted in Utilities
      wishmaster270W
      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
      wishmaster270W
      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
      wishmaster270W
      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
      wishmaster270W
      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
      [card:Tom-Hirschberger/MMM-Screen-Powersave-Notification]


      0.0.9

      • the DOM objects now only will be updated if a position is set in the configuration
      • fixed all issues reported by the new automatic module scanning script developed by @KristjanESPERANTO

      0.0.8

      • using spawnSync and spawn instead of execSync and exec now. the old commands caused “Error: write EFAULT” exceptions in installations with current nodejs and electron versions

      0.0.7

      • added scripts and description of how to use xrandr 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.
      • fixed reset of screen timeout in “hideInsteadShutoff” mode.
      • the screen will be turned on if USER_PRESENCE notification is received, now. No need to send “USER_PRESENCE” and “SCREEN_ON” notifications, now.
      • the forced option in the payload of the notifications can be set either as string or as boolean value (String was need for notifications send by MMM-RemoteControl)
      • the html DOM objects now only will be updated if the module has a position set, now.

      0.0.6

      • fixed “hideInsteadShutoff” feature
      • added a new option to change to a specific profile before the “normal” action is triggered

      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 “hideInsteadShutoff” 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
      wishmaster270W
      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
      wishmaster270W
      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
      wishmaster270W
      wishmaster270
    • RE: electron-rebuild and MagicMirror v2.18 (and more)

      @sdetweil Hi, i did a fresh install and added the module manually. I do not use MMM-PIR-Sensor but some other users had the same problem with MMM-Gestures (which i do not use either). Did a clean install of MagicMirror on a development Pi with your script and added modules manually.

      posted in Development
      wishmaster270W
      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
      [card:Tom-Hirschberger/MMM-ProfileControl]


      Version 0.0.3

      • it is now possible to restore the last selected vertical profile if the horizontal profile (page) changed

      Version 0.0.2

      • added an option to send an USER_PRESENCE notification if the module triggers an profile change
      • added option to hide the profile indicators during screensave mode
      • removed reset of top margin of the module in css because it is not possible to override it if needed
      • fixed all issues reported by the new automatic module scanning script developed by @KristjanESPERANTO

      Version 0.1.0

      • 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
      wishmaster270W
      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
      wishmaster270W
      wishmaster270
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 2 / 7