• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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: Notification formatting

Scheduled Pinned Locked Moved Unsolved Troubleshooting
31 Posts 7 Posters 12.9k Views 7 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
    rabbit83ka @xIExodusIx
    last edited by Jul 4, 2024, 8:58 PM

    @xIExodusIx that’s due to changes in the handling of the python packages. I installed “fritzconnection” in a virtual environment:

    python -m venv venv
    
    source venv/bin/activate
    
    python -m pip install fritzconnection
    

    to make the Callmonitor use the fritzconnection, I edited the nodehelper.js (in ~/MagicMirror/modules/MMM-FritzBox-Callmonitor-py3) in line 212 to look like this (user is “pi”, must be adapted if you use another user):

    pythonPath: '/home/pi/venv/bin/python',
    

    Don’t know if it’s the best solution, but it works.

    S 1 Reply Last reply Jul 4, 2024, 9:20 PM Reply Quote 0
    • S Offline
      sdetweil @rabbit83ka
      last edited by Jul 4, 2024, 9:20 PM

      @rabbit83ka you can set the venv in the mm.sh that starts MagicMirror

      then you don’t need to do that

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Jul 6, 2024, 3:47 PM Reply Quote 0
      • R Offline
        rabbit83ka @sdetweil
        last edited by Jul 6, 2024, 3:47 PM

        @sdetweil Thanks, so it should look like this?

        #!/bin/bash
        # This file is still here to keep PM2 working on older installations.
        cd ~/MagicMirror
        export PYTHONPATH="/home/pi/venv/bin/python"
        DISPLAY=:0 npm start
        
        S 1 Reply Last reply Jul 6, 2024, 4:05 PM Reply Quote 0
        • S Offline
          sdetweil @rabbit83ka
          last edited by sdetweil Jul 6, 2024, 4:06 PM Jul 6, 2024, 4:05 PM

          @rabbit83ka no, execute the venv command to set the virtual environment in place of the export

          the same venv command you did before running pip

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Jul 7, 2024, 8:11 AM Reply Quote 0
          • R Offline
            rabbit83ka @sdetweil
            last edited by Jul 7, 2024, 8:11 AM

            @sdetweil I used your script

            fixuppm2.sh
            

            when I set up the mirror
            Now I modified ~/MagicMirror/installers/mm.sh to

            #!/bin/bash
            # This file is still here to keep PM2 working on older installations.
            cd ~/MagicMirror
            source venv/bin/activate
            DISPLAY=:0 npm start
            

            but that doesn’t work, error occures again because node_helper doesn’t seem to use the venv.

            S 1 Reply Last reply Jul 7, 2024, 1:41 PM Reply Quote 0
            • S Offline
              sdetweil @rabbit83ka
              last edited by sdetweil Jul 7, 2024, 1:54 PM Jul 7, 2024, 1:41 PM

              @rabbit83ka when I look at my .bashrc whichs sets up the default venv on shell open
              I see

              # Virtual Environment Wrapper
              source /usr/local/bin/virtualenvwrapper.sh
              PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
              export PKG_CONFIG_PATH
              cd ~
              

              this topic seems applicable
              https://unix.stackexchange.com/questions/87062/how-to-display-the-name-of-the-current-virtualenv

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Jul 7, 2024, 2:06 PM Reply Quote 0
              • S Offline
                sdetweil @sdetweil
                last edited by Jul 7, 2024, 2:06 PM

                @rabbit83ka I also see this for background

                https://arshovon.com/blog/python-background/

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 3
                • 4
                • 3 / 4
                3 / 4
                • First post
                  29/31
                  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