From 496e47d734fbd411f5eefafffeadee5680c20e80 Mon Sep 17 00:00:00 2001 From: cheetah Date: Sat, 24 Jun 2023 13:39:27 +0200 Subject: [PATCH] changes 2023-06-24 --- html/index.html | 6 +++++- index.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index be0309b..dd429c0 100644 --- a/html/index.html +++ b/html/index.html @@ -29,6 +29,9 @@ + + + mdi-plus @@ -174,7 +177,8 @@ "url": "", }, "menuSupport": false, - "deliveryModes": [] + "deliveryModes": [], + "germanUmlautSupport": false, }, autocompleteData: { wbx: {counties: {}, countyNames: []}, diff --git a/index.js b/index.js index 3faddba..6cdf2df 100644 --- a/index.js +++ b/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() {