Using CoCalc to Look at National Weather Service Hourly Forecast
A short demo written as the first blizzard of the season arrived in Chicago.
Here's a picture from the NW suburbs the next morning.
References
NWS
Python package noaa-sdk
Chicago area blizzard forecast in the news, evening of 2018-11-25
Package note
The following step is no longer needed. As of 2018-11-28, noaa-sdk is globally installed on CoCalc.
If noaa_sdk
isn't available globally in CoCalc yet, open a .term and do the following. Then restart your worksheet.
[{'number': 1, 'name': '', 'startTime': '2018-11-26T15:00:00-06:00', 'endTime': '2018-11-26T16:00:00-06:00', 'isDaytime': True, 'temperature': 28, 'temperatureUnit': 'F', 'temperatureTrend': None, 'windSpeed': '15 mph', 'windDirection': 'NW', 'icon': 'https://api.weather.gov/icons/land/day/bkn?size=small', 'shortForecast': 'Mostly Cloudy', 'detailedForecast': ''}, {'number': 2, 'name': '', 'startTime': '2018-11-26T16:00:00-06:00', 'endTime': '2018-11-26T17:00:00-06:00', 'isDaytime': True, 'temperature': 26, 'temperatureUnit': 'F', 'temperatureTrend': None, 'windSpeed': '15 mph', 'windDirection': 'WNW', 'icon': 'https://api.weather.gov/icons/land/day/bkn?size=small', 'shortForecast': 'Mostly Cloudy', 'detailedForecast': ''}, {'number': 3, 'name': '', 'startTime': '2018-11-26T17:00:00-06:00', 'endTime': '2018-11-26T18:00:00-06:00', 'isDaytime': True, 'temperature': 24, 'temperatureUnit': 'F', 'temperatureTrend': None, 'windSpeed': '15 mph', 'windDirection': 'WNW', 'icon': 'https://api.weather.gov/icons/land/day/bkn?size=small', 'shortForecast': 'Mostly Cloudy', 'detailedForecast': ''}]
startTime | temperature | shortForecast | Snowfall | |
---|---|---|---|---|
Time | ||||
2018-11-26 21:00:00 | 2018-11-26T15:00:00-06:00 | 28 | Mostly Cloudy | 0 |
2018-11-26 22:00:00 | 2018-11-26T16:00:00-06:00 | 26 | Mostly Cloudy | 0 |
2018-11-26 23:00:00 | 2018-11-26T17:00:00-06:00 | 24 | Mostly Cloudy | 0 |
2018-11-27 00:00:00 | 2018-11-26T18:00:00-06:00 | 23 | Mostly Cloudy | 0 |
2018-11-27 01:00:00 | 2018-11-26T19:00:00-06:00 | 23 | Mostly Cloudy | 0 |