@Jose1701
First I would disable the module:
$ vi ~/MagicMirror/config/config.js
module: "MMM-Hoymiles-Wifi",
disabled: true,
$ pm2 restart MagicMirror
I 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; done
Hopefully the Forum tool does not change it.
Furthermore please verify and supply the following data:
$ cd /home/admin/MagicMirror/modules/MMM-Hoymiles-Wifi
Check path:
$ which hoymiles-wifi
$ echo $PATH
Check if the path is in the PATH.
If not, do (using the path from ‘which’):
$ export PATH=$PATH:/home/admin/.local/bin
Check config.js:
$ grep ':5000' ~/MagicMirror/config/config.js
Expected is:
{ src: 'http://127.0.0.1:5000' },
Check HoymilesWifi.sh:
$ grep 'dtu_ip_address' HoymilesWifi.sh
Expected is your DTU IP address, for example:
python hoymiles_data.py --dtu_ip_address 192.168.178.50 --max 800
Test run (hoymiles-wifi):
$ hoymiles-wifi --host 192.168.178.50 identify-inverters
Expected is a response.
Test run (HoymilesWifi.sh)
$ ./HoymilesWifi.sh
Expected 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 quit
If you wait a bit some more output is shown.
If it works, then I would suggest to stop the ./HoymilesWifi.sh command and do:
$ cd /home/admin/MagicMirror/modules/MMM-Hoymiles-Wifi
$ pm2 start HoymilesWifi.sh
$ pm2 save
$ pm2 status HoymilesWifi
$ pm2 logs HoymilesWifi --lines 10
If everything is okay, the enable the module again:
$ vi ~/MagicMirror/config/config.js
module: "MMM-Hoymiles-Wifi",
disabled: false,
$ pm2 restart MagicMirror