Dummy to see Fritzbox call log

Moderator: leecollings

Post Reply
naitsirhc
Posts: 44
Joined: Sunday 17 January 2016 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dummy to see Fritzbox call log

Post by naitsirhc »

Hi,

My question is as simple as the title should cover.
Is there a way to create a dummy switch (text) which can show the Fritzbox call monitor log? It should be great to implement such a thing in domoticz.
I have already the device implemented, but before you can see the call log, you should push the log button.
I would like to see the log at once. (It also can be expressed in Dashticz ;) )

Kind regards
Und Tschjuß
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Dummy to see Fritzbox call log

Post by ben53252642 »

You can already display HTML within Domoticz text devices, I do this to show the currently playing internet radio station.

Write a PHP script that gets the call log, formats it and outputs it as HTML for the text device.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Dummy to see Fritzbox call log

Post by felix63 »

Did you have a look at https://www.domoticz.com/wiki/Fritzbox? This will create two devices. One switch that goes on when receiving a call and another text switch showing the last line in the call log.

Very simple and very reliable.
naitsirhc
Posts: 44
Joined: Sunday 17 January 2016 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dummy to see Fritzbox call log

Post by naitsirhc »

@Felix
You only see ID and time, but you don't see the number.

@ben
Unfortunately I don't know how to program in PHP...

So this is a bridge to far, for now....but I will keep trying
Thanks all....
Und Tschjuß
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Dummy to see Fritzbox call log

Post by felix63 »

Hi naitsirhc,

if I look at the history of the log field that is generated by the fritzbox plugin I see the following entries:

2019-11-01 20:00:58 Disconnect ID: 0 Duration: 39 seconds
2019-11-01 20:00:20 Connected ID: 0 Number: 3161xxxxxxx
2019-11-01 20:00:08 Received From: 3161xxxxxxx to: 018xxxxxxx
2019-11-01 13:19:13 Disconnect ID: 0 Duration: 5 seconds
2019-11-01 13:19:09 Connected ID: 0 Number:
2019-11-01 13:18:54 Received From: to: 018xxxxxxx

So in my configuration I am getting number information pushed to domoticz...

Cheers,
Lex
naitsirhc
Posts: 44
Joined: Sunday 17 January 2016 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dummy to see Fritzbox call log

Post by naitsirhc »

Hi Lex,

you're right. I also see the numbers, but I have to push the log button first. I don't know how to push it to domoticz (or dummy with a certain IDX), so I can present it in Dashticz
fritz.JPG
fritz.JPG (25.54 KiB) Viewed 649 times
My button shows:
fritz2.JPG
fritz2.JPG (12.97 KiB) Viewed 648 times
Und Tschjuß
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest