Remove obsolete weather status poller (#6555)

This commit is contained in:
Kyunghyun Park
2026-08-05 17:43:14 +02:00
committed by GitHub
parent 2daeaa7078
commit 65541c7b4f
6 changed files with 3 additions and 36 deletions
-13
View File
@@ -1,15 +1,3 @@
function parseWeatherStatus(raw) {
try {
var data = JSON.parse(String(raw || "{}"))
return {
label: data.text || "",
klass: data.class || ""
}
} catch (e) {
return { label: "", klass: "" }
}
}
// weather.json holds {"name": ..., "latitude": ..., "longitude": ...} (see
// omarchy-weather-location, which owns the format). Missing, blank, or
// unparseable means the location is auto-detected from the IP address.
@@ -279,7 +267,6 @@ function iconForCode(code, night) {
if (typeof module !== "undefined") {
module.exports = {
parseWeatherStatus: parseWeatherStatus,
parseLocationFile: parseLocationFile,
wttrLocationQuery: wttrLocationQuery,
parseGeocodingResults: parseGeocodingResults,