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-Hoymiles-Wifi

    Scheduled Pinned Locked Moved Development
    58 Posts 6 Posters 7.5k Views 5 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.
    • S Do not disturb
      sdetweil @Jose1701
      last edited by

      @Jose1701 he just wanted to see the IP address the module was connecting to , which is hard coded in that line

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • evroomE Online
        evroom @Jose1701
        last edited by evroom

        @Jose1701

        First of all, where I write

        /home/admin/
        

        please use

        ~/
        

        (tilde sign)

        And can you please send me:

        cd ~/MagicMirror/modules/MMM-Hoymiles-Wifi
        git branch
        git remote -v
        

        Every time you get that port in use error, run the long command to see what programs are using the port.
        And of course do not use HoymilesWifi.sh when it is also active under pm2.

        I am starting to wonder if the module works at all.
        I finally got a picture, but it showed an error in it.

        MagicMirror version: 2.33.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.33.0
        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        J 1 Reply Last reply Reply Quote 0
        • evroomE Online
          evroom @Jose1701
          last edited by

          @Jose1701

          You also might try this module:

          https://github.com/CuddlyCow/MMM-HoymilesPVMonitor

          I may give it a try myself.

          MagicMirror version: 2.33.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.33.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            Jose1701 @evroom
            last edited by

            @evroom

            * master
            origin  https://github.com/schris88/MMM-Hoymiles-Wifi (fetch)
            origin  https://github.com/schris88/MMM-Hoymiles-Wifi (push)
            
            

            I used the ~ symbol.

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jose1701 @evroom
              last edited by

              @evroom

              Well I tried that but I’m to silly to install it.

              florian@raspberrypi:~/MagicMirror/modules/MMM-Hoymiles-Wifi $ pip3 install hoymiles-wifi
              error: externally-managed-environment
              
              × This environment is externally managed
              ╰─> To install Python packages system-wide, try apt install
                  python3-xyz, where xyz is the package you are trying to
                  install.
              
                  If you wish to install a non-Debian-packaged Python package,
                  create a virtual environment using python3 -m venv path/to/venv.
                  Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
                  sure you have python3-full installed.
              
                  For more information visit http://rptl.io/venv
              
              note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
              hint: See PEP 668 for the detailed specification.
              
              
              florian@raspberrypi:~/MagicMirror/modules/MMM-Hoymiles-Wifi $ sudo apt install python3 hoymiles-wifi
              Error: Unable to locate package hoymiles-wifi
              florian@raspberrypi:~/MagicMirror/modules/MMM-Hoymiles-Wifi $
              
              
              
              evroomE 1 Reply Last reply Reply Quote 0
              • evroomE Online
                evroom @Jose1701
                last edited by

                @Jose1701

                You installed that already, so no need to install it again.
                Probably using:

                python -m pip install -r requirements.txt --break-system-packages
                

                The schris88 requirements.txt contains the hoymiles-wifi package.

                MagicMirror version: 2.33.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.33.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  Jose1701 @evroom
                  last edited by

                  @evroom

                  By unsing this, I get the following error:

                  python -m pip install -r requirements.txt --break-system-packages
                  
                  Defaulting to user installation because normal site-packages is not writeable
                  ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
                  
                  
                  evroomE 1 Reply Last reply Reply Quote 0
                  • evroomE Online
                    evroom @Jose1701
                    last edited by evroom

                    @Jose1701

                    >> You installed that already, so no need to install it again.
                    >>The schris88 requirements.txt contains the hoymiles-wifi package.
                    

                    If you want to repeat it under the new module name, then you will need to copy the requirements.txt file from the previous module.
                    But again, since you already did this, no need to repeat.

                    MagicMirror version: 2.33.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.33.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jose1701 @evroom
                      last edited by

                      @evroom

                      Okay. But in the end I can’t get it to work. Don’t know whats wrong …

                      Does this has to do with that:

                      florian@raspberrypi:~ $ pm2 restart MagicMirror
                      Use --update-env to update environment variables
                      [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
                      [PM2] [MagicMirror](0) ✓
                      ┌────┬─────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                      │ id │ name            │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
                      ├────┼─────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                      │ 1  │ HoymilesWifi    │ default     │ 2.33.0  │ fork    │ 3691100  │ 0      │ 367… │ stopped   │ 0%       │ 0b       │ florian  │ disabled │
                      │ 0  │ MagicMirror     │ default     │ 2.33.0  │ fork    │ 3691094  │ 0s     │ 3    │ online    │ 0%       │ 3.0mb    │ florian  │ enabled  │
                      └────┴─────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                      florian@raspberrypi:~ $
                      
                      
                      
                      
                      evroomE 1 Reply Last reply Reply Quote 0
                      • evroomE Online
                        evroom @Jose1701
                        last edited by

                        @Jose1701

                        Yeah, stopped is not good.
                        I will need to get it working myself before I can give more useful information on what to check.
                        Will keep you posted.

                        MagicMirror version: 2.33.0
                        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                        Raspbian GNU/Linux 12 (bookworm)

                        Test environment:
                        MagicMirror version: v2.33.0
                        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                        Raspbian GNU/Linux 12 (bookworm)

                        evroomE 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 6 / 6
                        • 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