Toggle navigation
Toggle navigation
This project
Loading...
Sign in
kkl
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
곽태식
2019-06-03 13:26:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9417d49c4b51e5fcda55aa9c5e9108690a45cfbc
9417d49c
1 parent
1429a8fe
기상예보 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
lib/socketio.js
lib/socketio.js
View file @
9417d49
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment