The goal of this project is to create a device that can automate my IR-controllable AC units, either using a DHT sensor or over the internet while I'm away.
This is the "central server" part of the remote-ac-controller project.
remote-ac-controller.mp4
requirements:
- lirc
- nodejs >= v16
- redis
# setup virtualenv and install packages
python -m virtualenv venv
source ./venv/bin/activate
pip install -r requirements.txt
# install node packages
npm install
# configure app
cp ac_ctl_web/env.example.py ac_ctl_web/env.py
$EDITOR ac_ctl_web/env.py
# database migrations
python manage.py migrate
# start development server
honcho start
Basically the same but instead of using the development server you'll want to compile the webpack:
# after npm install
npm run build
For "deployment" it would be better to use a reverse proxy like nginx.
See dist/
.
This gets the web interface set up along with the DHT sensor. Learn how to set up lirc on the wiki.