-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: Add ability for mqtt_relay to use a config file (#3013)
This commit adds the ability to read config values from rtl_433_mqtt_relay.yaml (overriding defaults). This read is skipped if the yaml module can't be loaded or the config file can't be read, so those without PyYAML or a config file see no change. Those with a config file can set parameters for address/port to listen for json-in-sylog, MQTT credentials, whether to post individual values, a json dictionary, or both. While rudimentary, this is a huge functional improvement, allowing those using TLS and broker passwords (as arguably all should be) to use the script without modifying it.
- Loading branch information
Showing
1 changed file
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters