From a6f26b3d379029660a651d5fff4822b0044cc49f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 9 Apr 2025 00:14:48 +1000 Subject: weather: store api key directly in config Also only notify once when no api key for both weather and news --- src/config/defaults.ts | 2 +- src/config/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config') 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, -- cgit v1.2.3-freya