Page 1 of 1

Dummy to see Fritzbox call log

Posted: Thursday 31 October 2019 22:14
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

Re: Dummy to see Fritzbox call log

Posted: Friday 01 November 2019 6:02
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.

Re: Dummy to see Fritzbox call log

Posted: Friday 01 November 2019 10:24
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.

Re: Dummy to see Fritzbox call log

Posted: Saturday 02 November 2019 13:05
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....

Re: Dummy to see Fritzbox call log

Posted: Sunday 03 November 2019 17:37
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

Re: Dummy to see Fritzbox call log

Posted: Monday 04 November 2019 20:18
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 652 times
My button shows:
fritz2.JPG
fritz2.JPG (12.97 KiB) Viewed 651 times