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

Add support for the OpenWeatherMap API #159

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

aryanvichare
Copy link
Contributor

The "OpenWeatherMap API" now supports fetching current and forecast weather data as well as historical weather data with the latest update. This API enables users to retrieve minute-by-minute, hourly, and daily forecasts, along with government weather alerts.

For current and forecast weather data, utilize the openweathermap.one_call() function by providing latitude, longitude, exclusion parameters, and your unique API key. The API version 3.0 offers options for units of measurement: standard, metric, and imperial.

To access historical weather data for a specific timestamp, the openweathermap.time_machine() function is available. Specify the latitude, longitude, timestamp (Unix time in UTC), and API key to retrieve historical weather information.

Copy link
Owner

@ShishirPatil ShishirPatil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ShishirPatil ShishirPatil merged commit eb00d8b into ShishirPatil:main Jan 30, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants