Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to store the OpenWeather API key? 🌤️ #407

Open
LukeThomasDawson opened this issue Feb 5, 2024 · 2 comments
Open

Where to store the OpenWeather API key? 🌤️ #407

LukeThomasDawson opened this issue Feb 5, 2024 · 2 comments

Comments

@LukeThomasDawson
Copy link

G'day,

A very simple question this one:
Where is the best place to store my API key during compilation, rather than enter in manually in the weather app config on the watch?
Should I be adding a weatherapikey.txt in a top level directory or similiar?

Thanks a million 👍

@LukeThomasDawson LukeThomasDawson changed the title Where to store the OpenWeather API key? Where to store the OpenWeather API key? 🌤️ Feb 5, 2024
@Shinoa-Fores
Copy link

Put a file called weather.json in the files directory with the following content:
{
"apikey": "",
"lat": "",
"lon": "",
"autosync": true,
"showWind": true,
"imperial": false,
"widget": false
}

Upload to your watch using:
pio run -t uploadfs

@LukeThomasDawson
Copy link
Author

Legend 👍👍
Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants