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-FroniusSolar family modules

    Scheduled Pinned Locked Moved Utilities
    31 Posts 5 Posters 9.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.
    • C Offline
      chrisfr1976
      last edited by

      Hi,

      i was working the last days on a module to get rid of the last iframes on my mirror. These modules can all visualize solar energy data from a Fronius solar system using SVG magic :)

      • MMM-FroniusSolar: Best for simple setups prioritizing clarity and minimalism.
      • MMM-FroniusSolar2: Suitable for scenarios requiring visual feedback on power flows (e.g., monitoring dynamic energy consumption).
      • MMM-FroniusSolar3: Ideal for larger or customizable displays where scalability is important.

      If you do not have a FroniusPV but your system has an API it should be not much work to adjust the node_helper file.

      All in a column:
      MMM-FroniusSolar

      Regards, Chris.

      C 1 Reply Last reply Reply Quote 1
      • C Offline
        chrisfr1976 @chrisfr1976
        last edited by

        Hi,

        i found a small bug. At this moment you need to change your inverter-IP in the node_helper.js file.

        I‘ll fix this to a config entry this weekend.

        Regards, Chris.

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          chrisfr1976 @chrisfr1976
          last edited by

          Fixed. IP can now be defined in the config.js:

          InverterIP: "<yourInverterIP>",
          

          Regards, Chris.

          C 1 Reply Last reply Reply Quote 1
          • C Offline
            chrisfr1976 @chrisfr1976
            last edited by

            Hello,

            I’ve added a quite special module to the “family” which is exact what I need. Maybe someone else hat also a PV on the roof controlled by the Fronius inverter and in addition a mini-PV system measuring with a Shelly-device. I have exactly that case in my house :-)

            So, that’s it: MMM-FroniusSolar4

            Added Shelly device in the monitoring:

            MMM-FroniusSolar4

            There is a small flickering effect with the text labels. SVG doesn’t like text with icons inside that much. I have no more ideas how to fix this (I tried a lot). But it is not really annoying me.

            One hint: the label text must be modified in the js-file in this part of the code:

                    svg.appendChild(createGauge( "Grid", this.config.icons.P_Grid, "top", .............));
                    svg.appendChild(createGauge( "Akku", this.config.icons.P_Akku, "bottom", ................));
                    svg.appendChild(createGauge( "", this.config.icons.P_Load, "middle",..................));
            	svg.appendChild(createGauge( "PV Mini", this.config.icons.P_Shelly, "bottom", ...............));
            

            The "" is the house in the middle :)

            Regards, Chris.

            1 Reply Last reply Reply Quote 0
            • A Offline
              alfi153
              last edited by

              Hi. the module looks very good.
              I installed the Fronius3. But my mirror only shows loading. The ip is correct. On an other mirror I use energy monitor and this works.
              Any idea what I make wrong

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                chrisfr1976 @alfi153
                last edited by

                @alfi153
                Hello,
                the node_helper.js is the same for module 1,2 and 3. If one of them is not running there must be a config error. Maybe my mistake in the readme. Check what the console messages and/or pm2 logs tell and send me the result. I‘ll check parallel the documentation.

                Regards, Chris.

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  alfi153 @chrisfr1976
                  last edited by

                  @chrisfr1976
                  Hello.
                  On the other Mirror I use MMM-Fronius2 from deg0nz. These model get information from my Gen24. But your module shows: loading. Is there anything to change in the Gen24 settings

                  C 2 Replies Last reply Reply Quote 0
                  • C Offline
                    chrisfr1976 @alfi153
                    last edited by chrisfr1976

                    @alfi153 Hi, my module is working complete different. I don‘t know the other node_helper. The MMM-FroniusSolar 1-3 use the same node_helper. Version 4 is again different. For inverter settings nothing special is necessary. Is the ip configured corretly?

                    Which version do you try to use?

                    Chris.

                    Regards, Chris.

                    A 3 Replies Last reply Reply Quote 0
                    • A Offline
                      alfi153 @chrisfr1976
                      last edited by

                      @chrisfr1976
                      I try to use Version 3.
                      The ip is correct
                      i have activated the API on my Fronius Gen24
                      is it possible to get any Log file?

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        alfi153 @chrisfr1976
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          alfi153 @chrisfr1976
                          last edited by

                          @chrisfr1976
                          i fixed it
                          i had to install node-fetch

                          Thank you

                          C S 2 Replies Last reply Reply Quote 0
                          • C Offline
                            chrisfr1976 @alfi153
                            last edited by

                            @alfi153 Hi,
                            I think I’ve misunderstood this conversation a little bit.

                            • you’re using MMM-FroniusSolar3 from me (ChrisF1976 on GitHub).
                            • On your Fronius Symo GEN24 you activated the SolarApi.
                            • In the config.js you used the correct IP

                            I just started it on my mirror and it works without any problems. I also deleted it completely and reinstalled it with “git clone…”.

                            So the only reason I can imagine is, that there is a collision in the node_helper.js. I used only “SET_CONFIG” to data exchange. Maybe other modules use this, too. I had a lot of collisions already :-)

                            Go to the node_helper.js and replace:

                                socketNotificationReceived: function (notification, payload) {
                                    if (notification === "Solar3_SET_CONFIG") { //Solar3_ added to avoid collision with other modules
                            

                            Then go to the MMM-FroniusSolar3.js and replace:

                                start: function () {
                                    this.solarData = null;
                                    this.solarSOC = null;
                                    console.log("[MMM-FroniusSolar] Sending configuration to node_helper...");
                                    this.sendSocketNotification("Solar3_SET_CONFIG", this.config); // Send configuration to node_helper with more specific name
                                    this.scheduleUpdate();
                                },
                            

                            I this helps, please tell me. Then I’ll update it in general also for the other modules.

                            If it doesn’t help, please look into the logs (for example with pm2 log mm) and also in logs of electron (I think ctrl+I was the command). I’m running a separate instance on server mode with the port 8081 and a separate config2 to find those errors. I hope you can find the error!

                            Regards, Chris.

                            A 1 Reply Last reply Reply Quote 0
                            • C Offline
                              chrisfr1976 @alfi153
                              last edited by

                              @alfi153 Okay, there was a delay in your message. Glad to her that everything is okay now. If you need any assistance please let me know:)

                              Regards, Chris.

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

                                @alfi153 @chrisfr1976 the current versions of nodejs since 18 have fetch built in. if the module does

                                const fetch = require(‘node-fetch’)

                                you can comment out that line and the fetch syntax is the same

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @chrisfr1976 everyone with reputation below 2 has every post reviewed (by me) before going live. sometimes i sleep! or do other things. lol

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 1
                                  • A Offline
                                    alfi153 @chrisfr1976
                                    last edited by

                                    @chrisfr1976

                                    Hello Chris
                                    FYI.
                                    They remove node fetch from the magic mirror package on the last release as we drop back to the integrated fetch that’s provided in node and in the electron browser unfortunately that breaks a bunch of modules.

                                    Just remove the the line const fetch = require(“fetch”); in the file node-helper.js in the module’s directory.

                                    I Have removed the line, and now it works

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      waynerob11
                                      last edited by

                                      Tried to install 2 and 3 on an RPI 3B+ running 64
                                      bookworm - will not even load and throws a .js error - IP address configured and did copy and paste for the config.js - mm just stalls

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        chrisfr1976 @sdetweil
                                        last edited by

                                        @sdetweil
                                        Hi,

                                        I’ve updated the node _helper.js.

                                        //const fetch = require("node-fetch");
                                        

                                        If some has trouble it can be reactivated. Maybe I hab installed node_helper in the past manually. I don’t remember. Until now I had no errors from that. But yes, it woks well without this line.

                                        Regards, Chris.

                                        W 1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          chrisfr1976 @waynerob11
                                          last edited by

                                          @waynerob11
                                          Please send the error massage that you receive. I want to help you!

                                          Regards, Chris.

                                          1 Reply Last reply Reply Quote 0
                                          • W Offline
                                            waynerob11 @chrisfr1976
                                            last edited by

                                            @chrisfr1976

                                            Hi,
                                            Thanks for your response - I am attempting to install Fronius Solar 2 and have commented out the line in node-helper.js as advised in a previous post ( //const fetch = require(“node-fetch”);) and ran MM.

                                            It all loaded OK with no errors but it doesn’t show up on the dashboard, doesn’t even say loading. IP address is correct.

                                            Wayne

                                            C W 3 Replies 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
                                            • 1 / 2
                                            • 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