equal
deleted
inserted
replaced
58 reader.close(); |
58 reader.close(); |
59 } |
59 } |
60 } |
60 } |
61 |
61 |
62 // change URL for your city here! |
62 // change URL for your city here! |
63 var url = "http://api.openweathermap.org/data/2.5/forecast?q=chennai,india&units=metric&mode=json"; |
63 var url = "http://api.openweathermap.org/data/2.5/forecast?q=chennai,india&units=metric&mode=json&appid=9b2982987c080ae88d81f081dcb129e8"; |
64 |
64 |
65 // download JSON document and parse |
65 // download JSON document and parse |
66 var json = readTextFromURL(url); |
66 var json = readTextFromURL(url); |
67 var weather = JSON.parse(json); |
67 var weather = JSON.parse(json); |
68 |
68 |