Hardware
- Raspberry Pi (Zero / 3A+ / 3B / 3B+ / 4)
- SenseHAT
- Nature Remo
Softoware
- Raspberry Pi OS Buster
- Python3
Enable SenseHAT
sudo apt update
sudo apt install sense-hat
sudo reboot
Download sample
git clone https://github.com/tomotomo/sense-ifttt-demo.git
cd sense-ifttt-demo
If you don't have a SenseHAT, use SenseHAT Emulator. (Maybe you need Raspberry Pi Desktop...)
Read Sense-Emu Documentation.
sudo apt-get update
sudo apt-get install python-sense-emu python3-sense-emu sense-emu-tools
python3 sense.py
Create Apps here
IF | Event Name | THEN | select |
---|---|---|---|
Webooks | turn_on | Nature Remo | Turn on air conditioner |
Webooks | turn_off | Nature Remo | Turn off air conditioner |
Get your IFTTT webhook key from here and edit sense-ifttt.py
IFTTT_KEY = '' # @param {type:"string"}
python3 sense-ifttt.py