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

feat(package/weather): Version 1.0 of weather package #108

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

facorazza
Copy link
Contributor

What type of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactor
  • Documentation
  • Not Sure?

Does this PR introduce breaking changes?

  • Yes
  • No

List any relevant issue numbers:

#105

Description:

New weather package.

@facorazza facorazza mentioned this pull request Jun 9, 2019
@louistiti
Copy link
Member

Hello @Imperator26,

Thanks for opening this PR and for that work!

I'll take a look at it later. Let's see how we can deal with both of these packages #103.

Also, today I've created a Discord so that we can discuss further, feel free to join it.

@louistiti louistiti mentioned this pull request Jun 11, 2019
6 tasks
@@ -8,5 +8,7 @@ requests = "==2.21.0"
pytube = "==9.5.0"
tinydb = "==3.9.0"
beautifulsoup4 = "==4.7.1"
pyowm = "==2.10.0"
Copy link
Member

@theoludwig theoludwig Mar 23, 2021

Choose a reason for hiding this comment

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

This PR is quite old, before we merge, we should use the latest versions of the dependencies used in this package.
Currently the latest version of pyowm is 3.2.0 and tzlocal is 2.1.0.

Copy link
Member

@theoludwig theoludwig left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! @facorazza

I submit several comments about your code, feel free to discuss.
Also there isn't automated tests for this package, we should add some.

from pyowm import OWM


# Decorators
Copy link
Member

Choose a reason for hiding this comment

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

We should avoid "useless" comments.

return wrapper_acquire_weather


# Methods
Copy link
Member

Choose a reason for hiding this comment

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

Same here, we should avoid that sort of comment.

@@ -0,0 +1 @@
1.0.3
Copy link
Member

Choose a reason for hiding this comment

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

I guess it is still the first version (1.0.0) of the package until it has been merged into develop.

- [PyOWM GitHub](https://github.com/csparpa/pyowm)
- [PyOWM Docs](https://pyowm.readthedocs.io/en/latest/)

#### TODO
Copy link
Member

Choose a reason for hiding this comment

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

We should not use "Todo" inside markdown files, instead it would be GitHub issues or Trello Card.

What do you think?

Get when the sun rises.
"""

dt = payload["wtr"].get_sunrise_time("date")
Copy link
Member

Choose a reason for hiding this comment

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

We should avoid abbreviations in variable names.
So instead to call it dt, we could call it date_time for example.

@theoludwig theoludwig added the feature request Indicates new feature requests. label Apr 24, 2021
@louistiti louistiti mentioned this pull request May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Indicates new feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants