Dateien nach "/" hochladen

This commit is contained in:
Manuel Kamper 2024-08-13 14:35:00 +02:00
parent 3d24860435
commit a62493cd4b

490
GetUnwetterFromZAMG.json Normal file
View File

@ -0,0 +1,490 @@
{
"name": "GetUnwetterFromZAMG",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"id": "baac01d6-9a99-4461-b536-de4662e08302",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
-180,
600
]
},
{
"parameters": {
"url": "https://zamg.ac.at/warnmobil/index.php?type=w0&state=wie&district=Wien+Nordwest",
"options": {
"allowUnauthorizedCerts": true,
"response": {
"response": {
"responseFormat": "text"
}
}
}
},
"id": "7afc4843-31e3-4b60-90e2-b8ca66ad323a",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
-20,
600
]
},
{
"parameters": {
"table": {
"__rl": true,
"value": "warnungen",
"mode": "list",
"cachedResultName": "warnungen"
},
"dataMode": "defineBelow",
"valuesToSend": {
"values": [
{
"column": "warnung",
"value": "={{ $json.ok }}"
},
{
"column": "typ",
"value": "OK"
}
]
},
"options": {}
},
"id": "65b5b333-aad9-45ed-a413-61bc442fdb8b",
"name": "MySQL",
"type": "n8n-nodes-base.mySql",
"typeVersion": 2.2,
"position": [
460,
460
],
"credentials": {
"mySql": {
"id": "FgP1TnrrIqxTCsgz",
"name": "MySQL account"
}
}
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "warn",
"cssSelector": "#content > div.warndescription.yellow",
"returnArray": true
},
{
"key": "warnhigh",
"cssSelector": "#content > div.warndescription.orange",
"returnArray": true
},
{
"key": "alert",
"cssSelector": "#content > div.warndescription.red",
"returnArray": true
},
{
"key": "ok",
"cssSelector": "#content > div.warndescription.green",
"returnArray": true
}
]
},
"options": {
"trimValues": false,
"cleanUpText": false
}
},
"id": "f4f0a543-92d9-497e-a902-a07157b9b0e6",
"name": "HTML",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
140,
600
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "aaa7fe42-f5c6-4f8c-9053-800cdd0728ff",
"leftValue": "={{ $json.ok }}",
"rightValue": "",
"operator": {
"type": "array",
"operation": "notEmpty",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {
"looseTypeValidation": false
}
},
"id": "594293bb-22d1-4cfe-b0ef-5d1ea3579095",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
280,
600
]
},
{
"parameters": {
"table": {
"__rl": true,
"value": "warnungen",
"mode": "list",
"cachedResultName": "warnungen"
},
"dataMode": "defineBelow",
"valuesToSend": {
"values": [
{
"column": "warnung",
"value": "={{ $json.warn }}"
},
{
"column": "typ",
"value": "WARN"
}
]
},
"options": {}
},
"id": "196180b5-be9d-483f-a5d7-0ca38adb524e",
"name": "MySQL1",
"type": "n8n-nodes-base.mySql",
"typeVersion": 2.2,
"position": [
660,
500
],
"credentials": {
"mySql": {
"id": "FgP1TnrrIqxTCsgz",
"name": "MySQL account"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "aaa7fe42-f5c6-4f8c-9053-800cdd0728ff",
"leftValue": "={{ $json.warn }}",
"rightValue": "",
"operator": {
"type": "array",
"operation": "notEmpty",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {
"looseTypeValidation": false
}
},
"id": "b4bd287a-968d-4c65-ac7e-b6f7129d737a",
"name": "If1",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
460,
620
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "aaa7fe42-f5c6-4f8c-9053-800cdd0728ff",
"leftValue": "={{ $json.warnhigh }}",
"rightValue": "",
"operator": {
"type": "array",
"operation": "notEmpty",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {
"looseTypeValidation": false
}
},
"id": "39501311-a6cc-4ed4-90d8-1f6af1f9780d",
"name": "If2",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
660,
660
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "aaa7fe42-f5c6-4f8c-9053-800cdd0728ff",
"leftValue": "={{ $json.alert }}",
"rightValue": "",
"operator": {
"type": "array",
"operation": "notEmpty",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {
"looseTypeValidation": false
}
},
"id": "7b6830f0-4d32-4315-9022-71a02fe28fda",
"name": "If3",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
840,
740
]
},
{
"parameters": {
"table": {
"__rl": true,
"value": "warnungen",
"mode": "list",
"cachedResultName": "warnungen"
},
"dataMode": "defineBelow",
"valuesToSend": {
"values": [
{
"column": "warnung",
"value": "={{ $json.warnhigh }}"
},
{
"column": "typ",
"value": "WARNHIGH"
}
]
},
"options": {}
},
"id": "31fd87b9-fb44-48eb-a8d2-11d43c0d647f",
"name": "MySQL2",
"type": "n8n-nodes-base.mySql",
"typeVersion": 2.2,
"position": [
840,
580
],
"credentials": {
"mySql": {
"id": "FgP1TnrrIqxTCsgz",
"name": "MySQL account"
}
}
},
{
"parameters": {
"table": {
"__rl": true,
"value": "warnungen",
"mode": "list",
"cachedResultName": "warnungen"
},
"dataMode": "defineBelow",
"valuesToSend": {
"values": [
{
"column": "warnung",
"value": "={{ $json.alert }}"
},
{
"column": "typ",
"value": "ALERT"
}
]
},
"options": {}
},
"id": "a244e18d-41a9-4875-9db0-485d1309ea19",
"name": "MySQL3",
"type": "n8n-nodes-base.mySql",
"typeVersion": 2.2,
"position": [
1040,
660
],
"credentials": {
"mySql": {
"id": "FgP1TnrrIqxTCsgz",
"name": "MySQL account"
}
}
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "HTML",
"type": "main",
"index": 0
}
]
]
},
"HTML": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "MySQL",
"type": "main",
"index": 0
}
],
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"If1": {
"main": [
[
{
"node": "MySQL1",
"type": "main",
"index": 0
}
],
[
{
"node": "If2",
"type": "main",
"index": 0
}
]
]
},
"If2": {
"main": [
[
{
"node": "MySQL2",
"type": "main",
"index": 0
}
],
[
{
"node": "If3",
"type": "main",
"index": 0
}
]
]
},
"If3": {
"main": [
[
{
"node": "MySQL3",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "c4f6bb8d-22c5-4cb4-9bd2-c614566b7e42",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "7dcb3a6291f3872f83cd7cb81432ab018ff5d7125645d8677122fdd0c5b880d8"
},
"id": "BIiEM97kmbvcWJG3",
"tags": []
}