/sense-ifttt-demo

IFTTT with Raspberry Pi SenseHAT Demo

Primary LanguagePythonApache License 2.0Apache-2.0

Requirements

Hardware

  • Raspberry Pi (Zero / 3A+ / 3B / 3B+ / 4)
  • SenseHAT
  • Nature Remo

Softoware

  • Raspberry Pi OS Buster
  • Python3

Setup Raspberry Pi

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

Run Demo

1.SenseHAT

python3 sense.py

2.IFTTT with SenseHAT

Create IFTTT Apps

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

Edit IFTTT Key

Get your IFTTT webhook key from here and edit sense-ifttt.py

IFTTT_KEY = ''  # @param {type:"string"}

Run app

python3 sense-ifttt.py