Controller app for LED Informer. Handles requests via MQTT.
Send anything to /weather/request
to get current indicator state. Response message will be pushed to /weather/update
.
Subscribe to /weather/update
to receive indicator state updates. Message format:
{
"now" : -10.0
}
App is configured via environment variables:
WEATHER_CITY
- city nameMQTT_HOSTNAME
- MQTT broker hostnameMQTT_USERNAME
- MQTT broker loginMQTT_PASSWORD
- MQTT broker password
- Create
.env
file with all required environment variables (see above) - Run command:
docker-compose up -d