Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rain and snow data missing from current? #79

Open
zachfi opened this issue Nov 25, 2019 · 1 comment
Open

Rain and snow data missing from current? #79

zachfi opened this issue Nov 25, 2019 · 1 comment

Comments

@zachfi
Copy link
Contributor

zachfi commented Nov 25, 2019

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 zachfi changed the title Rain and snow data missing? Rain and snow data missing from current? Nov 25, 2019
@zachfi
Copy link
Contributor Author

zachfi commented Nov 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant