Add support for reading OWM API key from an environmental variable?
khughitt opened this issue · 3 comments
khughitt commented
Got one more request for ya... ;)
Would it be possible/difficult to extend the polybar configuration to support reading API keys from environmental variables?
This way the polybar-forecast config could be safely stored in a dots repo, while the API key could be stored in a separate more secure location.
kamek-pf commented
Ah yes, that makes sense. I'll add the option when I have a minute, shouldn't take too long!
kamek-pf commented
Fixed!
You can now omit the api_key
field from the config file and instead set the OWM_API_KEY
env variable.
khughitt commented
Awesome! Thanks for the quick fix!