feat: 지금 날씨를 초단기실황 관측값으로, 각 점수에서 시간대 알맞음 제거·우산각 계산식 변경
- 초단기실황(getUltraSrtNcst)을 받아 지금 정시 한 시각의 비·기온·습도·바람을 예보 대신 관측값으로 덮어씀 (체감·불쾌지수는 다시 계산). 지역별 1시간 캐시, 실패하면 초단기예보·단기예보로 되돌아감, 새 시각 실황이 나오면 각 점수를 다시 계산. 가이드대로 ±900 이상은 결측 처리. 테스트가 실제 기상청을 부르지 않게 실황 호출을 기본으로 막음 - 시간대 알맞음 요소를 31개 각에서 빼고 비중을 5% 단위로 나눔. 요소가 3개 미만이 된 뜨아각·파전각·감성노래각·감사각·선크림각에 요소를 더함. 러닝각의 활동 시간대 밖 점수 상한도 없앰. 요소가 하나뿐인 각은 가장 낮은 요소로 깎지 않음 - 우산각은 비 한 가지: 남은 하루(지금~자정) 비 확률 평균이 점수, 지금 비가 오면 70점에서 시작해 평균 × 30점을 더함. 내일·토·일 칸은 그날 6~24시 평균 × 100. 우산분실각도 비 한 가지 - 각 계산 기준 문서는 생성기를 새 규칙에 맞게 고쳐 다시 생성, 점수 계산식·서비스 동작 안내 문서 갱신
This commit is contained in:
1 parent
8ea9f8f04b
commit
5ab2381f79
19 files changed
+737
-243
No files matched your search
@@ -263,7 +263,7 @@
|
||||
"to": 22
|
||||
}
|
||||
],
|
||||
"weight_temp": 30,
|
||||
"weight_temp": 35,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 10,
|
||||
@@ -271,7 +271,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -356,11 +356,11 @@
|
||||
"weight_rain": 15,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 20,
|
||||
"weight_air": 35,
|
||||
"weight_air": 40,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -536,14 +536,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 5,
|
||||
"weight_rain": 40,
|
||||
"weight_rain": 45,
|
||||
"weight_wind": 10,
|
||||
"weight_humidity": 10,
|
||||
"weight_air": 10,
|
||||
"weight_uv": 10,
|
||||
"weight_sun": 10,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -705,7 +705,7 @@
|
||||
"to": 22
|
||||
}
|
||||
],
|
||||
"weight_temp": 35,
|
||||
"weight_temp": 40,
|
||||
"weight_rain": 20,
|
||||
"weight_wind": 10,
|
||||
"weight_humidity": 15,
|
||||
@@ -713,7 +713,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -807,12 +807,6 @@
|
||||
"op": "<",
|
||||
"value": 5,
|
||||
"cap": 40
|
||||
},
|
||||
{
|
||||
"field": "time_matches",
|
||||
"op": "==",
|
||||
"value": false,
|
||||
"cap": 50
|
||||
}
|
||||
],
|
||||
"limit_description": "노면 상태는 반영하지 못해요",
|
||||
@@ -925,7 +919,7 @@
|
||||
"to": 24
|
||||
}
|
||||
],
|
||||
"weight_temp": 50,
|
||||
"weight_temp": 55,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 5,
|
||||
"weight_humidity": 10,
|
||||
@@ -933,7 +927,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -1039,15 +1033,15 @@
|
||||
"to": 10
|
||||
}
|
||||
],
|
||||
"weight_temp": 90,
|
||||
"weight_rain": 0,
|
||||
"weight_wind": 0,
|
||||
"weight_temp": 80,
|
||||
"weight_rain": 10,
|
||||
"weight_wind": 10,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 10,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -1096,14 +1090,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 15,
|
||||
"weight_rain": 30,
|
||||
"weight_rain": 35,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 10,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 25,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -1263,7 +1257,7 @@
|
||||
"to": 20
|
||||
}
|
||||
],
|
||||
"weight_temp": 40,
|
||||
"weight_temp": 45,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 10,
|
||||
"weight_humidity": 5,
|
||||
@@ -1271,7 +1265,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -1351,7 +1345,7 @@
|
||||
"to": 9
|
||||
}
|
||||
],
|
||||
"weight_temp": 70,
|
||||
"weight_temp": 75,
|
||||
"weight_rain": 10,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 15,
|
||||
@@ -1359,7 +1353,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -1407,7 +1401,7 @@
|
||||
"to": 18
|
||||
}
|
||||
],
|
||||
"weight_temp": 55,
|
||||
"weight_temp": 60,
|
||||
"weight_rain": 5,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 35,
|
||||
@@ -1415,7 +1409,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -1463,7 +1457,7 @@
|
||||
"to": 14
|
||||
}
|
||||
],
|
||||
"weight_temp": 65,
|
||||
"weight_temp": 70,
|
||||
"weight_rain": 15,
|
||||
"weight_wind": 5,
|
||||
"weight_humidity": 5,
|
||||
@@ -1471,7 +1465,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -1643,14 +1637,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 20,
|
||||
"weight_rain": 25,
|
||||
"weight_rain": 30,
|
||||
"weight_wind": 10,
|
||||
"weight_humidity": 10,
|
||||
"weight_air": 10,
|
||||
"weight_uv": 10,
|
||||
"weight_sun": 10,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -2000,7 +1994,7 @@
|
||||
"to": 21
|
||||
}
|
||||
],
|
||||
"weight_temp": 60,
|
||||
"weight_temp": 65,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 5,
|
||||
"weight_humidity": 0,
|
||||
@@ -2008,7 +2002,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -2805,7 +2799,7 @@
|
||||
"to": 18
|
||||
}
|
||||
],
|
||||
"weight_temp": 70,
|
||||
"weight_temp": 75,
|
||||
"weight_rain": 10,
|
||||
"weight_wind": 5,
|
||||
"weight_humidity": 10,
|
||||
@@ -2813,7 +2807,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -2868,14 +2862,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 15,
|
||||
"weight_rain": 60,
|
||||
"weight_rain": 65,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 20,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -3169,7 +3163,7 @@
|
||||
"to": 21
|
||||
}
|
||||
],
|
||||
"weight_temp": 65,
|
||||
"weight_temp": 70,
|
||||
"weight_rain": 20,
|
||||
"weight_wind": 5,
|
||||
"weight_humidity": 0,
|
||||
@@ -3177,7 +3171,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -3392,7 +3386,7 @@
|
||||
"to": 21
|
||||
}
|
||||
],
|
||||
"weight_temp": 70,
|
||||
"weight_temp": 75,
|
||||
"weight_rain": 15,
|
||||
"weight_wind": 5,
|
||||
"weight_humidity": 0,
|
||||
@@ -3400,7 +3394,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -3452,7 +3446,7 @@
|
||||
"to": 24
|
||||
}
|
||||
],
|
||||
"weight_temp": 75,
|
||||
"weight_temp": 80,
|
||||
"weight_rain": 5,
|
||||
"weight_wind": 10,
|
||||
"weight_humidity": 0,
|
||||
@@ -3460,7 +3454,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -3513,14 +3507,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 0,
|
||||
"weight_rain": 90,
|
||||
"weight_rain": 100,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 10,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -3528,7 +3522,9 @@
|
||||
"hi": 40
|
||||
},
|
||||
"rain": {
|
||||
"dir": "wet"
|
||||
"dir": "wet",
|
||||
"span": "rest_of_day",
|
||||
"now_base": 70
|
||||
},
|
||||
"wind": {
|
||||
"type": "ignore"
|
||||
@@ -3569,14 +3565,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 20,
|
||||
"weight_rain": 70,
|
||||
"weight_rain": 65,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 0,
|
||||
"weight_humidity": 15,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 10,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -3590,7 +3586,7 @@
|
||||
"type": "ignore"
|
||||
},
|
||||
"humidity": {
|
||||
"type": "ignore"
|
||||
"type": "higher"
|
||||
},
|
||||
"time": {
|
||||
"type": "fixed",
|
||||
@@ -3624,15 +3620,15 @@
|
||||
"to": 24
|
||||
}
|
||||
],
|
||||
"weight_temp": 25,
|
||||
"weight_rain": 60,
|
||||
"weight_temp": 30,
|
||||
"weight_rain": 55,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 0,
|
||||
"weight_humidity": 15,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 15,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -3646,7 +3642,7 @@
|
||||
"type": "ignore"
|
||||
},
|
||||
"humidity": {
|
||||
"type": "ignore"
|
||||
"type": "higher"
|
||||
},
|
||||
"time": {
|
||||
"type": "fixed",
|
||||
@@ -3751,14 +3747,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 30,
|
||||
"weight_rain": 50,
|
||||
"weight_rain": 55,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -3829,14 +3825,14 @@
|
||||
}
|
||||
],
|
||||
"weight_temp": 0,
|
||||
"weight_rain": 80,
|
||||
"weight_rain": 100,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 20,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -4194,12 +4190,12 @@
|
||||
"weight_temp": 10,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 60,
|
||||
"weight_humidity": 65,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -4247,7 +4243,7 @@
|
||||
"to": 31
|
||||
}
|
||||
],
|
||||
"weight_temp": 70,
|
||||
"weight_temp": 75,
|
||||
"weight_rain": 10,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 15,
|
||||
@@ -4255,7 +4251,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "lower",
|
||||
@@ -4308,10 +4304,10 @@
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 80,
|
||||
"weight_sun": 0,
|
||||
"weight_uv": 70,
|
||||
"weight_sun": 15,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -4334,6 +4330,10 @@
|
||||
"uv": {
|
||||
"zero": 1,
|
||||
"full": 7
|
||||
},
|
||||
"sun": {
|
||||
"zero": 0.2,
|
||||
"full": 0.8
|
||||
}
|
||||
},
|
||||
"zero_rules": [],
|
||||
@@ -4363,7 +4363,7 @@
|
||||
"to": 24
|
||||
}
|
||||
],
|
||||
"weight_temp": 50,
|
||||
"weight_temp": 55,
|
||||
"weight_rain": 0,
|
||||
"weight_wind": 20,
|
||||
"weight_humidity": 25,
|
||||
@@ -4371,7 +4371,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "higher",
|
||||
@@ -4432,7 +4432,7 @@
|
||||
"to": 21
|
||||
}
|
||||
],
|
||||
"weight_temp": 30,
|
||||
"weight_temp": 35,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 25,
|
||||
"weight_humidity": 5,
|
||||
@@ -4440,7 +4440,7 @@
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -4590,13 +4590,13 @@
|
||||
],
|
||||
"weight_temp": 50,
|
||||
"weight_rain": 30,
|
||||
"weight_wind": 0,
|
||||
"weight_wind": 20,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 20,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "away",
|
||||
@@ -4607,7 +4607,7 @@
|
||||
"dir": "wet"
|
||||
},
|
||||
"wind": {
|
||||
"type": "ignore"
|
||||
"type": "strong"
|
||||
},
|
||||
"humidity": {
|
||||
"type": "ignore"
|
||||
@@ -4843,12 +4843,12 @@
|
||||
"weight_temp": 0,
|
||||
"weight_rain": 20,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 30,
|
||||
"weight_humidity": 35,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 25,
|
||||
"weight_sun": 30,
|
||||
"weight_view": 0,
|
||||
"weight_time": 10,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
@@ -4908,15 +4908,15 @@
|
||||
"to": 23
|
||||
}
|
||||
],
|
||||
"weight_temp": 35,
|
||||
"weight_rain": 30,
|
||||
"weight_wind": 10,
|
||||
"weight_temp": 40,
|
||||
"weight_rain": 35,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 10,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 15,
|
||||
"weight_time": 0,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
|
||||
Reference in new issue
Block a user