This project is a solution for remotely monitoring and controlling a mountain hut. The main goals are to monitor inside and outside temperatures, CO₂ levels, and the weather (with a webcam), as well as to control heating to preheat the hut before going there.
To deploy the backend you will need a recent and working version of docker
and
docker-compose
installed.
-
Copy the
.env.template
file to.env
and edit it variable with production values:cp .env.template .env vim .env
-
Create a file
traefik/acme.json
and set the mode to600
:touch traefik/acme.json chmod 600 traefik/acme.json
-
Start the service with:
docker-compose up -d
In order to work on this project on your local machine, you will need a working
installation of python>=3.7
and recent version of npm/node.js
.
-
Copy the
.env.template
file to.env
and edit it variable with development values:cp .env.template .env vim .env
-
Open a terminal and run the backend:
cd backend pip install -e . python -m hutbee
Note: The backend supports hot-reloads, no need to restart after saving.