For other languages then german change the node "Verbindungen".
Last active
October 11, 2024 08:59
-
-
Save THWillert/8d5d537b922253daa120ac54f93157e1 to your computer and use it in GitHub Desktop.
FRITZ!Box-Anrufliste auf Dashboard anzeigen
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
[ | |
{ | |
"id": "9ca2ca58325ca842", | |
"type": "fritzbox-calllist", | |
"z": "0c5534b2855111cb", | |
"device": "f03426b3.54d268", | |
"name": "", | |
"action": "GetCallList", | |
"listurl": "NewCallListURL", | |
"max": "20", | |
"maxdays": "10", | |
"x": 390, | |
"y": 820, | |
"wires": [ | |
[ | |
"dfbc37090ac77f56" | |
] | |
] | |
}, | |
{ | |
"id": "d3771e7c558b8f99", | |
"type": "fritzbox-callmonitor", | |
"z": "0c5534b2855111cb", | |
"device": "f03426b3.54d268", | |
"name": "", | |
"topic": "", | |
"x": 180, | |
"y": 820, | |
"wires": [ | |
[ | |
"9ca2ca58325ca842" | |
] | |
] | |
}, | |
{ | |
"id": "f9d070aee8dcb620", | |
"type": "ui_table", | |
"z": "0c5534b2855111cb", | |
"group": "f69b06d2836bc7f4", | |
"name": "Anrufe", | |
"order": 1, | |
"width": 10, | |
"height": 8, | |
"columns": [], | |
"outputs": 0, | |
"x": 990, | |
"y": 800, | |
"wires": [] | |
}, | |
{ | |
"id": "dfbc37090ac77f56", | |
"type": "change", | |
"z": "0c5534b2855111cb", | |
"name": "", | |
"rules": [ | |
{ | |
"t": "move", | |
"p": "payload.Call", | |
"pt": "msg", | |
"to": "payload", | |
"tot": "msg" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 610, | |
"y": 820, | |
"wires": [ | |
[ | |
"2e4129c637fc5b69" | |
] | |
] | |
}, | |
{ | |
"id": "2e4129c637fc5b69", | |
"type": "function", | |
"z": "0c5534b2855111cb", | |
"name": "Verbindungen", | |
"func": "let incomming = []\nlet outgoing = []\n\nlet type = [\"\",\n \"Eingehend\",\n \"Abwesend\",\n \"Ausgehend\",\"\",\"\",\"\",\"\",\"\",\"\",\n \"Blockiert\"]\nlet pay\n\nfor (var i in msg.payload) {\n \n pay = msg.payload[i];\n \n if (pay.Type == \"1\" ||\n pay.Type == \"2\" ||\n pay.Type == \"10\") {\n \n let call = {\n \"Name\": pay.Name,\n \"Anrufer\": pay.Caller,\n \"Datum\": pay.Date,\n \"Dauer\": pay.Duration,\n \"Typ\" : type[pay.Type]\n }\n \n incomming.push( call )\n \n } else if (pay.Type == \"3\") {\n let call = {\n \"Name\": pay.Name,\n \"Anruf\": pay.Called,\n \"Datum\": pay.Date,\n \"Dauer\": pay.Duration\n }\n \n outgoing.push( call )\n }\n}\n\nvar msg1 = { payload: incomming };\nvar msg2 = { payload: outgoing };\n\nreturn [msg1, msg2];\n", | |
"outputs": 2, | |
"noerr": 0, | |
"initialize": "", | |
"finalize": "", | |
"libs": [], | |
"x": 820, | |
"y": 820, | |
"wires": [ | |
[ | |
"f9d070aee8dcb620" | |
], | |
[ | |
"5ba4f05fb792473e" | |
] | |
] | |
}, | |
{ | |
"id": "5ba4f05fb792473e", | |
"type": "ui_table", | |
"z": "0c5534b2855111cb", | |
"group": "7a0423889f8c5ec7", | |
"name": "Anrufe", | |
"order": 1, | |
"width": "8", | |
"height": 8, | |
"columns": [], | |
"outputs": 0, | |
"x": 990, | |
"y": 840, | |
"wires": [] | |
}, | |
{ | |
"id": "f03426b3.54d268", | |
"type": "fritzbox-config", | |
"name": "", | |
"host": "", | |
"port": "49000", | |
"ssl": false, | |
"user": "" | |
}, | |
{ | |
"id": "f69b06d2836bc7f4", | |
"type": "ui_group", | |
"name": "Anrufe kommend", | |
"tab": "ff9d0d0e.3c2878", | |
"order": 2, | |
"disp": true, | |
"width": "10", | |
"collapse": true, | |
"className": "" | |
}, | |
{ | |
"id": "7a0423889f8c5ec7", | |
"type": "ui_group", | |
"name": "Anrufe Ausgehend", | |
"tab": "ff9d0d0e.3c2878", | |
"order": 3, | |
"disp": true, | |
"width": "8", | |
"collapse": false, | |
"className": "" | |
}, | |
{ | |
"id": "ff9d0d0e.3c2878", | |
"type": "ui_tab", | |
"name": "Ereignisse", | |
"icon": "dashboard", | |
"order": 8, | |
"disabled": false, | |
"hidden": false | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In English, please :)