A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
I don't know how to use node_helper.js.
-
but your should have been ok… do you see the message
console.log("Starting module: " + this.name);in the terminal window?
-
This post is deleted! -
var NodeHelper = require("node_helper"); var {PythonShell} = require('python-shell'); module.exports = NodeHelper.create({ start: function() { console.log("Starting module: " + this.name); }, socketNotificationReceived: function(notification, payload) { console.log("Starting module: " + this.name); switch(notification) { case "TESTPYTHON": console.log("notification : " + notification) this.sendSocketNotification("I_DID") PythonShell.runString('print("Hello Python")', null, function (err, result) { if (err) throw err; console.log(result); }); break } }, })
console doesnt show Starting module…
-
@emrhssla ok, there are two different output areas…
the developers window, which u posted is from the module.js side…
the node helper content comes out in the terminal window.start you mirror app,
then start it withnpm start &
(note the & at the end)
now you should be able to see any messages in the terminal window from the node_helper -
@sdetweil oh!!!
thank you very very very much :)