I use this mirror for a little time. and I did some trouble shooting.
Sometime after some posts to the mirror the mirror crash.
it just shutdown.
has anyone a idea?
I use this mirror for a little time. and I did some trouble shooting.
Sometime after some posts to the mirror the mirror crash.
it just shutdown.
has anyone a idea?
Hello,
i heave a magic mirror running ( https://magicmirror.builders ).
and I heave a Homey. A domotica house controller.
Wenn i start the magic mirror I see the Philips Hue crashing in the homey controller. ( see below )
I try with some log to discuss with homey to fix this. They say that some device is interrupt the connection with hue bridge.
It must be the mirror. because is see the hue app in homey crash Wenn I start the mirror.
Please let me know what to fix.
@sdetweil
Hello
It is not fixed but I add a filter to get more detailed information.
this is workable for now.
Re: Python in to the magic mirror.
Hello Guys,
it is running good for some time.
what i see is that the mirror runs smooth for a couple of hours.
after that its freezes…
wenn i use CRTL Q nothing happed and after som minutes the mirror is stopping.
Ill still see the buffer filling from the python project.
Please help
@sdetweil
Yes one time start the python and it will run.
@sdetweil @Sean
Hello Guys Thank you for your vallueed help!
I found out that the spawn function is called every time. so in a couple of minuts the spawn function has called 100 python projects. and this is blocking the raspberry
I changed is to this: and now im going to Import the project of sdetweil in the software. But it is no more blocking.
thank you guys
/// node_helper.js
const spawn = require("child_process").spawn
var NodeHelper = require("node_helper")
var process = spawn("python", ["/home/pi/src/P2000.py"])
module.exports = NodeHelper.create({
socketNotificationReceived: function(notification, payload) {
switch(notification) {
case "GIVE_ME_DATA":
this.job()
break
}
},
job: function() {
process.stdout.on("data", (data)=>{
console.log(data)
var result = String.fromCharCode.apply(null, new Uint16Array((data)))
this.sendSocketNotification("HERE_IS_DATA", result)
})
}
})
@sdetweil
it is almost 50 char long. Im making a screen movie to let you see what I meen so it will become clear.
Send it you in a couple of minutes
Please see the full movie and notice the fail at 1:41
https://www.youtube.com/watch?v=VBYL1j4p2aI&feature=youtu.be
@sdetweil
hello ! Thank you for your help so far.
The python project is running fine on it selfs.
But wenn I use it with the magic mirror the buffer of the magic mirror is filling. And freezes.
the python project is made in combination with a Antenna.
Setup looks like https://nl.oneguyoneblog.com/2016/08/09/p2000-ontvangen-decoderen-raspberry-pi/#comment-488
so you’ll need to have data from the Multimom to get different information to send to the mirror
@sean
Hello Sean,
The problem is not the python project. But I think the buffer is filling up ore something.
At this point all the massages are displayed on the mirror and after 15 min the mirror is freeze.
So im looking in to it.