This is a module for MagicMirror² to send and receive 433MHz signals via C++ and GPIO.
433Utils is used for C++ part and wrapped in JavaScript.
First we need to install WiringPi:
git clone git://git.drogon.net/wiringPi && cd wiringPi &&./build
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/hebestreit/MMM-433MHz.git
Go 433Utils/RPi_utils and compile library if you're using a Raspberry Pi:
cd ~/MagicMirror/modules/MMM-433MHz/433Utils/RPi_utils
make all
For now it's necessary to run MagicMirror with root (sudo) access! Maybe you could check this page.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-433MHz',
config: {
receiver: false // not supported yet
}
}
]
The following properties can be configured:
Option | Description |
---|---|
receiver |
Use this property to enable receiving codes over 433MHz and sending notifications to other modules. Turn this off if you only want to send codes. Possible values: boolean Default value: false |
To send a code you can simply send a notification in your module.
this.sendNotification("433MHz_SEND", 123);
Sadly this feature is not supported yet.