We have moved at community.getvera.com

Author Topic: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2  (Read 13875 times)

Offline Henk

  • Hero Member
  • *****
  • Posts: 820
  • Karma: +3/-0
Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
« Reply #15 on: May 30, 2011, 04:00:53 pm »
Quote
Request:

1. Is it possible to have FCM store/show the last lets say 3 calling/called numbers and show the last event on FCM?
Standard i get a DISCONNECt (0s) in my display now, maybe its possible to show the event just before that (eg last incoming and/or last outgoing call).

2. Is it possible (for instance with ISDN MSN's) to distinguish between number called?
Now FCM allows to trigger only on incoming number or dialed number.
It would be nice to trigger a scene where number 12345 is calling msn 54321. Should be possible, the FCM monitor shows the info....

I'll leave FCM as basic as it is. Please use my forward_incoming_call_via_email example for more complex scenarios (e.g., replace SendMail with RunScene).

The list of calls is available from your FRITZ!Box:
http://www.wehavemorefun.de/fritzbox/index.php/Anrufliste_von_der_Box_holen

@Ap15e
Ok i can understand that.
Using more variabkes with the cide you posted should work too.
Currently im using luup code in the event to push messages over prowl.
Works great. Only looking for a variable to have Vera send me the timestamp in the messagebody.

When i find time ill play around with your examples to create more complex queries for notifications.

Thanks for all your effort so far, its appreciated!
| Vera2 @ UI4 1.1.1350 / 3.20 | Vera Lite @ UI5 | Vera 3 @ UI5 | 2x Merten  504519 | 1x Duewi  064374 | 1x Everspring SM103 doorbell mod |1 Y-cam IP cam | various LUUP plugins |

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
« Reply #16 on: May 30, 2011, 06:12:08 pm »
And here comes a version with reverse phone number lookup for Germany (adjust the device IDs and dial_prefix accordingly):

Code: [Select]
luup.variable_watch( 'forward_incoming_call_via_email', 'urn:upnp-ap15e-com:serviceId:FCM1', 'Message', 26 )

function forward_incoming_call_via_email()

 local dial_prefix = '030' -- Berlin

 local msg = luup.variable_get(  'urn:upnp-ap15e-com:serviceId:FCM1', 'Message'    , 26 )
 local src = luup.variable_get(  'urn:upnp-ap15e-com:serviceId:FCM1', 'CallSource' , 26 )

 if string.find( msg or '', 'RING' ) ~= nil
  then

   if string.find( src or '', '0' ) ~= 1
    then
     src = dial_prefix .. tostring( src )
    end

   local ret, res = luup.inet.wget( 'http://www.dasoertliche.de/Controller?form_name=search_inv&js=no&ph=' .. src, 5 )

   local name = string.match( res or '', 'onclick="logDetail%(%)">(.-) ') or 'unknown'

   luup.call_action( "urn:upnp-ap15e-com:serviceId:SND1", "SendMail", { subject = msg .. ' / ' .. name, body = '' }, 25 )

  end

end

Untested, but should work.
« Last Edit: May 30, 2011, 06:21:48 pm by Ap15e »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
« Reply #17 on: February 02, 2012, 07:46:36 pm »
Please upgrade to FCM V0.2.

FCM V0.2 adds compatibility for UI5, provides new Luup events (call state, duration of last call) and removes 'duration of last call' from the UI4 dashboard.

Offline fs

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
« Reply #18 on: November 05, 2012, 01:00:36 pm »
Hello,

i'm new to this forum - i just orderd a vera 3.
while i'm still waiting for it to arrive i started looking for usefull plugins.
fritz!box call monitor is something i'd like to have, but i have no access to the googledoc link.
i see that it's no longer supported - can anybody provide the plugin anyway?


thank you
fs

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
« Reply #19 on: November 05, 2012, 04:16:40 pm »
Hello,

i'm new to this forum - i just orderd a vera 3.
while i'm still waiting for it to arrive i started looking for usefull plugins.
fritz!box call monitor is something i'd like to have, but i have no access to the googledoc link.
i see that it's no longer supported - can anybody provide the plugin anyway?


thank you
fs

Sorry we can't. The creator of the plugin has left the forum and removed the plugin for use. We will respect the user's wishes and not distribute the plugin.

P. S. Welcome to the forum.

- Garrett


Offline hek

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 714
  • Karma: +60/-1
Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
« Reply #20 on: November 16, 2012, 01:16:32 pm »
@garrettwp. Do you know any way I can contact Ap15e? Really would like to continue the work on the FritzBox plugin.

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
« Reply #21 on: November 16, 2012, 02:20:08 pm »
@Ap15e does appear to monitor the forum, so chances are @Ap15e will see your post.
Dezwaved at the moment...