A Raspberry Pi controller for the Ashtanga Yoga Cork studio. It opens the studio door and runs the heating around the class schedule.
shala-manager.pyreads the class schedule fromscratch/schedule.jsonand switches the heaters on and off around today's classes, using readings from a DHT temperature and humidity sensor.heatingcontrols TP-Link Kasa and Tapo P100 smart plugs, andheating/heater.pyexposes the heaters through a FastAPI app served with uvicorn.door/index.phpopens the door through a GPIO relay when called with a booking ID and reports the result back to the ashtangayoga.ie site.index.phpis a full-screen web dashboard for the Pi showing the schedule, door state and a heating boost button.binholds the start-up script, keep-alive and helper scripts.
- Python 3 with FastAPI, python-kasa, PyP100, RPi.GPIO and Adafruit DHT
- PHP, jQuery and CSS for the dashboard
- Raspberry Pi
The files are meant to live in /var/www/html on the Pi.
bin/doorpi.sh starts Chromium in kiosk mode on the dashboard, then
starts shala-manager.py, the keep-alive script and the heating API.
Licensed under the Apache License 2.0. See LICENSE.
