changes 2023-06-24
This commit is contained in:
parent
b201ab7930
commit
496e47d734
2 changed files with 7 additions and 3 deletions
|
@ -29,6 +29,9 @@
|
|||
<v-tabs-items v-model="configTab">
|
||||
<v-tab-item key="brandgefahren">
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-checkbox label="use German POCSAG" v-model="configData.germanUmlautSupport"></v-checkbox>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-btn color="primary" fab dark small icon @click="addAlarm()">
|
||||
<v-icon>mdi-plus</v-icon>
|
||||
|
@ -174,7 +177,8 @@
|
|||
"url": "",
|
||||
},
|
||||
"menuSupport": false,
|
||||
"deliveryModes": []
|
||||
"deliveryModes": [],
|
||||
"germanUmlautSupport": false,
|
||||
},
|
||||
autocompleteData: {
|
||||
wbx: {counties: {}, countyNames: []},
|
||||
|
|
4
index.js
4
index.js
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue