Remove OWM key
This commit is contained in:
parent
81d7b0be3c
commit
8fcd31e235
@ -7,7 +7,7 @@ function dateTime() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function weatherBalloon(cityID) {
|
function weatherBalloon(cityID) {
|
||||||
var apiKey = 'fad9628260a1bc2ebaaf85a7dfe800d0';
|
var apiKey = ''; //Your OpenWeatherMap key
|
||||||
fetch('https://api.openweathermap.org/data/2.5/weather?id=' + cityID + '&appid=' + apiKey)
|
fetch('https://api.openweathermap.org/data/2.5/weather?id=' + cityID + '&appid=' + apiKey)
|
||||||
.then(function(resp) {
|
.then(function(resp) {
|
||||||
return resp.json()
|
return resp.json()
|
||||||
@ -23,5 +23,5 @@ function weatherBalloon(cityID) {
|
|||||||
|
|
||||||
function traichu() {
|
function traichu() {
|
||||||
dateTime();
|
dateTime();
|
||||||
weatherBalloon(6254926);
|
weatherBalloon(1850147); //OpenWeather city ID
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user