Initial Commit

This commit is contained in:
Patrick Niebeling
2019-10-17 13:23:53 +02:00
parent 81699fd4a4
commit b699c1545c
49 changed files with 659 additions and 3 deletions

6
transform/Wetter_DWD.map Normal file
View File

@ -0,0 +1,6 @@
0=Keine Warnung (0)
1=Wetterwarnung (1)
2=markantes Wetter (2)
3=Unwetterwarnung (3)
4=extremes Unwetter (4)
10=Hitzewarnung (10)

View File

@ -0,0 +1,10 @@
(function(jsonString) {
var newString = jsonString.replace('warnWetter.loadWarnings(','');
newString = newString.replace(');','');
var newJSON = JSON.parse(newString);
var jsonResult = "";
if (newJSON.warnings.hasOwnProperty('906438999')) {
jsonResult =JSON.stringify(newJSON.warnings['906438999'][0]);
} else jsonResult = 'NULL'
return jsonResult;
})(input)

3
transform/de.map Normal file
View File

@ -0,0 +1,3 @@
CLOSED=zu
OPEN=offen
NULL=undefiniert

4
transform/en.map Normal file
View File

@ -0,0 +1,4 @@
CLOSED=closed
OPEN=open
NULL=unknown

5
transform/readme.txt Normal file
View File

@ -0,0 +1,5 @@
Transformations like map or jsonpath can utilize configuration files with data definitions.
These files have their specific file extensions and syntax definition.
Check out the openHAB documentation for more details:
https://www.openhab.org/docs/configuration/transformations.html

7
transform/status.map Normal file
View File

@ -0,0 +1,7 @@
1=Einsatzbereit über Funk
2=Einsatzbereit auf Wache
3=Auf Anfahrt zur E-Stelle
4=An E-Stelle eingetroffen
5=Sprechwunsch
6=nicht einsatzbereit
NULL=Unbekannt