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
    45 Posts 6 Posters 4.9k 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 Offline
      schris88 @evroom
      last edited by

      @evroom That sounds good, but we should loop through the pv_data objects and display each as a graph. In the end, there could be a config setting like detailed: true to activate the display of all pv_data objects as individual graphs. If set to false, we could display a single graph with the total power.

      There are Hoymiles inverters with 6 inputs, and adding 6 × 6 to 8 variables can quickly add up. This might not be an issue for us, but it’s worth considering if the module should be as generic as possible.

      Sorry I´m a IT-Consultant who, sometimes it breaks through :D

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

        @schris88 Recently worked on it a bit and added a second branch with local mongodb to save and display max power, Im planning to use the db entries to display a history chart

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

          Hallo,
          ich bin reltiv neu hier und versuche gerade das modul zu installieren.

          Ich habe soweit alles nach Anleitung gemacht, aber wenn ich ./HoymilesWifi.sh starte kommt immer folgende Meldung:

           * Serving Flask app 'hoymiles_data'
           * Debug mode: off
          Address already in use
          Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
          
          

          Was mache ich falsch? Der port ist angeblich durch pthon belegt …

          Danke und Grüße

          Florian

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

            @Jose1701

            Try this to find out what is using port 5000:

            sudo netstat -apln | grep -w 5000
            

            And did you update the bash program?
            https://github.com/schris88/MMM-Hoymiles-Wifi?tab=readme-ov-file#enter-dtu-ip-address-of-dtu

            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.31.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
              Thanks for the quick answer.

              I inserted the IP of the dtu.

              Portscan is:

              tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      64879/python
              tcp        0      0 127.0.0.1:33698         127.0.0.1:5000          TIME_WAIT   -
              tcp        0      0 127.0.0.1:5000          127.0.0.1:56374         TIME_WAIT   -
              tcp        0      0 127.0.0.1:60100         127.0.0.1:5000          ESTABLISHED 71440/exe
              tcp        0      0 127.0.0.1:5000          127.0.0.1:60100         ESTABLISHED 64879/python
              tcp        0      0 127.0.0.1:52508         127.0.0.1:5000          TIME_WAIT   -
              tcp        0      0 127.0.0.1:50296         127.0.0.1:5000          TIME_WAIT   -
              
              
              evroomE 1 Reply Last reply Reply Quote 0
              • evroomE Offline
                evroom @Jose1701
                last edited by

                @Jose1701

                This command should give more information on the PID found:

                ps -Flww -p

                E.g.

                ps -Flww -p 64879

                Perhaps there are easier ways, but this should do.

                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.31.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

                  Seems that this is hoymiles …?

                  F S UID          PID    PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY          TIME CMD
                  0 S florian    64879   64878  1  80   0 - 59630 do_sys 137520  1 16:11 ?        00:05:02 python hoymiles_data.py --dtu_ip_address 192.168.178.150 --max 800
                  
                  
                  evroomE 1 Reply Last reply Reply Quote 0
                  • evroomE Offline
                    evroom @Jose1701
                    last edited by evroom

                    @Jose1701

                    Yes, so an instance is already running.
                    You added it to pm2 too?

                    pm2 status

                    If yes, then you do not need to run it manually.
                    If no, then kill the (p)pid.

                    sudo kill -9 [ppid]

                    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.31.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

                      Well, I’ve done that now. At the moment it is night so I can’t see any output.
                      Will see if it works tomorrow …

                      Thank you. I will post if it runs then.

                      J evroomE 2 Replies Last reply Reply Quote 0
                      • J Offline
                        Jose1701 @Jose1701
                        last edited by

                        Can’t get it to work.

                        I don’t know what I’m doing wrong…

                        Now, Portscan ist about that:

                        
                        tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      1139/python
                        tcp        0      0 127.0.0.1:5000          127.0.0.1:37002         ESTABLISHED 1139/python
                        tcp        0      0 127.0.0.1:57592         127.0.0.1:5000          TIME_WAIT   -
                        tcp        0      0 127.0.0.1:37002         127.0.0.1:5000          ESTABLISHED 6097/exe
                        
                        
                        evroomE 1 Reply 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