Update pika-hyprland-settings/etc/skel/.config/ags/widgets/weather.js
This commit is contained in:
parent
2707c290fa
commit
61a88fc8e0
@ -23,11 +23,11 @@ export const Weather = () => Widget.Box({
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
connections: [[barConfig?.weatherUpdateInterval * 1000, async box => {
|
connections: [[barConfig?.weatherUpdateInterval * 1000, async box => {
|
||||||
setTimeout(() => { getWeather(box) }, 1000);
|
getWeather(box);
|
||||||
}]],
|
}]],
|
||||||
});
|
});
|
||||||
|
|
||||||
function getWeather(box) {
|
async function getWeather(box) {
|
||||||
let latLng = [0, 0];
|
let latLng = [0, 0];
|
||||||
execAsync(`curl https://geocoding-api.open-meteo.com/v1/search?name=${barConfig?.city}&count=1&language=en&format=json`)
|
execAsync(`curl https://geocoding-api.open-meteo.com/v1/search?name=${barConfig?.city}&count=1&language=en&format=json`)
|
||||||
.then(output => {
|
.then(output => {
|
||||||
|
Loading…
Reference in New Issue
Block a user