changes 2023-06-24

master
cheetah 2 years ago
parent b201ab7930
commit 496e47d734

@ -29,6 +29,9 @@
<v-tabs-items v-model="configTab"> <v-tabs-items v-model="configTab">
<v-tab-item key="brandgefahren"> <v-tab-item key="brandgefahren">
<v-container> <v-container>
<v-row>
<v-checkbox label="use German POCSAG" v-model="configData.germanUmlautSupport"></v-checkbox>
</v-row>
<v-row> <v-row>
<v-btn color="primary" fab dark small icon @click="addAlarm()"> <v-btn color="primary" fab dark small icon @click="addAlarm()">
<v-icon>mdi-plus</v-icon> <v-icon>mdi-plus</v-icon>
@ -174,7 +177,8 @@
"url": "", "url": "",
}, },
"menuSupport": false, "menuSupport": false,
"deliveryModes": [] "deliveryModes": [],
"germanUmlautSupport": false,
}, },
autocompleteData: { autocompleteData: {
wbx: {counties: {}, countyNames: []}, wbx: {counties: {}, countyNames: []},

@ -83,7 +83,7 @@ async function triggerAlert(alarmConfig) {
dayCounter++ dayCounter++
} }
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!alarmConfig.preset ? 'preset' : 'advanced'), 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) { if (alarmConfig.gbxEnabled) {
gbxData = await axios.get("https://www.wettergefahren.de/warnungen/indizes/grasland.html") gbxData = await axios.get("https://www.wettergefahren.de/warnungen/indizes/grasland.html")
@ -102,7 +102,7 @@ async function triggerAlert(alarmConfig) {
dayCounter++ dayCounter++
} }
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!alarmConfig.preset ? 'preset' : 'advanced'), 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() { async function minuteCheck() {

Loading…
Cancel
Save