generated from Randers-Kommune-Digitalisering/node-red-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Randers-Kommune-Digitalisering/st-openData…
…-connector-refactoring St open data connector refactoring
- Loading branch information
Showing
114 changed files
with
788 additions
and
1,370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"$": "17c28e6fc52c09c6e2ab432f537151c4FVg=" | ||
"$": "bc4dcfec5162da1c415dfaaee74e14fbuPI=" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const Node = { | ||
"id": "3e0ff018670eed4c", | ||
"type": "change", | ||
"z": "848072497d00f862", | ||
"g": "5058659da1be591c", | ||
"name": "Tæl filer", | ||
"rules": [ | ||
{ | ||
"t": "set", | ||
"p": "payload_count", | ||
"pt": "msg", | ||
"to": "payload ~> $count()", | ||
"tot": "jsonata" | ||
}, | ||
{ | ||
"t": "set", | ||
"p": "excluded_count", | ||
"pt": "msg", | ||
"to": "excludedFiles ~> $count()", | ||
"tot": "jsonata" | ||
} | ||
], | ||
"action": "", | ||
"property": "", | ||
"from": "", | ||
"to": "", | ||
"reg": false, | ||
"x": 920, | ||
"y": 480, | ||
"wires": [ | ||
[ | ||
"79a666a3900e24db", | ||
"9878ab3aeb4562c3" | ||
] | ||
], | ||
"_order": 50 | ||
} | ||
|
||
module.exports = Node; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const Node = { | ||
"id": "7023b4fd6de8be22", | ||
"type": "change", | ||
"z": "848072497d00f862", | ||
"g": "2d4e33e8ad9e6a3a", | ||
"name": "Datafilter ↓\\n Ekskludér filer oprettet tidligere \\n end max_file_age_days siden", | ||
"rules": [ | ||
{ | ||
"t": "set", | ||
"p": "excludedFiles", | ||
"pt": "msg", | ||
"to": "(\t/* Udregner millis for max_file_age_days tilbage i tiden */\t$maxAge := $millis() - (max_file_age_days * 24 * 60 * 60 * 1000) ~> $number;\t\t/* Find datasæt fra payload som er oprettet før $maxAge */\tpayload [ created ~> $toMillis() <= $maxAge ]\t)", | ||
"tot": "jsonata" | ||
}, | ||
{ | ||
"t": "set", | ||
"p": "payload", | ||
"pt": "msg", | ||
"to": "payload ~> $filter( function($v)\t{\t excludedFiles ?\t $not( $v in excludedFiles ) /* Fjern fra payload hvis filen er ekskluderet */\t :\t true /* Inkluder alle filer hvis ingen excludedFiles findes */\t})", | ||
"tot": "jsonata" | ||
} | ||
], | ||
"action": "", | ||
"property": "", | ||
"from": "", | ||
"to": "", | ||
"reg": false, | ||
"x": 290, | ||
"y": 500, | ||
"wires": [ | ||
[ | ||
"dea48bd07aad0de1", | ||
"eefc4d981f3a4c01" | ||
] | ||
], | ||
"_order": 47 | ||
} | ||
|
||
module.exports = Node; |
Oops, something went wrong.