diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-18 14:28:34 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-18 14:28:34 +0200 |
| commit | 48e1a59fd091abdc409d7c30f5e33bdf53ea7cbd (patch) | |
| tree | 191f0207a611e46ca918ed838d9ec6335c89d4ea /test/fixtures | |
| parent | 0d8ad4d94c7aa96bdb1becac0c0f9e43ffa77dd0 (diff) | |
| download | conky-theme-udt-48e1a59fd091abdc409d7c30f5e33bdf53ea7cbd.tar.gz conky-theme-udt-48e1a59fd091abdc409d7c30f5e33bdf53ea7cbd.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'test/fixtures')
| -rw-r--r-- | test/fixtures/weather.json | 1 | ||||
| -rw-r--r-- | test/fixtures/weather.txt | 9 | ||||
| -rw-r--r-- | test/fixtures/weather_truncated.json | 1 |
3 files changed, 9 insertions, 2 deletions
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 |
