動作
任務 #385
已結束任務 #62: 工項一_平台五大模組功能優化及擴充
關山圳模組開發
是由 陳照仁 於 4 個月 前更新 · 已被編輯
LINE 通報有水沒水:
經與關山站站長討論細節後,如下規劃。
- 回報的點位:初步規劃為以下5處(從上游至下游)
1.1. 幹17給取水門:121.1615,23.032453
1.2. 13支線取水門:121.148736,23.008914
1.3. 15支線取水門:121.135444,22.981669
1.4. 16、17支線取水門:121.137139,22.975672
1.5. 17支線末端:121.151208,22.950414
- 回報的頻率與原則
2.1. 建議如果勾選有水後就不需每天去巡視,農民的習慣會是當他的田沒水時才會上去到幹線巡視水到那裡。
2.2. 系統可以設定若勾選「有水」,就不需每天巡視;一旦勾選沒水時,系統就會推播要求每天都要巡視1次,並勾選是否有水;如果勾選沒水就持續進行,直到有一天勾選有水時就可停止每日巡查。
2.3. 若下游勾選有水,在此點位上游的所有點則自動回報為有水,例如17支末端勾有水,則前述所有點位皆有水。
是由 許弘毅 於 3 個月 前更新 · 已被編輯
API 文件¶
1. 向陽站降雨組體圖 (降雨組體圖)¶
request payload:
{
"Reservoirid": "10201",
"Startdate": "2024-10-17",
"Enddate": "2024-10-24"
}
response
{
"data": {
"dataDate": ["10/17","10/18","10/19","10/20","10/21","10/22","10/23","10/24"],
"Rainfall": [0, 0, 3.33, 12.25, 0.84, 1.23, 10.89, 13.72]
}
}
2. 關山圳流量歷線圖¶
request payload:
{
"Startdate": "2024-10-17",
"Enddate": "2024-10-24"
}
response
{
"data":[
{
"Name": "關山圳",
"flowData":[
{
"date": "10-17",
"flow":0
},
{
"date": "10-18",
"flow":0
},
{
"date": "10-19",
"flow":0
},
{
"date": "10-20",
"flow":0
},
{
"date": "10-21",
"flow":0
},
{
"date": "10-22",
"flow":0
},
{
"date": "10-23",
"flow":0
},
{
"date": "10-24",
"flow":0
},
]
},
{
"Name": "整田期所需流量",
"flowData":[
{
"date": "10-17",
"flow":0
},
{
"date": "10-18",
"flow":0
},
{
"date": "10-19",
"flow":0
},
{
"date": "10-20",
"flow":0
},
{
"date": "10-21",
"flow":0
},
{
"date": "10-22",
"flow":0
},
{
"date": "10-23",
"flow":0
},
{
"date": "10-24",
"flow":0
},
]
},
{
"Name": "本田期所需流量",
"flowData":[
{
"date": "10-17",
"flow":0
},
{
"date": "10-18",
"flow":0
},
{
"date": "10-19",
"flow":0
},
{
"date": "10-20",
"flow":0
},
{
"date": "10-21",
"flow":0
},
{
"date": "10-22",
"flow":0
},
{
"date": "10-23",
"flow":0
},
{
"date": "10-24",
"flow":0
},
]
}
]
}
3. SPI (區域乾旱監測)¶
request payload:
{
"DataArea": "11",
"value":["113"]
}
response
{
data:[
{
"LabelName": "曾文烏山頭灌區",
"DataArea": "11",
"YearValue": "113",
"DataTypeValue": "13",
"Rainfall": null,
"SPI1": null,
"vsSPI": null,
"value": "113",
"No": "1",
"Level": null
},
{
"LabelName": "曾文烏山頭灌區",
"DataArea": "11",
"YearValue": "113",
"DataTypeValue": "14",
"Rainfall": null,
"SPI1": null,
"vsSPI": -1.18,
"value": "113",
"No": "2",
"Level": null
},
{
"LabelName": "曾文烏山頭灌區",
"DataArea": "11",
"YearValue": "113",
"DataTypeValue": "15",
"Rainfall": null,
"SPI1": null,
"vsSPI": null,
"value": "113",
"No": "3",
"Level": null
}
]
}
4. 實際種植面積 ,資料表:[dbo].[plantingArea]¶
request payload:
{
"StartYear": "103",
"EndYear": "113"
}
response
{
data:[
{
"RocYearr": "103",
"Period1":10,
"Period2":20,
},
{
"RocYearr": "104",
"Period1":20,
"Period2":25,
},
{
"RocYearr": "105",
"Period1":8,
"Period2":11,
},
]
}
動作