質問編集履歴
1
個人情報が記入されていたため
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
var weather = require('npm-openweathermap'); //ライブラリを持ってくる
|
28
28
|
|
29
|
-
weather.api_key = '
|
29
|
+
weather.api_key = '取得APIキー'; //自分で取得したAPIキーを入力
|
30
30
|
|
31
31
|
weather.get_weather_custom('city','Tokyo','forecast').then(function(res){ //get_weather_customで東京の天気をとってくる。resの中に5日分の3時間ごとの天気予測
|
32
32
|
for(var I=0; I<7; I++){
|