Read the statement by Michael Teeuw here.
[MMM-Serial-Notifications] Sends notications based on messages on serial interfaces
-
Description:
This module is based on the ideas of the module https://github.com/thobach/MMM-Gestures but uses a newer version of the “serialport” library. Because of this it does not need an additional webserver but connects directly to multiple, configurable serial ports. If an configured message is received on the configured serial port the configured notifications will be send to all modules.
The repository also contains two Arudino examples (testet on UNO R3 and Mega 2560) which use APDS-9960 and HC-SR04 sensors to send messages.Download:
MMM-Serial-Notifications
[card:Tom-Hirschberger/MMM-Serial-Notifications]
Example:
Today (2020-03-29) i added a more complex example with all stuff needed (.ino, wireringplan, description, example configuration) which uses an APDS-9960 and three VL53L1X sensors to detect hand gestures and hand presence with an Arduino Nano v3. The results will be transmitted to the Raspberry via USB Serial Interface and trigger some notifications.
Version 0.0.8
- updated the postinstall script
- fixed all issues reported by the new automatic module scanning script developed by @KristjanESPERANTO
Version 0.0.7
- changed the way electron-rebuild is called in the post-installation step to avoid problems if the electron version of the mirror changes
Version 0.0.3
- it is now possible to send different notifications based on profiles; the same sensor can trigger different things if different profiles are active
Version 0.0.2
- it is now possible to replace strings in the payload with strings based on the received serial message
Version 0.0.1
- it is possible to configure notifications for multiple serial consoles
-
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)