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

    Scheduled Pinned Locked Moved Troubleshooting
    99 Posts 27 Posters 117.7k Views 26 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.
    • R Offline
      requiemmg @ShadowMG
      last edited by

      @shadowmg
      Just did a fresh install today. Installed MMM-FRRITZ-Box-Callmonitor, did npm install and installed fritzconnection.
      Also installed fritzconnection.

      pi@smartmirror:~/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor $ fritzconnection
      
      fritzconnection v1.8.0
      FRITZ!Box 6591 Cable at http://169.254.1.1
      FRITZ!OS: 7.29
      

      But when I use

      python fritz_access.py -u user -p pass -i 192.168.0.1
      

      i get

      Traceback (most recent call last):
        File "fritz_access.py", line 1, in <module>
          import argparse, os, fritzconnection, urllib2, sys, json
      ImportError: No module named fritzconnection
      

      Any idea on how to fix this? @paviro @sdetweil?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @requiemmg
        last edited by

        @requiemmg u need the python library for fritzconnection, whatever that is. separate install

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          requiemmg @sdetweil
          last edited by

          @sdetweil Thanks, yes, this has been installed with sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev && sudo pip install fritzconnection as stated on the plugins’ page (https://github.com/paviro/MMM-FRITZ-Box-Callmonitor) and https://pypi.org/project/fritzconnection/

          And as stated above: When I call fritzconnection from shell, it works. But when I call the script used by the plugin, it fails on the import of the library and I have no idea why.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @requiemmg
            last edited by sdetweil

            @requiemmg said in MMM-FRITZ-Box-Callmonitor:

            But when I call the script used by the plugin

            typically this fails cause the python ‘virtual environment’ is not setup correctly

            https://www.tutorialspoint.com/python/python_environment.htm

            usually that means the shell started from code (not UI) startup script (usually ~/.bashrc, for bash ) doesn’t set the PATH correctly

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              requiemmg @sdetweil
              last edited by

              @sdetweil Tried to fix this with
              export PATH=“$PATH:/usr/local/bin/fritzconnection”

              and
              export PATH=“$PATH:/usr/local/bin/python”

              to no avail…error stays the same

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @requiemmg
                last edited by

                @requiemmg where?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • R Offline
                  requiemmg
                  last edited by

                  from where I executed this command? from the modules’ directory.

                  The module is working if I use the .vcf method. But not if I want to log in via the module to fetch the latest calls.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @requiemmg
                    last edited by

                    @requiemmg said in MMM-FRITZ-Box-Callmonitor:

                    But not if I want to log in via the module

                    i don’t know what that means, but I assume that the module will exec or spawn the script somehow

                    and THAT is where the path needs to be set , at the time of exec/spawn

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      requiemmg @sdetweil
                      last edited by

                      @sdetweil When I put it in the script in the first line, it will thow an invalid syntax error. Sorry, I guess I have to stick with the current functionality, I have no programming skills.
                      Thanks for your help.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @requiemmg
                        last edited by sdetweil

                        @requiemmg no… it would be in the module code that launches the script

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          requiemmg @sdetweil
                          last edited by

                          @sdetweil Thanks. That’s way beyond my abilities.

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1
                          • 2
                          • 3
                          • 4
                          • 5
                          • 5 / 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