MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-FRITZ-Box-Callmonitor-py3 and MMM-Callmonitor-Current-Call

    Scheduled Pinned Locked Moved Utilities
    47 Posts 3 Posters 8.4k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X Offline
      xIExodusIx @rkorell
      last edited by

      @rkorell

      I have almost 2 hours googled for the right name of the function for the blocked calls, but did not find anythig about that.
      And I found some smaller errors in the funktion of the module. E.g. it should delete the alert (the big popup on the gui of the MM when a call comes in) when I answer this call. But that does not work.
      This should do the job in the "MMM-FRITZ-Box-Callmonitor-py3:
      if (notification === “connected”) {
      //Send notification for currentCall module
      this.sendNotification(“CALL_CONNECTED”, payload);

      		//Remove alert only on connect if it is the current alert shown
      		if (this.activeAlert === payload) {
      			//Remove alert from UI when call is connected
      			this.sendNotification("HIDE_ALERT");
      			this.activeAlert = null;
      		}
      	}
      

      but it dosn’t work.

      As I already said: I can’t code :-(

      Regards,
      Carsten

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        rkorell @xIExodusIx
        last edited by

        @xIExodusIx Yes, I identified this “bug” as well and couldn’t find the mistake…
        As I mentioned - I couldn’t code (this) as well …

        Regards,
        Ralf

        X 1 Reply Last reply Reply Quote 0
        • X Offline
          xIExodusIx @rkorell
          last edited by

          @rkorell

          I think it is something with the syntax, maybe it has changed somehow in python3, or a wrong set “,” or “;” so the modulescript could not run correct, but it is enough to let the module almost run as expected.
          For that I have not enough experience to figure that out.

          Would be nice if there were the possebility of a testing enviroment for MS-Windows, so that I could test the scripts. For editing I could use VS-Code.

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            rkorell @xIExodusIx
            last edited by

            @xIExodusIx said in MMM-FRITZ-Box-Callmonitor-py3 and MMM-Callmonitor-Current-Call:

            testing enviroment for MS-Windows,

            For Python you can use this …

            Regards,
            Ralf

            X 1 Reply Last reply Reply Quote 0
            • X Offline
              xIExodusIx @rkorell
              last edited by

              @rkorell

              Hi Ralf,
              I found out that the correct entry for handle “blocked calls” is “10”, not “4”, I found that on “https://fritzconnection.readthedocs.io/en/1.14.0/sources/library_modules.html”
              Slowly I understand how the module works and what the entire entries do, but without understandig the syntax and how to code. I will not come further.

              Regards
              Carsten

              R 1 Reply Last reply Reply Quote 1
              • R Offline
                rkorell @xIExodusIx
                last edited by

                @xIExodusIx
                Dear Carsten,

                quick question: For several reasons yesterday I had checked the log files during startup of my MagicMirror.

                Unfortunately there is an error related to your pimped module:

                [ERROR] ERROR! Could not find main module js file for MMM-FRITZ-Box-Callmonitor-py3_drtorchwood
                

                The module works (!?) but may there is something that don’t work?

                Is there a submodule which is not loaded to git?

                Thanks for any hint!

                X 1 Reply Last reply Reply Quote 0
                • X Offline
                  xIExodusIx @rkorell
                  last edited by xIExodusIx

                  @rkorell said in MMM-FRITZ-Box-Callmonitor-py3 and MMM-Callmonitor-Current-Call:

                  MMM-FRITZ-Box-Callmonitor-py3

                  Hi Ralf,
                  I have searched all my log-files in “.pm2/logs/” for that string, but I didn’t find anything related to that error. I don’t have this error in my pm2 log-files.
                  Are there more log-files I can check, if so where can I find them?
                  I’m sure you have checked your MagicMirror/config/config.js if there is a type missmatch.

                  Reguards
                  Carrsten

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    rkorell @xIExodusIx
                    last edited by

                    @xIExodusIx It’s in the PM2 logs, yes.
                    I guess you have some code parked in an additional file “py3_drtorchwood” which is present on your system but not on mine …
                    especially drtorchwood isn’t present on my system at all.
                    Will dig into code lateron …
                    Thanks for your double check.

                    Regards,
                    Ralf

                    X 1 Reply Last reply Reply Quote 0
                    • X Offline
                      xIExodusIx @rkorell
                      last edited by

                      @rkorell

                      Hi Ralf,
                      sorry it took a while to answer, what I did until now is:
                      I updated python on my raspberry pi 4 bookworm 64bit, to python 3.13.2 and I overworked the module MMM-FRITZ-Box Callmonitor-py3, it now handles almost all unwanted (blocked) calls, that are in your FritzBox callist for blocked calls, and shows them in the callist on your MM2.
                      But it can’t handle blocked numbers that are in the “area list”, that means numbers that begins with e.g. 0031* (+31*) all numbers from, in this example, Netherlands, they appear as “SIP:ownnumber” with a red X in the callist of your MM2. I can’t find out how to fetch the whole correct number that ist displayed in the FritzBox gui under incomming calls.
                      And I can’t find out how to let the alert “Incomming Call” disappear for that blocked calls.
                      Everything else should work as expected, for me it does.

                      Regards,
                      Carsten

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        rkorell @xIExodusIx
                        last edited by

                        @xIExodusIx
                        Carsten, as you stated, you cannot code - than this is really awsome!!!
                        Congratulations.
                        Did you maanage as well to let the message box disappear whan call is in progress?

                        Do you have pushed your modified code to github?

                        To my last posting: In fact there is NO occurance of “py3_drtorchwood” in ANY of my files …
                        So I will simply ignore the error message.

                        Warmest regards and chapeau !!!

                        Ralf

                        X 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 4 / 5
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy