diff --git a/.config/ags/modules/bar/normal/system.js b/.config/ags/modules/bar/normal/system.js index 4201580ec..9da2d5aed 100644 --- a/.config/ags/modules/bar/normal/system.js +++ b/.config/ags/modules/bar/normal/system.js @@ -154,7 +154,7 @@ const BatteryModule = () => Stack({ ], setup: (self) => self.poll(900000, async (self) => { const WEATHER_CACHE_PATH = WEATHER_CACHE_FOLDER + '/wttr.in.txt'; - const updateWeatherForCity = (city) => execAsync(`curl https://wttr.in/${city}?format=j1`) + const updateWeatherForCity = (city) => execAsync(`curl https://wttr.in/${city.replace(/ /g, '%20')}?format=j1`) .then(output => { const weather = JSON.parse(output); Utils.writeFile(JSON.stringify(weather), WEATHER_CACHE_PATH)