Search found 3 matches

by delooper
July 24th, 2020, 11:51 pm
Forum: General Discussion
Topic: Can mpd execute a script when play begins and ends?
Replies: 5
Views: 752

Re: Can mpd execute a script when play begins and ends?

Thanks, mpdcron looks like a smart generalization of what I was thinking about. I'll try that first.
by delooper
July 24th, 2020, 6:14 pm
Forum: General Discussion
Topic: Can mpd execute a script when play begins and ends?
Replies: 5
Views: 752

Re: Can mpd execute a script when play begins and ends?

Thanks. I did a little digging around. Will try implementing it via python-mpd2 at first, to see how it goes.
by delooper
July 24th, 2020, 9:07 am
Forum: General Discussion
Topic: Can mpd execute a script when play begins and ends?
Replies: 5
Views: 752

Can mpd execute a script when play begins and ends?

I'm building a little GPIO unit that will be able to power up (and down) my amplifiers via USB. In an ideal world, I'd have mpd call a script to trigger the GPIO unit, when a song (or playlist) begins, and call a script to power-down the amplifiers when the playlist ends. Is there a native way to do...