diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-09 00:14:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-09 00:14:48 +1000 |
| commit | a6f26b3d379029660a651d5fff4822b0044cc49f (patch) | |
| tree | 39f7ff864aa937cafcc2cac6dd3ec46b83342153 /src/config | |
| parent | updates: fix cache file extension (diff) | |
| download | caelestia-shell-a6f26b3d379029660a651d5fff4822b0044cc49f.tar.gz caelestia-shell-a6f26b3d379029660a651d5fff4822b0044cc49f.tar.bz2 caelestia-shell-a6f26b3d379029660a651d5fff4822b0044cc49f.zip | |
weather: store api key directly in config
Also only notify once when no api key for both weather and news
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/defaults.ts | 2 | ||||
| -rw-r--r-- | src/config/types.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts index cccc421..d5db290 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -125,7 +125,7 @@ export default { }, weather: { interval: 600000, - key: "assets/weather-api-key.txt", // Path to file containing api key relative to the base directory. To get a key, visit https://weatherapi.com/ + apiKey: "", // An API key from https://weatherapi.com for accessing weather data location: "", // Location as a string or empty to autodetect imperial: false, }, diff --git a/src/config/types.ts b/src/config/types.ts index 736548a..2862612 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -78,7 +78,7 @@ export default { "math.maxHistory": NUM, "updates.interval": NUM, "weather.interval": NUM, - "weather.key": STR, + "weather.apiKey": STR, "weather.location": STR, "weather.imperial": BOOL, "cpu.interval": NUM, |