mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-18 08:15:06 +00:00
feat(weather)!: add /thuyvan flood alerts for Tân Thuận
/thuyvan shows the 5-day tide-peak forecast at Phú An and Nhà Bè from the Đài KTTV Nam Bộ bulletin PDF, the Open-Meteo rain forecast, and live VNDMS river gauges within 30 km. /thuyvan_subscribe opts a chat into a 10:30 ICT push, retried at 12:30, sent only when a forecast peak reaches báo động I (1.40 m) or a day's rain reaches 50 mm. A missing or stale bulletin fails the push instead of reading as no risk. The thoitiet module is renamed to weather; the /thoitiet* commands keep their names. BREAKING CHANGE: the module key is now "weather". A MODULES list that names thoitiet fails at startup and must name weather instead.
This commit is contained in:
1 parent
59c74de9a9
commit
053fd07e5a
22 files changed
+1672
-49
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[106.63300323486328,17.433000564575195]},"properties":{"longtitude":106.633,"latitude":17.433,"label":"Đồng Hới","popupInfo":"<div class=\"station-popup-info\"><div class=\"row-popup\"><div class=\"col-popup-left\"><li>Tên trạm: <b>Đồng Hới</b> </li><li>Mã trạm: <b>71502</b></li><li>Địa điểm: <b>Quảng Trị</b></li><li> Sông: <b>Kiến Giang</b></li><li>Nguồn: <b>KTTV</b></li><li>Cảnh báo vượt mức báo động: <b>-</b></li><li><b>Mực nước (0.09(m) 11-02/10)</b> </li><li class='detalRain' data-id='71502' onclick='VNDMS.wMap.showStationInfo(`71502`,`Water`,1)' ><a class=\"description-class\">Chi tiết <i class=\"fa fa-caret-right\" aria-hidden=\"true\"></i> </a></b></li></div><li><img class='agri-chart-img' src=\"https://vndms.gov.vn/chart?height=175&c={ type: 'bar', data: { 'labels': ['0h \n1/10','1h \n1/10','2h \n1/10','3h \n1/10','4h \n1/10','5h \n1/10','6h \n1/10','7h \n1/10','8h \n1/10','9h \n1/10','10h \n1/10','11h \n1/10','12h \n1/10','13h \n1/10','14h \n1/10','15h \n1/10','16h \n1/10','17h \n1/10','18h \n1/10','19h \n1/10','20h \n1/10','21h \n1/10','22h \n1/10','23h \n1/10','0h \n2/10','1h \n2/10','2h \n2/10','3h \n2/10','4h \n2/10','5h \n2/10','6h \n2/10','7h \n2/10','8h \n2/10','9h \n2/10','10h \n2/10','11h \n2/10'], datasets: [{ type: 'line', label: 'Dataset 1', borderColor: 'green', borderWidth: 2, fill: false, data: [0.02,0.27,0.46,0.66,0.77,0.69,0.52,0.37,0.17,0.07,0.03,0.05,0.15,0.29,0.32,0.29,0.16,-0.02,-0.23,-0.37,-0.5,-0.55,-0.5,-0.36,-0.15,-0.02,0.15,0.38,0.55,0.64,0.62,0.49,0.37,0.25,0.12,0.09 ] } ] }, options: { responsive: true, maintainAspectRatio:false,layout:{padding:{bottom:10,top:20,right:10}}, scales:{yAxes:[{display: false}]},legend:{ display: false},plugins:{datalabels:{display:true,borderRadius:3,align:'top',font: {weight: 'bold'}}}}}\" /></li></div></div>"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[106.82499694824219,10.9399995803833]},"properties":{"longtitude":106.825,"latitude":10.94,"label":"Biên Hòa","popupInfo":"<div class=\"station-popup-info\"><div class=\"row-popup\"><div class=\"col-popup-left\"><li>Tên trạm: <b>Biên Hòa</b> </li><li>Mã trạm: <b>71594</b></li><li>Địa điểm: <b>Đồng Nai</b></li><li> Sông: <b>Đồng Nai</b></li><li>Nguồn: <b>KTTV</b></li><li>Cảnh báo vượt mức báo động: <b>-</b></li><li><b>Mực nước (1.74(m) 7-02/10)</b> </li><li class='detalRain' data-id='71594' onclick='VNDMS.wMap.showStationInfo(`71594`,`Water`,1)' ><a class=\"description-class\">Chi tiết <i class=\"fa fa-caret-right\" aria-hidden=\"true\"></i> </a></b></li></div><li><img class='agri-chart-img' src=\"https://vndms.gov.vn/chart?height=175&c={ type: 'bar', data: { 'labels': ['1h \n1/10','2h \n1/10','6h \n1/10','7h \n1/10','13h \n1/10','15h \n1/10','19h \n1/10','1h \n2/10','2h \n2/10','7h \n2/10'], datasets: [{ type: 'line', label: 'Dataset 1', borderColor: 'green', borderWidth: 2, fill: false, data: [0.61,0.4,1.88,1.87,0.14,-0.41,1.8,0.84,0.55,1.74 ] } ] }, options: { responsive: true, maintainAspectRatio:false,layout:{padding:{bottom:10,top:20,right:10}}, scales:{yAxes:[{display: false}]},legend:{ display: false},plugins:{datalabels:{display:true,borderRadius:3,align:'top',font: {weight: 'bold'}}}}}\" /></li></div></div>"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[106.71700286865234,10.767000198364258]},"properties":{"longtitude":106.717,"latitude":10.767,"label":"Phú An","popupInfo":"<div class=\"station-popup-info\"><div class=\"row-popup\"><div class=\"col-popup-left\"><li>Tên trạm: <b>Phú An</b> </li><li>Mã trạm: <b>71600</b></li><li>Địa điểm: <b>TP. Hồ Chí Minh</b></li><li> Sông: <b>Sài Gòn</b></li><li>Nguồn: <b>KTTV</b></li><li>Cảnh báo vượt mức báo động: <b>-</b></li><li><b>Mực nước (1.33(m) 7-02/10)</b> </li><li class='detalRain' data-id='71600' onclick='VNDMS.wMap.showStationInfo(`71600`,`Water`,1)' ><a class=\"description-class\">Chi tiết <i class=\"fa fa-caret-right\" aria-hidden=\"true\"></i> </a></b></li></div><li><img class='agri-chart-img' src=\"https://vndms.gov.vn/chart?height=175&c={ type: 'bar', data: { 'labels': ['1h \n1/10','6h \n1/10','7h \n1/10','13h \n1/10','14h \n1/10','19h \n1/10','1h \n2/10','7h \n2/10'], datasets: [{ type: 'line', label: 'Dataset 1', borderColor: 'green', borderWidth: 2, fill: false, data: [-0.46,1.44,1.35,-1.57,-1.72,1.4,-0.04,1.33 ] } ] }, options: { responsive: true, maintainAspectRatio:false,layout:{padding:{bottom:10,top:20,right:10}}, scales:{yAxes:[{display: false}]},legend:{ display: false},plugins:{datalabels:{display:true,borderRadius:3,align:'top',font: {weight: 'bold'}}}}}\" /></li></div></div>"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[106.65299987792969,10.967000007629395]},"properties":{"longtitude":106.653,"latitude":10.967,"label":"Thủ DLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[106.65299987792969,10.967000007629395]},"properties":{"longtitude":106.653,"latitude":10.967,"label":"Thủ Dầu Một","popupInfo":"<div class=\"station-popup-info\"><div class=\"row-popup\"><div class=\"col-popup-left\"><li>Tên trạm: <b>Thủ Dầu Một</b> </li><li>Mã trạm: <b>71586</b></li><li>Địa điểm: <b>TP. Hồ Chí Minh</b></li><li> Sông: <b>Sài Gòn</b></li><li>Nguồn: <b>KTTV</b></li><li>Cảnh báo vượt mức báo động: <b>-</b></li><li><b>Mực nước (1.56(m) 7-02/10)</b> </li><li class='detalRain' data-id='71586' onclick='VNDMS.wMap.showStationInfo(`71586`,`Water`,1)' ><a class=\"description-class\">Chi tiết <i class=\"fa fa-caret-right\" aria-hidden=\"true\"></i> </a></b></li></div><li><img class='agri-chart-img' src=\"https://vndms.gov.vn/chart?height=175&c={ type: 'bar', data: { 'labels': ['1h \n1/10','2h \n1/10','7h \n1/10','13h \n1/10','15h \n1/10','19h \n1/10','1h \n2/10','2h \n2/10','7h \n2/10'], datasets: [{ type: 'line', label: 'Dataset 1', borderColor: 'green', borderWidth: 2, fill: false, data: [0.5,0.34,1.66,0.01,-0.55,1.4,0.69,0.5,1.56 ] } ] }, options: { responsive: true, maintainAspectRatio:false,layout:{padding:{bottom:10,top:20,right:10}}, scales:{yAxes:[{display: false}]},legend:{ display: false},plugins:{datalabels:{display:true,borderRadius:3,align:'top',font: {weight: 'bold'}}}}}\" /></li></div></div>"}}]}
|
||||
Reference in new issue
Block a user