# Weather app on Badger2040W

**URL:** <https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052>\
**Category:** Support\
**Created:** [April 26, 2023, 10:51am UTC](https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052 "2023-04-26T10:51:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Ken](https://forums.pimoroni.com/u/Ken)\
**Post date:** [April 26, 2023, 10:51am UTC](https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052/1 "2023-04-26T10:51:32Z")

</div>

It looks like the open.meteo site have changed the headers on the responses to the requests for data. I’m getting an error message of “UNSUPPORTED TRANSFER-ENCODING: CHUNKED”, was okay yesterday and I reflashed the OS to be sure it wasn’t a problem with my installation.

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [April 26, 2023, 11:30am UTC](https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052/2 "2023-04-26T11:30:01Z")

</div>

Hmm - this example seems to be working OK for me still (and the data still looks to be structured as I remember it: [http://api.open-meteo.com/v1/forecast?latitude=53.3861&longitude=-1.423999&current\_weather=true&timezone=auto](http://api.open-meteo.com/v1/forecast?latitude=53.3861&longitude=-1.423999&current_weather=true&timezone=auto) )

Might be worth trying from another wifi network if you haven’t already?

---

<div class="post-metadata">

**Author:** ![Ken](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Ken](https://forums.pimoroni.com/u/Ken)\
**Post date:** [April 26, 2023, 11:54am UTC](https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052/3 "2023-04-26T11:54:56Z")

</div>

Thanks. I’m using my phone’s WiFi hot-spot, so it could be that. Will try my home network lunchtime.

---

<div class="post-metadata">

**Author:** ![Ken](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Ken](https://forums.pimoroni.com/u/Ken)\
**Post date:** [April 26, 2023, 12:31pm UTC](https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052/4 "2023-04-26T12:31:55Z")

</div>

Drat, my phone’s hot-spot is causing the problem, works fine at home. Odd, it was working fine on the hotspot yesterday.

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [April 27, 2023, 8:49am UTC](https://forums.pimoroni.com/t/weather-app-on-badger2040w/22052/5 "2023-04-27T08:49:43Z")

</div>

Transfer-encoding is part of the http-protocol, which is on top of the lower-level level wlan-protocol. So the hotspot can not have an influence on that layer.

Chunked-encodings are typically used for streaming: the server sends chunks of data keeping the connection open and the client can show/play the data without downloading everything in advance.

I would suspect that open-meteo had updated their website and temporarily had a misconfiguration in place.
