Added the ability to provide a path to a json file for the weather API key. (#374)

* Added the ability to provide a path to a json file for the weather API key.

* Update weather api key subtitle.

* Add jsdoc to methods and consolidate.
This commit is contained in:
Jas Singh
2024-10-26 14:32:40 -07:00
committed by GitHub
parent 70f4517bb6
commit c1bbb11b86
2 changed files with 120 additions and 21 deletions

View File

@@ -27,7 +27,7 @@ export const ClockMenuSettings = (): Scrollable<Child, Attribute> => {
Option({
opt: options.menus.clock.weather.key,
title: 'Weather API Key',
subtitle: 'May require AGS restart. https://weatherapi.com/',
subtitle: "API Key or path to a JSON file that contains a 'weather_api_key' variable.",
type: 'string',
}),
Option({