Skip to content

zam-haus/door_commander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

  1. Add the hostname

    1. in settings.py to ALLOWED_HOSTS
    2. in nginx.conf to server_name
  2. ./set-secrets.sh

  3. ./create-superuser.sh

  4. ./launch-containers.sh

  5. Login to https://127.0.0.1:80

  6. Open the admin interface

  7. Create a door

  8. Start ./mqtt_dump_all_messages.sh in a separate terminal

  9. Open the application home page

  10. Click the button

  11. Watch the listener receiving the mqtt message

  12. 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')