nashorn/samples/barchart_weather.js
changeset 45898 f66344672e6c
parent 26067 b32ccc3a76c9
equal deleted inserted replaced
45871:878e21603932 45898:f66344672e6c
    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