occupi
is a simple occupancy detector designed to run on the Raspberry Pi,
using the passive infrared (PIR)
sensor module from Adafruit.
You will need the following Python modules:
- python-daemon
- requests
- RPi.GPIO (if you set HAS_GPIO = True)
All are installable with pip.
Copy the config.template.py
file and update API_KEY and API_URL.
python occupi.py
python occupid.py start
See the init-script
directory for a sample file you can place in
/etc/init.d