diff --git a/README.md b/README.md index 252467d568f47d8bbfcb002e26f5531d110ef3a2..1c94a2180a00e34ac33010936eef4b3a9c401c59 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,12 @@ -# Pico W Garage Door Sensor +This project was originally sourced from https://github.com/ide/pico-door-sensor/blob/main/src/code.py. +We've modified it for our purposes, so the changes are committed here. + +This currently talks to an MQTT broker set up via HomeAssistant on a VM called mqtt-test. +This should probably change in the future, but considering this specifically calls into HomeAssistant it will need more major changes to detangle it. +Alternatively we can continue to run an entire HomeAssistantOS VM just to run a very lightweight MQTT broker. +This current setup is just a temporary solution.... right? - [GPO] 2024-09-18 + +## Pico W Garage Door Sensor Get notified when your garage door's been left open. This sensor uses the Raspberry Pi Pico W and CircuitPython and requires Home Assistant with MQTT set up. diff --git a/src/template.settings.toml b/src/template.settings.toml new file mode 100644 index 0000000000000000000000000000000000000000..fbc2fc1daecae73fb524e2f78b69195a7a3e9ac5 --- /dev/null +++ b/src/template.settings.toml @@ -0,0 +1,8 @@ +CIRCUITPY_WIFI_SSID = "UCC-IoT" +CIRCUITPY_WIFI_PASSWORD = "da wifi password" + +MQTT_HOSTNAME = "da broker IP" +MQTT_USERNAME = "da broker username" +MQTT_PASSWORD = "da broker password" + +WIFI_HOSTNAME = "$(CLUB)-door"