Make configs available via env vars
💡 Summary
all configs should be exposed as env vars
Motivation and context
If you want to run weewx in a completely stateless mode, then you should be able to do it
Useful for running the app in, for example, home assistant os and you don't want to persist anything
I like this idea. Do you have an example of another project that is implement like this for reference?
Also, since you mentioned Home Assistant, I'd like to point out that I just released the first version of my Home Assistant extension for WeeWX:
- https://github.com/felddy/weewx-home-assistant
@felddy Grafana does this and i think it's generally from the 12-factor apps methods
I'm sure there's python libraries similar to the way that viper does for Go.
All that said this is probably more a suggestion for the upstream project than this respin.
Thanks for the effort on this btw. This project's ergonomics are nice for those of us looking to containerize all these things rather than run them like traditional daemons.
Found a python project that does this (yaml, json and environment variable configs) in the same ecosystem ;) ecowitt2mqtt