weewx-docker icon indicating copy to clipboard operation
weewx-docker copied to clipboard

Make configs available via env vars

Open dragonsahead opened this issue 2 years ago • 1 comments

💡 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

dragonsahead avatar Dec 28 '23 01:12 dragonsahead

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 avatar Dec 29 '24 03:12 felddy

@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

natebc avatar Nov 30 '25 12:11 natebc