Read the statement by Michael Teeuw here.
MMM-Hoymiles-Wifi
-
Hi, question,
do you live somewhere sunny ?
Could you try the run this and share the output ?
hoymiles-wifi --host 192.168.178.114 get-real-data-new
You’ll need to change the IP to the IP of your DTU.
E.J.
-
@sdetweil said in MMM-Hoymiles-Wifi:
i bet the config is already passed to the node helper which execs the python script.
Actually the python script is being executed via a shell script (in order to make it running using pm2).
I do not see anything in thenode_helper.js
file.This is mainly due to the fact that the developer of the module used
MMM-HTMLSnippet
as basis and concentrated more on the data that he wanted to display.The challenge is now to have everything running inside the module, without this ‘external’ stuff.
As all modules tend to do. -
@evroom see my pythonPrint module for how to execute a python script
https://github.com/sdetweil/MMM-PythonPrint
you can also exec a shell script tooand launch pm2 to start/stop that shell script
-
@evroom said in MMM-Hoymiles-Wifi:
@sdetweil said in MMM-Hoymiles-Wifi:
i bet the config is already passed to the node helper which execs the python script.
Actually the python script is being executed via a shell script (in order to make it running using pm2).
I do not see anything in thenode_helper.js
file.This is mainly due to the fact that the developer of the module used
MMM-HTMLSnippet
as basis and concentrated more on the data that he wanted to display.The challenge is now to have everything running inside the module, without this ‘external’ stuff.
As all modules tend to do.This is true, it´s a hacked proof of concept, nothing to be proud of at the moment :D
Not sure how much time I have for it till end of year, I can grant write access to anyone who´s willing to help.
-
@schris88 said in MMM-Hoymiles-Wifi:
This is true, it´s a hacked proof of concept, nothing to be proud of at the moment :D
Not sure how much time I have for it till end of year, I can grant write access to anyone who´s willing to help.
Not to worry. You sparked an idea.
I have some modifications ready (I forked it), but fighting with github to get it synced (github wants to delete all my modifications when I try).
Perhaps granting me access (evroom) wil make it easier.
Although it is not really the way to use github, I guess.E.J.
-
you fork
clone fork //git clone
make new branch // git checkout -b nane
make code changes
// this part multiple times
add to files to commit // git add filename
git commit
git push // to add to github fork
//on github go to original repo source
create pull request // for origin to pull changes from your forkif subsequent push to same branch, PR will be updated automatically
-
@sdetweil said in MMM-Hoymiles-Wifi:
git commit
git push // to add to github forkI am stuck here.
Will open a new topic for it … -
Hi there,
I made some major changes to the code and hopefully did all the GitHub stuff correct in order to allow persons interested to give it a (new) try.
https://github.com/schris88/MMM-Hoymiles-Wifi
There is still a lot to do (see ‘TODO’ in the README file), but I think the basis provided by Christian (@schris88) has been strengthened.
Best regards,
E.J.
-
Christian,
This is on the TODO list:
change pv_data to dtu date for combined output of inverter
But I do not really understand what you mean by it.
Do you mean combined output of 2 panels iso just 1 ?Please elaborate.
E.J.
-
@evroom Hi there, maybe you can confirm, if the inverter has multiple inputs there seems to be an array of pv_data objects in the json (as seen in the test.json you pushed)
so the meter should combine all pv data power to have the total, right.
But we dont need to do that by hand because the combined value should be in dtu_power already, you can get rid of all the try except.I just didnt change it in the beginning because for inverters with only one input it makes no difference because its pv_data power and dtu_power is always the same value.