There are several different mini-projects on this page. You can build them all, or your teacher may only ask you to work on one or two.
For each activity, you will scrape a weather website for data to build an algorithm for a weather app.
Current Temperature and Current Weather ReportersMany websites provide current weather and forecast data. Some, such as Weather Underground, give location-specific information through the use of URL tags. Weather Underground can accept locations and ZIP codes.
°.http block input slot.
block that accepts a ZIP code or a city and state as input and reports the current temperature in degrees Fahrenheit:
You can query wunderground.com for current temperature and weather conditions in a list of cities like this...
...to produce a report like this:
Add Location command that lets the user populate the list of locations.current temperature and current weather reporters to build a weather report table (a list of lists) for multiple cities.
Umbrella? PredicateYou can build an algorithm to tells you if you'll need an umbrella today.
umbrella? predicate that takes a location as input. You'll need to figure out what information should make the block report
.
know the user's location automatically, use an IP address reporter.
to a reporter that can return a wider variety of information, including outputs such as tonight, tomorrow, it's complicated, and wear boots instead.
reporter that returns the sunset time at a given location; if no location is provided, use the current location.