Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -22,6 +22,7 @@ module.exports = (server, app) => { | ... | @@ -22,6 +22,7 @@ module.exports = (server, app) => { |
22 | let Destiny; | 22 | let Destiny; |
23 | let sql; | 23 | let sql; |
24 | 24 | ||
25 | + let Day3_Weather ={}; | ||
25 | let info = {} | 26 | let info = {} |
26 | 27 | ||
27 | 28 | ||
... | @@ -61,7 +62,7 @@ module.exports = (server, app) => { | ... | @@ -61,7 +62,7 @@ module.exports = (server, app) => { |
61 | Discomport_index = await req_API("index", "th"); //불쾌지수 | 62 | Discomport_index = await req_API("index", "th"); //불쾌지수 |
62 | Ultra_Violet_index = await req_API("index", "uv"); //자외선지수 | 63 | Ultra_Violet_index = await req_API("index", "uv"); //자외선지수 |
63 | //let kts = await req_D_API(); | 64 | //let kts = await req_D_API(); |
64 | - | 65 | + Day3_Weather = await req_API("forecast","3days"); //3일예보(단기예보) |
65 | info = { | 66 | info = { |
66 | heat: Heat_index.weather.wIndex.heatIndex[0].current.index, //열지수 | 67 | heat: Heat_index.weather.wIndex.heatIndex[0].current.index, //열지수 |
67 | sensible_temperature: Sensible_T.weather.wIndex.wctIndex[0].current.index, //체감온도 | 68 | sensible_temperature: Sensible_T.weather.wIndex.wctIndex[0].current.index, //체감온도 |
... | @@ -75,8 +76,9 @@ module.exports = (server, app) => { | ... | @@ -75,8 +76,9 @@ module.exports = (server, app) => { |
75 | warning: Current_Weather.common.alertYn, //현재 특보 유무 | 76 | warning: Current_Weather.common.alertYn, //현재 특보 유무 |
76 | typhoon: Current_Weather.common.stormYn, //현재 태풍 | 77 | typhoon: Current_Weather.common.stormYn, //현재 태풍 |
77 | time: Current_Weather.weather.minutely[0].timeObservation, // 불러온 시각 | 78 | time: Current_Weather.weather.minutely[0].timeObservation, // 불러온 시각 |
78 | - death_prob: 0 //확률 | ||
79 | 79 | ||
80 | + Forecast_3D: Day3_Weather.weather.forecast3days[0].fcst3hour.wind.wspd64hour, | ||
81 | + death_prob: 0 //확률 | ||
80 | } | 82 | } |
81 | console.log("API INFO \n", info); | 83 | console.log("API INFO \n", info); |
82 | 84 | ... | ... |
-
Please register or login to post a comment