posit-dev / posit-dev/py-shiny
Example app: weather map
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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