add nextcloud caldav agenda

This commit is contained in:
JcDenis 2024-04-28 15:16:13 +02:00
parent aaf285bbb8
commit b6f0e73930
9 changed files with 4883 additions and 155 deletions

View file

@ -25,10 +25,11 @@ Flows are written under Node-red v3.1.9 with following nodes packages :
* [node-red-contrib-credentials](https://flows.nodered.org/node/node-red-contrib-credentials) 0.2.3
* [node-red-node-base64](https://flows.nodered.org/node/node-red-node-base64) 0.3.0
It additionnaly uses some Telegram, Proxmox, Unifi and Amazon Alexa stuff.
It additionnaly uses some Telegram, Proxmox, Unifi, Nextcloud (agenda) and Amazon Alexa stuff.
* [node-red-contrib-telegrambot](https://flows.nodered.org/node/node-red-contrib-telegrambot) 15.1.10
* [node-red-contrib-unifi](https://flows.nodered.org/node/node-red-contrib-unifi) 0.3.15
* [@kuehnelbs/node-red-contrib-nextcloud](https://flows.nodered.org/node/@kuehnelbs/node-red-contrib-nextcloud) 0.1.3
* [node-red-contrib-alexa-remote2-applestrudel](https://flows.nodered.org/node/node-red-contrib-alexa-remote2-applestrudel) 5.0.50
* [node-red-contrib-virtual-smart-home](https://flows.nodered.org/node/node-red-contrib-virtual-smart-home) 4.4.0

View file

@ -447,7 +447,7 @@
"page": "8e909fed7a35e981",
"width": "6",
"height": "1",
"order": 4,
"order": 6,
"showTitle": true,
"className": "",
"visible": "true",
@ -839,10 +839,83 @@
"page": "8e909fed7a35e981",
"width": "6",
"height": "1",
"order": 7,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "fe0449063daf1386",
"type": "nextcloud-credentials",
"cname": "nextcloud",
"address": "http://10.40.0.119",
"insecure": true
},
{
"id": "b526fa97ad265f91",
"type": "ui-group",
"name": "Anniversaires à venir",
"page": "e6a8e17572dadf56",
"width": "6",
"height": "1",
"order": -1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "e6a8e17572dadf56",
"type": "ui-page",
"name": "Agenda",
"ui": "2d75e4809d2a6fbf",
"path": "/agenda",
"icon": "calendar",
"layout": "flex",
"theme": "0e53487482752cfe",
"order": 2,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "1745449446f285ef",
"type": "ui-group",
"name": "Anniversaire",
"page": "8e909fed7a35e981",
"width": "6",
"height": "1",
"order": 5,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "6b152cf9e173ee4f",
"type": "ui-group",
"name": "Poubelles",
"page": "e6a8e17572dadf56",
"width": "6",
"height": "1",
"order": -1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "55e6ecdf43b1e380",
"type": "ui-group",
"name": "Poubelles",
"page": "8e909fed7a35e981",
"width": "6",
"height": "1",
"order": 4,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
}
]

File diff suppressed because one or more lines are too long

4631
flows/A.Agenda.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -7,54 +7,6 @@
"info": "",
"env": []
},
{
"id": "665068c11f8d7cd2",
"type": "group",
"z": "52347795767acd3f",
"g": "9fc669530c1959c1",
"name": "telegram - message",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"40e6a86b00b7f03b",
"923d4072d9fd4b7f",
"ec75e169566e28bc"
],
"x": 94,
"y": 439,
"w": 362,
"h": 82
},
{
"id": "42beec20ca262e48",
"type": "group",
"z": "52347795767acd3f",
"g": "9fc669530c1959c1",
"name": "telegram - send",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"1a23e86f0af13941",
"ba0f26a893bbaac2",
"06c6cff5dce7df93",
"f2d668f16abedaa0",
"4246a0f36f41bb93",
"c4a74cb0a40f9fb9",
"0b5138afb86e300d",
"466151db96704e81",
"9a6195ed88aca633"
],
"x": 94,
"y": 559,
"w": 1732,
"h": 82
},
{
"id": "0aff5d7f470c281b",
"type": "group",
@ -114,6 +66,140 @@
"w": 1854,
"h": 194
},
{
"id": "e490f8c59b658000",
"type": "group",
"z": "52347795767acd3f",
"name": "telegram - report",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"e755c88a5f0874e2",
"daeb6d8e80121dec",
"e19bc19284321a71",
"4f8dc94e1c9e516b",
"428b3b06c9904159",
"a31103363afca9e4",
"71832497d54a070c",
"3fd86c625fb7620a",
"9eccb6737df9fcca",
"10da0ff11a25c2d8",
"09bf19e19a1b0d96",
"b72965685dc24330",
"e5c35f9ca6211841",
"34a350a168b2e745",
"316ed209c87c228e",
"57e447541bcb2ade",
"067e200b2cf487af",
"250601c91d2ef5f9",
"61ad4fe0258e29ed",
"eb279f1c73e8707f",
"bfc85601d754a7b2",
"2b625f50e36b43ac"
],
"x": 94,
"y": 1879,
"w": 2142,
"h": 262
},
{
"id": "31c43960a49c7f75",
"type": "group",
"z": "52347795767acd3f",
"name": "telegram - ui - home",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"62a0c42c707fd2cf",
"e78466517f08bf1b",
"2585c1751940ee0f",
"344f652167848723",
"8cdd0ff94c11d7d4",
"45159e869e60fef7",
"c7690118febd88ba",
"63286bf6d40b9ecd",
"c112e5483b53e573",
"057cd27350be1d0e"
],
"x": 94,
"y": 1699,
"w": 882,
"h": 142
},
{
"id": "9fc669530c1959c1",
"type": "group",
"z": "52347795767acd3f",
"name": "",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"665068c11f8d7cd2",
"42beec20ca262e48",
"6a1e1fb203c6236a"
],
"x": 68,
"y": 413,
"w": 2604,
"h": 1214
},
{
"id": "665068c11f8d7cd2",
"type": "group",
"z": "52347795767acd3f",
"g": "9fc669530c1959c1",
"name": "telegram - message",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"40e6a86b00b7f03b",
"923d4072d9fd4b7f",
"ec75e169566e28bc"
],
"x": 94,
"y": 439,
"w": 362,
"h": 82
},
{
"id": "42beec20ca262e48",
"type": "group",
"z": "52347795767acd3f",
"g": "9fc669530c1959c1",
"name": "telegram - send",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"1a23e86f0af13941",
"ba0f26a893bbaac2",
"06c6cff5dce7df93",
"f2d668f16abedaa0",
"4246a0f36f41bb93",
"c4a74cb0a40f9fb9",
"0b5138afb86e300d",
"466151db96704e81",
"9a6195ed88aca633"
],
"x": 94,
"y": 559,
"w": 1732,
"h": 82
},
{
"id": "63db7d59d8bc4113",
"type": "group",
@ -163,45 +249,6 @@
"w": 1082,
"h": 142
},
{
"id": "e490f8c59b658000",
"type": "group",
"z": "52347795767acd3f",
"name": "telegram - report",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"e755c88a5f0874e2",
"daeb6d8e80121dec",
"e19bc19284321a71",
"4f8dc94e1c9e516b",
"428b3b06c9904159",
"a31103363afca9e4",
"71832497d54a070c",
"3fd86c625fb7620a",
"9eccb6737df9fcca",
"10da0ff11a25c2d8",
"09bf19e19a1b0d96",
"b72965685dc24330",
"e5c35f9ca6211841",
"34a350a168b2e745",
"316ed209c87c228e",
"57e447541bcb2ade",
"067e200b2cf487af",
"250601c91d2ef5f9",
"61ad4fe0258e29ed",
"eb279f1c73e8707f",
"bfc85601d754a7b2",
"2b625f50e36b43ac"
],
"x": 94,
"y": 1879,
"w": 2142,
"h": 262
},
{
"id": "6a1e1fb203c6236a",
"type": "group",
@ -282,53 +329,6 @@
"w": 2552,
"h": 922
},
{
"id": "31c43960a49c7f75",
"type": "group",
"z": "52347795767acd3f",
"name": "telegram - ui - home",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"62a0c42c707fd2cf",
"e78466517f08bf1b",
"2585c1751940ee0f",
"344f652167848723",
"8cdd0ff94c11d7d4",
"45159e869e60fef7",
"c7690118febd88ba",
"63286bf6d40b9ecd",
"c112e5483b53e573",
"057cd27350be1d0e"
],
"x": 94,
"y": 1699,
"w": 882,
"h": 142
},
{
"id": "9fc669530c1959c1",
"type": "group",
"z": "52347795767acd3f",
"name": "",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"665068c11f8d7cd2",
"42beec20ca262e48",
"6a1e1fb203c6236a"
],
"x": 68,
"y": 413,
"w": 2604,
"h": 1214
},
{
"id": "c28cd86afb368a68",
"type": "comment",
@ -463,7 +463,7 @@
"z": "52347795767acd3f",
"g": "42beec20ca262e48",
"name": "mode notification",
"property": "stack.system.mode.notification",
"property": "metrics.system.mode.notification",
"propertyType": "global",
"rules": [
{
@ -489,7 +489,7 @@
"z": "52347795767acd3f",
"g": "42beec20ca262e48",
"name": "mode automate",
"property": "stack.system.mode.automate",
"property": "metrics.system.mode.automate",
"propertyType": "global",
"rules": [
{
@ -515,12 +515,12 @@
"z": "52347795767acd3f",
"g": "42beec20ca262e48",
"name": "mode master",
"property": "stack.system.mode.master",
"property": "metrics.system.mode.master",
"propertyType": "global",
"rules": [
{
"t": "eq",
"v": "automate",
"v": "about.automate",
"vt": "global"
}
],
@ -546,7 +546,7 @@
"t": "set",
"p": "payload.chatId",
"pt": "msg",
"to": "stack.telegram.config['chat id']",
"to": "metrics.telegram.config['chat id']",
"tot": "global"
}
],

View file

@ -289,12 +289,12 @@
"z": "bcb1eeac454a68aa",
"g": "431e858f4040dc8b",
"name": "mode master",
"property": "stack.system.mode.master",
"property": "metrics.system.mode.master",
"propertyType": "global",
"rules": [
{
"t": "eq",
"v": "automate",
"v": "about.automate",
"vt": "global"
}
],
@ -315,7 +315,7 @@
"z": "bcb1eeac454a68aa",
"g": "431e858f4040dc8b",
"name": "mode automate",
"property": "stack.system.mode.automate",
"property": "metrics.system.mode.automate",
"propertyType": "global",
"rules": [
{

View file

@ -2839,7 +2839,14 @@
"g": "a762a7a552cb9f03",
"name": "kernel - cron day",
"mode": "link",
"links": [],
"links": [
"5e387209f4a1be63",
"f1d9b13e80b9da4c",
"f33d7419f0933e00",
"9c9fde57b61d7940",
"bf4f0e66f58b0244",
"c9f8f3d06381d3b2"
],
"x": 365,
"y": 2700,
"wires": []
@ -5810,7 +5817,11 @@
"5e1f61b100dc5e9f",
"40fba6c8db067ba4",
"e5af9cdb8ad1782f",
"9d534295bf79c9ea"
"9d534295bf79c9ea",
"a9620e892125509b",
"1c148e0bd7c295b9",
"f9c15b253d5cfe9e",
"0a53f27ca3a07d20"
],
"x": 5195,
"y": 1260,
@ -5854,7 +5865,9 @@
"981daf7e528f93a4",
"76bd8af6b6128264",
"ec965b4258cf0125",
"930ec55bdd15ae80"
"930ec55bdd15ae80",
"437fa0c2d577fbc9",
"954579d4fb332d8c"
],
"x": 135,
"y": 1260,
@ -6757,7 +6770,13 @@
"775013411d26e549",
"12ee535e8df383e4",
"baa85c145ba7e3cd",
"d301485b0e0dced0"
"d301485b0e0dced0",
"5e387209f4a1be63",
"f1d9b13e80b9da4c",
"f33d7419f0933e00",
"9c9fde57b61d7940",
"bf4f0e66f58b0244",
"c9f8f3d06381d3b2"
],
"x": 1315,
"y": 780,
@ -6781,7 +6800,9 @@
"b943866ac0bfd44c",
"ece815da9a3e1dab",
"209e2b300932e1ce",
"1d8bf8108e8ed2cc"
"1d8bf8108e8ed2cc",
"51101010f440af18",
"83efec5c7865bc6b"
],
"x": 135,
"y": 780,
@ -7152,7 +7173,8 @@
"5c64177e3bbfd337",
"c13917bf46188642",
"30497b91559e19be",
"88c0a82bdddf789a"
"88c0a82bdddf789a",
"3520d6c943a27bd7"
],
"x": 2075,
"y": 600,

View file

@ -1210,7 +1210,7 @@
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stack",
"to": "metrics",
"tot": "global"
}
],
@ -1809,7 +1809,7 @@
"t": "set",
"p": "url",
"pt": "msg",
"to": "stack[msg.bucket]['air conditioner']url",
"to": "metrics[msg.bucket]['air conditioner']url",
"tot": "global"
},
{
@ -2894,7 +2894,7 @@
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stack[msg.bucket]thermostat['temperature setpoint']",
"to": "metrics[msg.bucket]thermostat['temperature setpoint']",
"tot": "global"
}
],

View file

@ -18,7 +18,8 @@
"node-red-node-base64": "0.3.0",
"node-red-contrib-alexa-remote2-applestrudel": "5.0.50",
"node-red-contrib-unifi": "0.3.15",
"node-red-contrib-telegrambot": "15.1.10"
"node-red-contrib-telegrambot": "15.1.10",
"@kuehnelbs/node-red-contrib-nextcloud": "0.1.3"
},
"node-red": {
"settings": {