곽태식

기상예보 추가

......@@ -22,6 +22,7 @@ module.exports = (server, app) => {
let Destiny;
let sql;
let Day3_Weather ={};
let info = {}
......@@ -61,7 +62,7 @@ module.exports = (server, app) => {
Discomport_index = await req_API("index", "th"); //불쾌지수
Ultra_Violet_index = await req_API("index", "uv"); //자외선지수
//let kts = await req_D_API();
Day3_Weather = await req_API("forecast","3days"); //3일예보(단기예보)
info = {
heat: Heat_index.weather.wIndex.heatIndex[0].current.index, //열지수
sensible_temperature: Sensible_T.weather.wIndex.wctIndex[0].current.index, //체감온도
......@@ -75,8 +76,9 @@ module.exports = (server, app) => {
warning: Current_Weather.common.alertYn, //현재 특보 유무
typhoon: Current_Weather.common.stormYn, //현재 태풍
time: Current_Weather.weather.minutely[0].timeObservation, // 불러온 시각
Forecast_3D: Day3_Weather.weather.forecast3days[0].fcst3hour.wind.wspd64hour,
death_prob: 0 //확률
}
console.log("API INFO \n", info);
......