I’m working on an extension to play a local file (or radio stream) depending on the information on a NFC card (using NXP Explore & Raspberry). Almost like the “cassette player”.
So right now I’m graceful for any code snippet that shows me how to start the playback for an URI. Like playback.play(‘file:/music/country/foo.mp3’) or playback.play(‘http://my-radio-station’).
I have 15 years experience in software development but I’m pretty stuck with python
Use mpc if you just want to fire a few commands at mopidy in response to
some event. If you find this isn’t enough then, yes, write an extension.
There are numerous extensions out there to provide examples and there is
documentation for everything at docs.mopidy.com.