From 48e1a59fd091abdc409d7c30f5e33bdf53ea7cbd Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 14:28:34 +0200 Subject: feat(weather): parse an Open-Meteo cache instead of OWM JSON WMO codes to glyphs and words, moon phase, UV and AQI roles, and a parser for the tab-separated cache the fetcher will write. Groundwork for the Mirage-derived forecast cards. Co-Authored-By: Claude Sonnet 5.5 --- test/fixtures/weather.json | 1 - test/fixtures/weather.txt | 9 +++++++++ test/fixtures/weather_truncated.json | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 test/fixtures/weather.json create mode 100644 test/fixtures/weather.txt delete mode 100644 test/fixtures/weather_truncated.json (limited to 'test/fixtures') diff --git a/test/fixtures/weather.json b/test/fixtures/weather.json deleted file mode 100644 index 12493b0..0000000 --- a/test/fixtures/weather.json +++ /dev/null @@ -1 +0,0 @@ -{"coord":{"lon":11.0,"lat":45.0},"weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],"base":"stations","main":{"temp":18.34,"feels_like":18.11,"temp_min":16.67,"temp_max":19.44,"pressure":1014,"humidity":72},"visibility":10000,"wind":{"speed":4.12,"deg":230},"clouds":{"all":75},"dt":1789625000,"sys":{"type":2,"id":2004688,"country":"XX","sunrise":1789600000,"sunset":1789646000},"timezone":7200,"id":1,"name":"Example City","cod":200} diff --git a/test/fixtures/weather.txt b/test/fixtures/weather.txt new file mode 100644 index 0000000..b1a1af8 --- /dev/null +++ b/test/fixtures/weather.txt @@ -0,0 +1,9 @@ +units metric +current 1792325700 13.2 11.5 3 1 77 10.2 72 +sun 1792301818 1792339510 +air 37 +hour 1792324800 13.1 3 0 1 1.15 +hour 1792328400 13.4 61 40 1 null +hour 1792332000 null 3 0 0 0.95 +day 1792274400 3 8.1 14.6 10 +day 1792360800 61 7.4 12.0 80 diff --git a/test/fixtures/weather_truncated.json b/test/fixtures/weather_truncated.json deleted file mode 100644 index eb0099a..0000000 --- a/test/fixtures/weather_truncated.json +++ /dev/null @@ -1 +0,0 @@ -{"coord":{"lon":11.0,"lat":45.0},"weather":[{"id":501,"main":"Rain","descrip -- cgit v1.2.3