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

Mere support for climateData API #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

perabrahamsen
Copy link

Hej Lasse.

Tak for et nyttigt stykke kode.

Jeg prøvede at kalde get_stations med en client åbnet med en "climateData"api key, det virkede ikke da get_stations er hardkodet til "metObs" api. Jeg tror ikke man kan blande api key og api, så måske giver det mest mening at gemme navnet på api'en sammen med key i client datastrukturen?

Mvh,

Per

@perabrahamsen
Copy link
Author

Jeg tilføjede også

MeanRadiation = "mean_radiation"

til ClimateDataParameter som maglede fra listen.

Mvh,

Per

@perabrahamsen
Copy link
Author

Jeg tilføjede en "pars" parameter til get_closest_station, så man kan bede om den nærmeste station med specifikke data. Den bruger dog DMI navne, ikke navnene fra enums.py som den måske burde.

Copy link
Owner

@LasseRegin LasseRegin left a comment

Choose a reason for hiding this comment

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

Tak for dine input. Har lige tilføjet et par foreslåede ændringer, så kodestilen matcher det eksisterende kode.

dmi_open_data/client.py Outdated Show resolved Hide resolved
dmi_open_data/client.py Outdated Show resolved Hide resolved
dmi_open_data/client.py Outdated Show resolved Hide resolved
dmi_open_data/client.py Outdated Show resolved Hide resolved
dmi_open_data/client.py Outdated Show resolved Hide resolved
perabrahamsen and others added 5 commits October 18, 2021 12:16
Co-authored-by: Lasse Regin Nielsen <[email protected]>
Co-authored-by: Lasse Regin Nielsen <[email protected]>
Co-authored-by: Lasse Regin Nielsen <[email protected]>
Co-authored-by: Lasse Regin Nielsen <[email protected]>
Co-authored-by: Lasse Regin Nielsen <[email protected]>
@perabrahamsen
Copy link
Author

Rettet.

@perabrahamsen
Copy link
Author

Tror jeg. Jeg har stadig ikke lært hvordan github fungerer.

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.

2 participants