openweathermap
openweathermap copied to clipboard
Go (golang) package for use with openweathermap.org's API.
I'm using open-weather API in my project suddenly u-v index value generate in between 2.9 to 3.0.
It appears that this API has been updated and the data object is no longer unmarshaled correctly due to struct changes. https://openweathermap.org/api/air-pollution
**https://github.com/briandowns/openweathermap/blob/73cba80d1d677713b4a1089cb7fea0780008cb1a/openweathermap.go#L33** On the page [https://openweathermap.org/weather-conditions](https://openweathermap.org/weather-conditions) recomended to use URL like [http://openweathermap.org/img/**_wn_**/[email protected]](http://openweathermap.org/img/wn/[email protected]) With this URL you can get image with different sizes by adding postfix "@Nx" to file name, where N...
The `ByZip` functions require an `int` as argument, this is an issue with German zip codes since they can start with a `0`, for example Chemnitz (Saxony) has the zip...
Hi, I am using the 16 days weather forecast but I get the error "json: cannot unmarshal number into Go value of type string". The issue occurs because the struct...
Using the [example provided in the repo](https://github.com/briandowns/openweathermap/blob/master/_examples/cli/weather.go) requesting forcast data only returns 5 3 hour forcast datapoints rather than 5 days worth of data points. ``` go run ./weather.go -w...
I'm seeing rain data in the json payload with some sample code that I've got, but the data doesn't seem to make it into the struct. Wondering if this is...
This exists for current weather data, but not for the forecast endpoint. For example: https://openweathermap.org/forecast5#zip If I get some time, I'll implement this and send a PR.
Hopefully you will find this useful. I noticed that API key validation could be improved and thought I could contribute a little something. Let me know if this is useful...