kamek-pf/polybar-forecast

Add support for reading OWM API key from an environmental variable?

khughitt opened this issue · 3 comments

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.

Ah yes, that makes sense. I'll add the option when I have a minute, shouldn't take too long!

Fixed!
You can now omit the api_key field from the config file and instead set the OWM_API_KEY env variable.

Awesome! Thanks for the quick fix!