ITSE 1359 | PyThon Scripting

ACC

Correction to Chapter 16 Code Example.

See the update below.

Automate Textbook

 

Make a change to the author’s project content in Chapter 16, Project: Fetching Current Weather Data of the Automate textbook.

Original:
url ='https://api.openweathermap.org/data/2.5/forecast/daily?q=%s&cnt=3&APPID=%s ' % (location, APPID)

Updated (remove the word ‘daily’ and the space after the last %s):
url ='https://api.openweathermap.org/data/2.5/forecast/?q=%s&cnt=3&APPID=%s' % (location, APPID)

At this site https://openweathermap.org/api, I subscribed via the Current Weather Data link. My APPID works for both the “Current Weather Data” and the “5 Day / 3 Hour Forecast” used by the author.

Online Content for Applied Scripting Section Four

Chapter 15

Chapter 16

Correction to Chapter 16 Code Example (this page)