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

Show the weather forecast #277

Open
Deuchnord opened this issue Aug 15, 2022 · 0 comments
Open

Show the weather forecast #277

Deuchnord opened this issue Aug 15, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Deuchnord
Copy link
Member

Deuchnord commented Aug 15, 2022

Is your feature request related to a problem? Please describe.
The application currently does not give weather forecast, so we are forced to check it by ourselves.

Describe the solution you'd like
Add a feature that checks the hourly weather forecast via OpenWeather API and displays a summary on the standard output.

Some examples of outputs:

Clear sky all the night
$ kosmorro
Monday, August 15, 2022

Weather forecast: clear sky

Object     Rise time    Culmination time    Set time
--------  -----------  ------------------  ----------
Sun         6:36 AM         1:52 PM         9:08 PM
Moon       10:53 PM         4:37 AM         10:41 AM
Mercury     8:55 AM         3:24 PM         9:53 PM
Venus       4:50 AM         12:40 PM        8:30 PM
Mars       12:15 AM         7:54 AM         3:32 PM
Jupiter    10:29 PM         4:46 AM         11:00 AM
Saturn      9:03 PM         1:53 AM         6:39 AM
Uranus     11:43 PM         7:19 AM         2:52 PM
Neptune    10:04 PM         3:57 AM         9:46 AM
Pluto       8:05 PM         12:11 AM        4:14 AM

Moon phase: Waning Gibbous
Last Quarter on Friday, August 19, 2022 at 6:36 AM

Expected events:
12:59 PM  Moon and Jupiter are in conjunction

Note: All the hours are given in the UTC+2 timezone.
Clouds at some times
$ kosmorro
Monday, August 15, 2022

Weather forecast: cloudy between 01:30 AM and 02:00 AM, and between 03:00 AM and 03:10 AM

Object     Rise time    Culmination time    Set time
--------  -----------  ------------------  ----------
...
Clouds, then rain at some times
$ kosmorro
Monday, August 15, 2022

Weather forecast: clouds between 01:30 AM and 02:00 AM, and rain between 03:00 AM and 03:10 AM

Object     Rise time    Culmination time    Set time
--------  -----------  ------------------  ----------
...
Clouds or rain all the night
$ kosmorro
Monday, August 15, 2022

Weather forecast: clouds all the night, and rain between 03:00 AM and 03:10 AM

Object     Rise time    Culmination time    Set time
--------  -----------  ------------------  ----------
...

Notes:

  • For privacy reasons, this feature will be disabled by default. OpenWeather's API shall not be called until it is explicitly enabled.
  • To enable this feature, the user will be required to create an API key on OpenAPI's website and to put it in an environment variable named, for instance, KOSMORRO_OPENWEATHER_API_KEY.
@Deuchnord Deuchnord added the enhancement New feature or request label Aug 15, 2022
@Deuchnord Deuchnord added this to the v1.1 milestone Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant