sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
537 stars 246 forks source link

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

Open LukeThomasDawson opened 8 months ago

LukeThomasDawson commented 8 months ago

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 👍

Shinoa-Fores commented 8 months ago

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 commented 8 months ago

Legend 👍👍 Thanks so much!