Read the statement by Michael Teeuw here.
MMM-FroniusSolar family modules
-
@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 -
@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.
-
@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? -
This post is deleted! -
@chrisfr1976
i fixed it
i had to install node-fetchThank you
-
@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! -
@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:)
-
@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
-
@chrisfr1976 everyone with reputation below 2 has every post reviewed (by me) before going live. sometimes i sleep! or do other things. lol
-
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