From 61a88fc8e0f97a292e3a469e6387dcee8e19aa74 Mon Sep 17 00:00:00 2001 From: ferreo Date: Thu, 29 Aug 2024 21:11:33 +0200 Subject: [PATCH] Update pika-hyprland-settings/etc/skel/.config/ags/widgets/weather.js --- .../etc/skel/.config/ags/widgets/weather.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pika-hyprland-settings/etc/skel/.config/ags/widgets/weather.js b/pika-hyprland-settings/etc/skel/.config/ags/widgets/weather.js index 4c3d1fb..52941da 100644 --- a/pika-hyprland-settings/etc/skel/.config/ags/widgets/weather.js +++ b/pika-hyprland-settings/etc/skel/.config/ags/widgets/weather.js @@ -23,11 +23,11 @@ export const Weather = () => Widget.Box({ }), ], connections: [[barConfig?.weatherUpdateInterval * 1000, async box => { - setTimeout(() => { getWeather(box) }, 1000); + getWeather(box); }]], }); -function getWeather(box) { +async function getWeather(box) { let latLng = [0, 0]; execAsync(`curl https://geocoding-api.open-meteo.com/v1/search?name=${barConfig?.city}&count=1&language=en&format=json`) .then(output => {