add telegram features

This commit is contained in:
JcDenis 2024-04-28 14:55:01 +02:00
parent b788fadfb8
commit d19e9b96a6
10 changed files with 3949 additions and 37 deletions

View file

@ -25,8 +25,9 @@ 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 Unifi and Amazon Alexa stuff.
It additionnaly uses some Telegram, Proxmox, Unifi 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
* [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

@ -300,7 +300,7 @@
"page": "90601eed5215748f",
"width": "6",
"height": "3",
"order": 6,
"order": 7,
"showTitle": true,
"className": "",
"visible": "true",
@ -313,7 +313,7 @@
"page": "90601eed5215748f",
"width": "6",
"height": "1",
"order": 5,
"order": 6,
"showTitle": true,
"className": "",
"visible": "true",
@ -487,7 +487,7 @@
"page": "90601eed5215748f",
"width": "6",
"height": "1",
"order": 7,
"order": 8,
"showTitle": true,
"className": "",
"visible": "true",
@ -788,10 +788,61 @@
"page": "90601eed5215748f",
"width": "6",
"height": "1",
"order": 5,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "8c93df4a796cf540",
"type": "telegram bot",
"botname": "JcDomRedBot",
"usernames": "JcDenis",
"chatids": "",
"baseapiurl": "",
"updatemode": "polling",
"pollinterval": "300",
"usesocks": false,
"sockshost": "",
"socksprotocol": "socks5",
"socksport": "6667",
"socksusername": "anonymous",
"sockspassword": "",
"bothost": "",
"botpath": "",
"localbotport": "8443",
"publicbotport": "8443",
"privatekey": "",
"certificate": "",
"useselfsignedcertificate": false,
"sslterminated": false,
"verboselogging": false
},
{
"id": "2f12363310c6c976",
"type": "ui-group",
"name": "Telegram",
"page": "90601eed5215748f",
"width": "6",
"height": "1",
"order": 4,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "cc1a5079eaac4639",
"type": "ui-group",
"name": "Telegram",
"page": "8e909fed7a35e981",
"width": "6",
"height": "1",
"order": 5,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
}
]

File diff suppressed because one or more lines are too long

View file

@ -2,7 +2,7 @@
{
"id": "29b296e6cd0e71d4",
"type": "tab",
"label": "P.Alexa",
"label": "A.Alexa",
"disabled": false,
"info": "",
"env": []

3847
flows/A.Telegram.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
{
"id": "bcb1eeac454a68aa",
"type": "tab",
"label": "P.Unifi",
"label": "A.Unifi",
"disabled": false,
"info": "",
"env": []

View file

@ -2805,7 +2805,9 @@
"g": "a762a7a552cb9f03",
"name": "kernel - cron midday",
"mode": "link",
"links": [],
"links": [
"34a350a168b2e745"
],
"x": 365,
"y": 2760,
"wires": []
@ -5807,7 +5809,8 @@
"5b890ebe6c97c558",
"5e1f61b100dc5e9f",
"40fba6c8db067ba4",
"e5af9cdb8ad1782f"
"e5af9cdb8ad1782f",
"9d534295bf79c9ea"
],
"x": 5195,
"y": 1260,
@ -5849,7 +5852,9 @@
"d5cdd8f60040d125",
"e01b2ed76f5813e5",
"981daf7e528f93a4",
"76bd8af6b6128264"
"76bd8af6b6128264",
"ec965b4258cf0125",
"930ec55bdd15ae80"
],
"x": 135,
"y": 1260,
@ -6509,7 +6514,8 @@
"be2acafce4c2c74d",
"1d8f71c67df6cec9",
"af3082ef59725979",
"8f3269222142f0f4"
"8f3269222142f0f4",
"ba0f26a893bbaac2"
],
"x": 995,
"y": 1020,
@ -6750,7 +6756,8 @@
"7a340e512e7cec9a",
"775013411d26e549",
"12ee535e8df383e4",
"baa85c145ba7e3cd"
"baa85c145ba7e3cd",
"d301485b0e0dced0"
],
"x": 1315,
"y": 780,
@ -6773,7 +6780,8 @@
"c726ae1ce799b0e5",
"b943866ac0bfd44c",
"ece815da9a3e1dab",
"209e2b300932e1ce"
"209e2b300932e1ce",
"1d8bf8108e8ed2cc"
],
"x": 135,
"y": 780,
@ -7143,7 +7151,8 @@
"5d277429bd835728",
"5c64177e3bbfd337",
"c13917bf46188642",
"30497b91559e19be"
"30497b91559e19be",
"88c0a82bdddf789a"
],
"x": 2075,
"y": 600,

View file

@ -88,6 +88,26 @@
"w": 3504,
"h": 494
},
{
"id": "df46e2504e16fc3e",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - ui - chart (customized to my needs)",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"04de52a5f5237233",
"84416ebc7a349dd4",
"638b6d92fcb75ad5"
],
"x": 68,
"y": 713,
"w": 644,
"h": 374
},
{
"id": "f36ad9add0dea84a",
"type": "group",
@ -189,26 +209,6 @@
"w": 1372,
"h": 322
},
{
"id": "df46e2504e16fc3e",
"type": "group",
"z": "e19f53e3dc7ab928",
"name": "home - ui - chart (customized to my needs)",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"04de52a5f5237233",
"84416ebc7a349dd4",
"638b6d92fcb75ad5"
],
"x": 68,
"y": 713,
"w": 644,
"h": 374
},
{
"id": "04de52a5f5237233",
"type": "group",
@ -433,7 +433,8 @@
"g": "c76679b82b664526",
"name": "home - ui - notification",
"links": [
"1ff5fd68e1799ae5"
"1ff5fd68e1799ae5",
"057cd27350be1d0e"
],
"x": 1095,
"y": 60,

View file

@ -7947,7 +7947,9 @@
"g": "c761b34cfb83bf7b",
"name": "system - scene- cpu usage - telegram",
"mode": "link",
"links": [],
"links": [
"923d4072d9fd4b7f"
],
"x": 1535,
"y": 4460,
"wires": []

View file

@ -17,7 +17,8 @@
"node-red-contrib-credentials": "0.2.3",
"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-unifi": "0.3.15",
"node-red-contrib-telegrambot": "15.1.10"
},
"node-red": {
"settings": {