Blazor Web Assembly
UWYO COSC 4220
1 Assignment
For this assignment you will be creating a more robust (and accurate) weather application using Blazor Web
Assembly. Note, pay attention to the nesting in the JSON.
dotnet new blazorwasm
You will be making an API call to the National Weather Service. You can make the call with this api-url:
https://api.weather.gov/gridpoints/CYS/84,23/forecast
This will give you the weather forecast for Laramie. I recommend running that call in either a browser or
something like ThunderClient so you can see the format of the response.
Websites you may find to be helpful:
https://json2csharp.com/
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/how-to?
pivots=dotnet-8-0
https://learn.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-using-the-dotnet-cli
You application will have the following pages:
Forecast, where you will display the forecast for the next week. This is the “periods” of the API
response. You will include the following columns:
– Date/Time (the period name)
– Temp
– Probability of Precipitation
– The Forecast Summary (Short Forecast)
– The icon, bsaed on the API response
Home page which will include
– The Elevation in feet
– The forecast generator
– the units of measurement (us/metric)
2 Submission
Submissions must include a .gitignore to ignore node modules
Submissions for this homework will be done though github classroom.
The assignment can be accepted here: https://classroom.github.com/a/QR4-K28h
Submissions must include the following:
A README.md containing:
Your Name
The Assignment number
Submission date
Who you worked with/sources used
Any program quirks/things that don’t work
All resource files must be present.
Written by Danny Radosevich for UWYO COSC 4220