@sean said in Python in to the magic mirror.:
@paulvanderheijden90
Your node_helper.js is not correct.
Hello Sean,
Why is it wrong? I copy it from your post earlier.
I started in Dev mode. I noticed that wenn I add the Node_helper.js module in the MMM-P2000 map the Magic mirror crashes and give only black screen.
I studyed the Node_helper file. I see in the first line you define the function and in the second line you define the settings for that function. So that’s clear to me. In the next lines you define the stdout of the process and copy it in de Console Log. so that’s also clear for me. So I down’t know why is it not working and crashes.
I made in the same map ( home/pi/src/ ) a file called test.py Here I defined a string and I write the string to the stdout so as you say before the python project don’t need a separate call. So that should work as well.
Node_helper.js:
Python project:
I also getting in to the module setup so I changed the MMM-P2000.js and I think it is oke like this.
First the start function restart every 1000mS the dom function.
then the getdom Function is now showing the test “Hello World” in the module
so that should be oke aswell. I
How do I need to link the socked notification message to the Module string?