Skip to content

Commit

Permalink
중기예보 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffy-melli committed Dec 29, 2024
1 parent 1f54e92 commit 0910381
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MID_FCST/fcst.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ func GetFcst(apikey string) ([]string, error) {
currentTime := time.Now()
if currentTime.Hour()*60+currentTime.Minute() >= 18*60 {
tmfc = krapo.Time() + "1800"
} else {
} else if currentTime.Hour()*60+currentTime.Minute() >= 6*60 {
tmfc = krapo.Time() + "0600"
} else {
tmfc = krapo.LTime(1) + "1800"
}
URL := "http://apis.data.go.kr/1360000/MidFcstInfoService/getMidFcst"
params := url.Values{}
Expand Down

0 comments on commit 0910381

Please sign in to comment.