Read the statement by Michael Teeuw here.
MMM-Hoymiles-Wifi
- 
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 - 
First I would disable the module:
$ vi ~/MagicMirror/config/config.js module: "MMM-Hoymiles-Wifi", disabled: true, $ pm2 restart MagicMirrorI build this command to try to get more info on port 5000:
$ for pid in `lsof -i :5000 | grep -v 'PID' | awk '{print $2}' | sort -u`; do echo $pid; ps -Flww -p $pid; doneHopefully the Forum tool does not change it.
Furthermore please verify and supply the following data:
$ cd /home/admin/MagicMirror/modules/MMM-Hoymiles-WifiCheck path:
$ which hoymiles-wifi $ echo $PATHCheck if the path is in the PATH.
If not, do (using the path from ‘which’):$ export PATH=$PATH:/home/admin/.local/binCheck config.js:
$ grep ':5000' ~/MagicMirror/config/config.jsExpected is:
{ src: 'http://127.0.0.1:5000' },Check HoymilesWifi.sh:
$ grep 'dtu_ip_address' HoymilesWifi.shExpected is your DTU IP address, for example:
python hoymiles_data.py --dtu_ip_address 192.168.178.50 --max 800Test run (hoymiles-wifi):
$ hoymiles-wifi --host 192.168.178.50 identify-invertersExpected is a response.
Test run (HoymilesWifi.sh)
$ ./HoymilesWifi.shExpected is:
* Serving Flask app 'hoymiles_data' * Debug mode: off INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000 INFO:werkzeug:Press CTRL+C to quitIf you wait a bit some more output is shown.
If it works, then I would suggest to stop the
./HoymilesWifi.shcommand and do:$ cd /home/admin/MagicMirror/modules/MMM-Hoymiles-Wifi $ pm2 start HoymilesWifi.sh $ pm2 save $ pm2 status HoymilesWifi $ pm2 logs HoymilesWifi --lines 10If everything is okay, the enable the module again:
$ vi ~/MagicMirror/config/config.js module: "MMM-Hoymiles-Wifi", disabled: false, $ pm2 restart MagicMirror - 
To be honest, for me the MM does not display anything.
Although it is dark, I still expected the graphic with 0 or so.
Or I have to wait a bit longer.I used
https://github.com/schris88/MMM-Hoymiles-Wifi/
and all the above is correct and running.A year ago I made a fork and made some changes, of which I think are present in the schris88 version as well.
https://github.com/evroom/MMM-Hoymiles-Wifi/
I will give this one a try when I have time.PS: it seems that when the microinverter is off-line, you will not see anything. Need to wait for it to be active again.
 - 
@evroom said in MMM-Hoymiles-Wifi:
$ grep ‘dtu_ip_address’ HoymilesWifi.sh
Until that line everything is ok. After that it says:
grep: HoymilesWifi.sh: No such file or directory - 
@evroom said in MMM-Hoymiles-Wifi:
$ hoymiles-wifi --host 192.168.178.50 identify-inverters
This works:
Identify-inverters Response: {'1412a015f1e3': 'HMS-800W/1000W-2T'}After that: ./HoymilesWifi.sh
* 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. - 
@Jose1701 typo
grep 'dtu_ip_address' Hoymiles-Wifi.sh - 
 - 
@Jose1701 he just wanted to see the IP address the module was connecting to , which is hard coded in that line
 - 
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 -vEvery 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. - 
You also might try this module:
https://github.com/CuddlyCow/MMM-HoymilesPVMonitor
I may give it a try myself.
 
