Added the ability to specify location in the weather settings.

This commit is contained in:
Jas Singh
2024-07-26 19:25:37 -07:00
parent b293d0b060
commit 936405d9d2
3 changed files with 80 additions and 73 deletions

View File

@@ -691,6 +691,7 @@ const options = mkOptions(OPTIONS, {
weather: {
interval: opt(60000),
unit: opt<"metric" | "imperial">("imperial"),
location: opt("Los Angeles"),
key: opt<string>(
JSON.parse(Utils.readFile(`${App.configDir}/.weather.json`) || "{}")?.weather_api_key || "",
),