Read the statement by Michael Teeuw here.
mpd/mpc titel display on MM
-
Hey there,
I am using mpd mpc player with my Mirror and I am looking for a way to display the current titel within the mirror.
Any ideas how I could manage that?Right now I am using a playlist and 3 buttons prev, next and play/stop with a python script. The title would be stdout on the terminal. Somehow I have to redirect it to the mirror/website.
I am not really good with javascript or programming in general, just a bit basics that’s it. If you need mor info let me know.
BR
co8 -
you could run the python script as a childprocess in the node_helper and then listen on stdout, when you receive data you could send a socket notification to your module and then display it on the mirror
-
Hi strawberry,
Thank you for your input. When I said, I am not really good with javascript or programming, I meant my knowledge is down to zero.
To run a childprocess in node_helper I found this blog,
http://krasimirtsonev.com/blog/article/Nodejs-managing-child-processes-starting-stopping-exec-spawnDoes this goes in the right direction?
-
thats exactly what i meant but you would go for spawn not exec
just post your progress and questions, the others and I will help you creating your module
-
Thanks.
I will definitely read into this.
Also found this for better understanding http://www.hacksparrow.com/difference-between-spawn-and-exec-of-node-js-child_process.html -
maybe the module of paviro can give you a kickstart https://github.com/paviro/MMM-Facial-Recognition/blob/master/node_helper.js
he’s using pyshell, you can use this as well