An open API service indexing awesome lists of open source software.

https://github.com/starwhooper/rpi-433outlets

Help to control 433 outlets
https://github.com/starwhooper/rpi-433outlets

433mhz outlet

Last synced: over 1 year ago
JSON representation

Help to control 433 outlets

Awesome Lists containing this project

README

          

Check out new solution: https://github.com/Starwhooper/RPi-scheduler

RPi-433outlets
==========

* Creator: Thiemo Schuff, thiemo@schuff.eu
* Source: https://github.com/Starwhooper/RPi-433outlets
* License: CC-BY-SA-4.0

Prepare your System
-------------------
```bash
sudo apt-get install python3-pip
pip3 install rpi-rf
cd /opt
sudo git clone https://github.com/Starwhooper/RPi-433outlets
```

First configurtion
------------------
```bash
copy /opt/RPi-outlet433/config.json.example /opt/RPi-outlet433/config.json
sudo nano /opt/RPi-outlet433/config.json
```
Change in config.json:
* set "[gpio_send]" to the GPIO that you use to send
* set "[outlets][*][name]" to Name that you want to identity the outlet
* set "[outlets][*][code_on]" to code to switch on the outlet
* set "[outlets][*][code_off]" to code to switch off the outlet
* set "[outlets][*][operations][*][type] to time or calculate
* case type = "time"
* set "[outlets][][operations][][on] to time in 24h format. as example 0600 für 6am, 2205 for 5 minutes after 10pm.
* case type = "calculate"
* set "[outlets][][operations][][on] to command and offset in mins. As example "sunset;+45" means 45minutes after local sunset. "sunrise;-120" means 2hours before sunrise.

Start direct
-----
```bash
/opt/RPi-outlets433/outlet.py A on
```

Start service
-----
```bash
/opt/RPi-outlets433/service.py
```