briandowns/openweathermap

Rain and snow data missing from current?

zachfi opened this issue · 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.

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