posit-dev / posit-dev/py-shiny

Example app: weather map

Open
#543 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Description

Can start with map app:
https://pyshiny.netlify.app/examples/#map

Use the coordinates to fetch data from weather API:
https://www.weather.gov/documentation/services-web-api

Take the lat/lon to fetch gridX and gridY:
https://api.weather.gov/points/39.7456,-97.0892

Then use the gridX and gridY to fetch weather forcast:
https://api.weather.gov/gridpoints/TOP/31,80/forecast

Example app showing how to do fetches:
https://pyshiny.netlify.app/examples/#fetch-data-from-a-web-api

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked map example and the fetch-data-from-a-web-api example, then read the weather.gov API documentation and test the points and forecast endpoints. Done means adding a Shiny for Python example that uses map coordinates to retrieve gridX and gridY, fetches the forecast, and presents the weather data on the map.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.