diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-07 09:35:56 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-07 09:35:56 +0900 |
| commit | 83487d66031d2576f7336de20f0900b7264a391b (patch) | |
| tree | efdd6a440eef1a4dd7411518a1288adb1b097761 | |
| parent | 0188c01e6a52d7f19edc9c4e1a25a4bdb4233a52 (diff) | |
modified statusbar/sb-forecast
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-forecast | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ar/.local/bin/statusbar/sb-forecast b/ar/.local/bin/statusbar/sb-forecast index cbab938..64d68c0 100755 --- a/ar/.local/bin/statusbar/sb-forecast +++ b/ar/.local/bin/statusbar/sb-forecast @@ -24,6 +24,7 @@ getweatherreport() { getweatherreportjson() { timeout --signal=1 10s curl -sf "$url/$LOCATION?format=j1" >"$weatherreportjson" || error "reportjson" + grep -q 'Unknown' "$weatherreportjson" && error "reportjson" } # Forecast should be updated every 3 hours, but set 3600 to check for reliability. |
