UNSOLVED mpd/mpc titel display on MM
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.
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
To run a childprocess in node_helper I found this blog,
Does 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
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