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

Include UV index in forecast #57

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Include UV index in forecast #57

merged 2 commits into from
Jul 24, 2024

Conversation

ryansurf
Copy link
Owner

Addresses #2

The forecast(lat, long, decimal, days=0) function in api.py now also returns a uv index forecast. The addition of the API endpoint https://api.open-meteo.com/v1/forecast enables us to grab this information (the other API endpoint was only for ocean data)

In helper.api, the json/print forecast functions were altered to include the uv forecast.

Please take a look at this PR whenever you are able @K-dash !

@ryansurf ryansurf requested a review from K-dash July 24, 2024 21:14
Copy link
Contributor

github-actions bot commented Jul 24, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   __init__.py00100% 
   api.py105694%30, 48, 70–71, 103–104
   art.py9367%24–25, 37
   cli.py23483%34, 50–51, 55
   gpt.py10640%16–21, 32–45
   helper.py1576062%53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 91, 102–106, 132, 134, 136, 145–155, 167, 180–181, 199–201, 211, 213–214, 236–237, 275–285, 292–300
   send_email.py24240%5–48
   server.py41410%5–82
   settings.py220100% 
TOTAL39114463% 

Tests Skipped Failures Errors Time
9 0 💤 0 ❌ 0 🔥 15.067s ⏱️

@ryansurf ryansurf changed the title Fixed format issues Include UV index in forecast Jul 24, 2024
docs/structure.md Outdated Show resolved Hide resolved
@K-dash K-dash merged commit 3d89bf2 into main Jul 24, 2024
7 checks passed
@K-dash K-dash deleted the uv_in_forecast branch July 24, 2024 23:05
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