Wichtiges zur Nutzung
./set-secrets.sh löscht secrets an lustigen Stellen - NICHT in einem schon konfigurierten Umfeld nutzen, sonst ist alles kaputt:
- Türenzugangsdaten werden in der mosquitto.passwd gelöscht
Alte "Readme"
- Add the hostname
- in settings.py to ALLOWED_HOSTS
- in nginx.conf to server_name
- ./set-secrets.sh
- ./create-superuser.sh
- ./launch-containers.sh
- Login to http://127.0.0.1:80
- Open the admin interface
- Create a door
- Start ./mqtt_dump_all_messages.sh in a separate terminal
- Open the application home page
- Click the button
- Watch the listener receiving the mqtt message
-
You can update a door's status with the following command (fill in your door's mqtt id)
(. secrets.env ; mosquitto_pub -h localhost -u controller -P "${MQTT_PASSWD_CONTROLLER}" -p 1883 -d -t 'door/f16f33d2-7d87-45d3-937d-f5d64d957e8f/presence' -m 'true')