Closed peaster closed 3 years ago
That's neat for your usecase. By the way one small change I'd make is to use the ./refresh.sh script to kick things off (as it ensures only one version of metar.py is running at any given time).
As for the Pull Request itself, I'd like to keep the repo simple with just the core functionality that caters to the large majority of people that just want to build a simple METARMap and run it with crontab.
The time-based approach of controlling the map is great, but I wanted to add a little more flexibility in how I turn on and off my map. I'm a Home Assistant user and wanted to integrate the map into my existing home automation, as well as expose it to my voice assistants. MQTT enables the map to report its state and be controlled by a MQTT broker.
The sole dependency is
paho-mqtt
which I installed with pip.Configuration is managed through a private
mqtt_config.py
file that looks likeTo run the client permanently, I set up a service
sudo vim /etc/systemd/system/mqtt-client.service
And then enabled it