openweathermap icon indicating copy to clipboard operation
openweathermap copied to clipboard

Rain and snow data missing from current?

Open zachfi opened this issue 5 years ago • 1 comments

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 just me, or if perhaps there's a a bug here. I looked briefly at the code, and it all looks like it should work, so not sure what I'm missing here.

	c, err := owm.NewCurrent("C", "EN", apiKey)
	if err != nil {
		return err
	}

	err = c.CurrentByCoordinates(coord)
	if err != nil {
		return err
	}

From the above c.Rain.ThreeH should contain something, but is 0.

zachfi avatar Nov 25 '19 19:11 zachfi

It does look like the rain and snow data are present in the 5 day forecast.

zachfi avatar Nov 25 '19 19:11 zachfi