|
|
|
@ -83,7 +83,7 @@ async function triggerAlert(alarmConfig) {
|
|
|
|
|
dayCounter++
|
|
|
|
|
}
|
|
|
|
|
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!alarmConfig.preset ? 'preset' : 'advanced'),
|
|
|
|
|
Object.assign({ preset: alarmConfig.preset }, { payload: `WBI: ${ alarmConfig.wbxStation } ${ dayStrs.join('-') }` }))
|
|
|
|
|
Object.assign({ preset: alarmConfig.preset }, { payload: `WBI: ${ replaceUmlaute(alarmConfig.wbxStation) } ${ dayStrs.join(' - ') }` }))
|
|
|
|
|
}
|
|
|
|
|
if (alarmConfig.gbxEnabled) {
|
|
|
|
|
gbxData = await axios.get("https://www.wettergefahren.de/warnungen/indizes/grasland.html")
|
|
|
|
@ -102,7 +102,7 @@ async function triggerAlert(alarmConfig) {
|
|
|
|
|
dayCounter++
|
|
|
|
|
}
|
|
|
|
|
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!alarmConfig.preset ? 'preset' : 'advanced'),
|
|
|
|
|
Object.assign({ preset: alarmConfig.preset }, { payload: `GBI: ${ alarmConfig.gbxStation } ${ dayStrs.join('-') }` }))
|
|
|
|
|
Object.assign({ preset: alarmConfig.preset }, { payload: `GBI: ${ replaceUmlaute(alarmConfig.gbxStation) } ${ dayStrs.join(' - ') }` }))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async function minuteCheck() {
|
|
|
|
|