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

Flags Object #64

Open
kqi914 opened this issue Feb 11, 2019 · 0 comments
Open

Flags Object #64

kqi914 opened this issue Feb 11, 2019 · 0 comments

Comments

@kqi914
Copy link

kqi914 commented Feb 11, 2019

What is the correct way to create a Flag Object so that I can then proceed to gather the following data:

nearest-station required
The distance to the nearest weather station that contributed data to this response. Note, however, that many other stations may have also been used; this value is primarily for debugging purposes. This property's value is in miles (if US units are selected) or kilometers (if SI units are selected).
sources required
This property contains an array of IDs for each data source utilized in servicing this request.
units required
Indicates the units which were used for the data in this request.

I have been successful at creating DataPoint Objects, DataBlock Objects, and Alerts Arrays; but so far I have been unable to create a flag object. I cant find any documentation as to how to properly create one, I have been trying this:

forecast = forecastio.load_forecast(api_key, lat, lng)
ws = forecast.flags()

but it yields:

AttributeError: 'Forecast' object has no attribute 'flags'

I need it to find out from what weather station is being used.

Thanks!!!

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