In "Set Filename" wird eine Umgebungsvariable eine Umgebungsvariable verwendet
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
- [ ] Fehlerhandling
|
||||
- [x] Zeit wird falsch angegeben (Zeit fuer Filenamen mit $now)
|
||||
- [x] Aktuell Fehler beim berechnen der Zeit fuer das File
|
||||
- [ ] In "Set Filename" wird soll eine Umgebungsvariable verwendet werden
|
||||
- [x] In "Set Filename" wird soll eine Umgebungsvariable verwendet werden
|
||||
|
||||
## 🐳 Docker & Deployment
|
||||
- [ ] Docker-Volumes für Produktion prüfen
|
||||
@@ -35,4 +35,5 @@
|
||||
- [ ] Ausfuehrliche Dokumentation fuer Kollegen
|
||||
|
||||
## 🙋♂️Abstimmung mit Benutzern
|
||||
- [ ] Mit Markus
|
||||
- [ ] Mit Markus
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ services:
|
||||
- GROUPINFO_JSON_LNK_NAME_WITH_PATH=/data/archivegroup_information.json
|
||||
- NON_SPECIFIED_GROUPS=/data/non_specified_groups.csv
|
||||
- BEGIN_NAME_GROUPINFO_JSON_FILE=size_by_ownergroup_and_number_of_copies_
|
||||
- BEGIN_NAME_GROUPINFO_JSON_FILE_WITH_PATH=/data/size_by_ownergroup_and_number_of_copies_
|
||||
- ERROR_LOGFILE=error.log
|
||||
- JSON_CACHE=json_cache.json
|
||||
- JSON_CACHE_WITH_PATH=/data/json_cache.json
|
||||
|
||||
@@ -1 +1 @@
|
||||
size_by_ownergroup_and_number_of_copies_2026-06-23T09_52_12.json
|
||||
size_by_ownergroup_and_number_of_copies_2026-06-23T11_26_07.json
|
||||
+141
-26
@@ -49,7 +49,7 @@
|
||||
"topic": "",
|
||||
"payload": "",
|
||||
"payloadType": "date",
|
||||
"x": 120,
|
||||
"x": 180,
|
||||
"y": 260,
|
||||
"wires": [
|
||||
[
|
||||
@@ -104,7 +104,7 @@
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 380,
|
||||
"x": 440,
|
||||
"y": 260,
|
||||
"wires": [
|
||||
[
|
||||
@@ -128,7 +128,7 @@
|
||||
"authType": "",
|
||||
"senderr": false,
|
||||
"headers": [],
|
||||
"x": 670,
|
||||
"x": 730,
|
||||
"y": 260,
|
||||
"wires": [
|
||||
[
|
||||
@@ -149,7 +149,7 @@
|
||||
"targetType": "msg",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 250,
|
||||
"x": 310,
|
||||
"y": 600,
|
||||
"wires": []
|
||||
},
|
||||
@@ -161,7 +161,7 @@
|
||||
"property": "payload",
|
||||
"action": "",
|
||||
"pretty": false,
|
||||
"x": 190,
|
||||
"x": 250,
|
||||
"y": 360,
|
||||
"wires": [
|
||||
[
|
||||
@@ -173,20 +173,17 @@
|
||||
"id": "cc064f55fd438347",
|
||||
"type": "file",
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "Write json to disk",
|
||||
"name": "Write json to disk old",
|
||||
"filename": "filename",
|
||||
"filenameType": "msg",
|
||||
"appendNewline": true,
|
||||
"createDir": false,
|
||||
"overwriteFile": "true",
|
||||
"encoding": "none",
|
||||
"x": 130,
|
||||
"y": 500,
|
||||
"x": 900,
|
||||
"y": 1000,
|
||||
"wires": [
|
||||
[
|
||||
"metabase_output_debug",
|
||||
"63ed8c262fa7753b"
|
||||
]
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -199,7 +196,7 @@
|
||||
"t": "set",
|
||||
"p": "filename",
|
||||
"pt": "msg",
|
||||
"to": "\"/data/size_by_ownergroup_and_number_of_copies_\" & msg.date_string & \".json\"",
|
||||
"to": "$env(\"BEGIN_NAME_GROUPINFO_JSON_FILE_WITH_PATH\") & msg.date_string & \".json\"",
|
||||
"tot": "jsonata"
|
||||
}
|
||||
],
|
||||
@@ -208,12 +205,12 @@
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 750,
|
||||
"x": 810,
|
||||
"y": 360,
|
||||
"wires": [
|
||||
[
|
||||
"cc064f55fd438347",
|
||||
"7e0c38cadf8c5ebe"
|
||||
"7e0c38cadf8c5ebe",
|
||||
"737f4bb0df2e799c"
|
||||
]
|
||||
]
|
||||
},
|
||||
@@ -239,7 +236,7 @@
|
||||
"winHide": false,
|
||||
"oldrc": false,
|
||||
"name": "create link to newest archivegroup information json",
|
||||
"x": 550,
|
||||
"x": 610,
|
||||
"y": 500,
|
||||
"wires": [
|
||||
[
|
||||
@@ -267,7 +264,7 @@
|
||||
"targetType": "msg",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 1020,
|
||||
"x": 1080,
|
||||
"y": 500,
|
||||
"wires": []
|
||||
},
|
||||
@@ -282,7 +279,7 @@
|
||||
"createDir": false,
|
||||
"overwriteFile": "false",
|
||||
"encoding": "none",
|
||||
"x": 680,
|
||||
"x": 740,
|
||||
"y": 660,
|
||||
"wires": [
|
||||
[
|
||||
@@ -309,7 +306,7 @@
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 460,
|
||||
"x": 520,
|
||||
"y": 660,
|
||||
"wires": [
|
||||
[
|
||||
@@ -330,7 +327,7 @@
|
||||
"targetType": "msg",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 930,
|
||||
"x": 990,
|
||||
"y": 660,
|
||||
"wires": []
|
||||
},
|
||||
@@ -340,7 +337,7 @@
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "link in Get New Groupinformation",
|
||||
"links": [],
|
||||
"x": 125,
|
||||
"x": 185,
|
||||
"y": 180,
|
||||
"wires": [
|
||||
[
|
||||
@@ -355,7 +352,7 @@
|
||||
"name": "link out Get New Groupinformation",
|
||||
"mode": "return",
|
||||
"links": [],
|
||||
"x": 915,
|
||||
"x": 975,
|
||||
"y": 420,
|
||||
"wires": []
|
||||
},
|
||||
@@ -415,7 +412,7 @@
|
||||
"output": "date_string",
|
||||
"outputType": "msg",
|
||||
"outTz": "Europe/Zurich",
|
||||
"x": 510,
|
||||
"x": 570,
|
||||
"y": 360,
|
||||
"wires": [
|
||||
[
|
||||
@@ -432,14 +429,132 @@
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
"complete": "true",
|
||||
"targetType": "full",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 1000,
|
||||
"y": 260,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "4c790912771b89dc",
|
||||
"type": "moment",
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "Prepare date format for filename",
|
||||
"topic": "",
|
||||
"input": "start_time",
|
||||
"inputType": "msg",
|
||||
"inTz": "Europe/Zurich",
|
||||
"adjAmount": 0,
|
||||
"adjType": "days",
|
||||
"adjDir": "add",
|
||||
"format": "YYYY-MM-DD[T]HH_mm_ss",
|
||||
"locale": "en-US",
|
||||
"output": "date_string",
|
||||
"outputType": "msg",
|
||||
"outTz": "Europe/Zurich",
|
||||
"x": 430,
|
||||
"y": 880,
|
||||
"wires": [
|
||||
[
|
||||
"c55ac9de5736d58c"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c55ac9de5736d58c",
|
||||
"type": "change",
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "Set Filename",
|
||||
"rules": [
|
||||
{
|
||||
"t": "set",
|
||||
"p": "filename",
|
||||
"pt": "msg",
|
||||
"to": "$env(\"BEGIN_NAME_GROUPINFO_JSON_FILE\") & msg.date_string & \".json\"",
|
||||
"tot": "jsonata"
|
||||
}
|
||||
],
|
||||
"action": "",
|
||||
"property": "",
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 710,
|
||||
"y": 880,
|
||||
"wires": [
|
||||
[
|
||||
"5ede70b6fab13b03"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "3061839cda32600d",
|
||||
"type": "inject",
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "",
|
||||
"props": [
|
||||
{
|
||||
"p": "payload"
|
||||
},
|
||||
{
|
||||
"p": "topic",
|
||||
"vt": "str"
|
||||
}
|
||||
],
|
||||
"repeat": "",
|
||||
"crontab": "",
|
||||
"once": false,
|
||||
"onceDelay": 0.1,
|
||||
"topic": "",
|
||||
"payload": "",
|
||||
"payloadType": "date",
|
||||
"x": 180,
|
||||
"y": 880,
|
||||
"wires": [
|
||||
[
|
||||
"4c790912771b89dc"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "5ede70b6fab13b03",
|
||||
"type": "debug",
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "debug 1",
|
||||
"active": true,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
"complete": "filename",
|
||||
"targetType": "msg",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 940,
|
||||
"y": 260,
|
||||
"x": 900,
|
||||
"y": 880,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "737f4bb0df2e799c",
|
||||
"type": "file",
|
||||
"z": "5a9dd923b7459820",
|
||||
"name": "Write json to disk",
|
||||
"filename": "filename",
|
||||
"filenameType": "msg",
|
||||
"appendNewline": true,
|
||||
"createDir": false,
|
||||
"overwriteFile": true,
|
||||
"encoding": "none",
|
||||
"x": 190,
|
||||
"y": 500,
|
||||
"wires": [
|
||||
[
|
||||
"metabase_output_debug",
|
||||
"63ed8c262fa7753b"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "3cc11d24.ff01a2",
|
||||
"type": "comment",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user