Skip to content

Instantly share code, notes, and snippets.

@juzam

juzam/README.md Secret

Last active November 1, 2016 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juzam/c07de4b113a9b0fa85657a6c10436649 to your computer and use it in GitHub Desktop.
Save juzam/c07de4b113a9b0fa85657a6c10436649 to your computer and use it in GitHub Desktop.
Fritz!Box Call Monitor

This is a simple flow that gets informations from Fritz!Box built-in Call Monitor and get them in node-red. Host is specified with the name fritz.box that resolves to the fritz!box router itself, or you can specify another ip address as you like.

Prerequisites

  • Enable built-in Call Monitor on your Fritz!Box by dialing #96*5*

This enables access to the built-in Call monitor that is exposed on tcp port 1012.

If you no longer need it, you can later disable the call monitor by dialing #96*4*

for further info and complete list of codes see: http://www.wehavemorefun.de/fritzbox/Tastencodes (link is in german)

[
{
"id": "4d6d479.784e4b8",
"type": "debug",
"z": "a2ac8504.92ff08",
"name": "",
"active": true,
"console": "false",
"complete": "payload",
"x": 1310,
"y": 720,
"wires": []
},
{
"id": "c36d144.8baade8",
"type": "template",
"z": "a2ac8504.92ff08",
"name": "Incoming",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "Incoming call from: {{payload.col4}}",
"x": 1140,
"y": 780,
"wires": [
[
"4d6d479.784e4b8",
"1631abff.b8d824"
]
]
},
{
"id": "905d4bf.64e80b8",
"type": "switch",
"z": "a2ac8504.92ff08",
"name": "",
"property": "payload.col2",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "RING",
"vt": "str"
},
{
"t": "eq",
"v": "DISCONNECT",
"vt": "str"
}
],
"checkall": "true",
"outputs": 2,
"x": 990,
"y": 800,
"wires": [
[
"c36d144.8baade8"
],
[]
]
},
{
"id": "bcba416f.0aba1",
"type": "csv",
"z": "a2ac8504.92ff08",
"name": "",
"sep": ";",
"hdrin": "",
"hdrout": "",
"multi": "one",
"ret": "\\n",
"temp": "",
"x": 870,
"y": 800,
"wires": [
[
"905d4bf.64e80b8"
]
]
},
{
"id": "513989a1.4de1d8",
"type": "tcp in",
"z": "a2ac8504.92ff08",
"name": "",
"server": "client",
"host": "fritz.box",
"port": "1012",
"datamode": "stream",
"datatype": "utf8",
"newline": "",
"topic": "",
"base64": false,
"x": 700,
"y": 800,
"wires": [
[
"bcba416f.0aba1"
]
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment