Roon Command Line Control version 2

Thanks Greg, would you mind giving me an example with your python wrapper? How should I get this to work?
I really appreciate your lights on this, as I didn’t see it anywhere in the documentation…

If you’re willing to write some python code you use see my library here.

It’s released vis the proper pypi library management, so should be easily available in a python development project.

There is an example of how to play something here:-

The play_media method takes an extra optional parameter action, which is a string that needs to match what roon has available at that point.

At that point in the code - the code should find a list of things that can be done to the track / album. By default the code just chooses the first one (roon’s default) - but if the optional string is specified it will try and find that.

You may need to experiment to find the correct string - but the error message below should show the possible options if your requested action wasn’t found.

I’m not sure how much I tested this - and I don’t think the two main library users use this - but if it doesn’t work let me know and I’ll fix it.

Obviously this involved some proper coding!

1 Like

BTW The joy of open source is that if you are a developer you could enhance @Ronald_Record 's code to add an optional extra parameter and make a pull request. I’m sure he be grateful for contributions.

His code is here:-

2 Likes

Hi, I have been on vacation and just got back. Managing the queue via RoonCommandLine is not currently supported but it is a good feature request. I will look into it.

2 Likes