From 2d979684453659318daf794febafb0887a12fb50 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 20:35:20 +1100 Subject: config: dynamic service confs --- config.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'config.ts') diff --git a/config.ts b/config.ts index 8d9c2a8..8127052 100644 --- a/config.ts +++ b/config.ts @@ -138,28 +138,28 @@ const config = { }, // Services math: { - maxHistory: 100, + maxHistory: s(100), }, updates: { - interval: 900000, + interval: s(900000), }, 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/ - location: "", // Location as a string or empty to autodetect - imperial: false, + interval: s(600000), + key: s("assets/weather-api-key.txt"), // Path to file containing api key relative to the base directory. To get a key, visit https://weatherapi.com/ + location: s(""), // Location as a string or empty to autodetect + imperial: s(false), }, cpu: { - interval: 2000, + interval: s(2000), }, gpu: { - interval: 2000, + interval: s(2000), }, memory: { - interval: 5000, + interval: s(5000), }, storage: { - interval: 5000, + interval: s(5000), }, }; -- cgit v1.2.3-freya