@fonfon in the magic mirror folder
npm -i electron
@fonfon in the magic mirror folder
npm -i electron
@fonfon said in after update and upgrade raspberry and magic mirror:
pi@raspberrypi:~/MagicMirror $ npm -v
1.4.21
that is very old… please upgrade,
i have 2 systems, 1 is at 3.5.2 (still too old, thx will upgrade)
and 6.1.0
use
curl -L https://npmjs.org/install.sh | sudo sh
can u show us the output of
npm -v
and
node -v
@grantc66 cool, thanks…
for node, you could have spun off a long running python app,
and added data.on() event handlers in javascript node_helper to get called each time the python app wrote to the console (stdout)… which could have been json data, or whatever text you liked
const {spawn} = require('child_process')
const child = spawn('pwd');
child.stdout.on('data', (data) => {
console.log(`child stdout:\n${data}`);
});
child.stderr.on('data', (data) => {
console.error(`child stderr:\n${data}`);
});
great news… thanks for the feedback
@novajones001 for the mirror app? http://192.168.1.4:configured_port
default is 8080 as suggested… doah!..
@mykle1 and for some, like me, covering a 50 inch tv ‘mirror’ with real glass is wildly expensive…
@jasondreher you didn’t use the payload. Just hide and show. I don’t know the other module.
But I would guess u need to start a timer with some elapsed time til the action (from now)
@jasondreher just add the payload on to the api call like this
this.sendNotification('HIDE_TIMER', payload);
‘payload’ can be anything… a variable (this.variable_name), a literal(‘some literal string’), a dynamically constructed value (‘some value’ + variable_name + ’ right now ')
the receiving modules sendNotificationReceived(code, payload, sender) function is responsible for ignoring or processing the payload data according to the shared rules of the sender