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

13
rules/Dienste.rules Normal file
View File

@ -0,0 +1,13 @@
rule "DWD Warnungen"
when
//Time cron "0 */30 * ? * *" //every 30 Minutes
Time cron "0 * * ? * *" //every 1 Minute
then
logInfo("HTTPGET", "Abfragr Erfolgt")
var String jsonString = sendHttpGetRequest("https://fms.ffhstm.de/dienste_lesen_json.php")
postUpdate(FFDienstZVD,transform("JSONPATH", "$.DIENSTE.C", jsonString))
postUpdate(FFDienstIUK2,transform("JSONPATH", "$.DIENSTE.D", jsonString))
// postUpdate(FFDienstIUK3,transform("JSONPATH", "$.DIENSTE.F", jsonString))
postUpdate(FFDienstIUK3,transform("JSONPATH", "$.DIENSTE.E", jsonString))
postUpdate(FFSperrungen,transform("JSONPATH", "$.SPERRUNG", jsonString))
end