INTERACT FORUM

More => Old Versions => JRiver Media Center 29 for Linux => Topic started by: afora on October 08, 2022, 11:55:34 pm

Title: [SOLVED] How to Access MC Core Commands in Linux
Post by: afora on October 08, 2022, 11:55:34 pm
Could anyone help with pointing out how to invoke those?
https://wiki.jriver.com/index.php/Media_Center_Core_Commands

Im trying to control MC from the command line to setup a remote control properly. They were very handy when I was running the media PC on Windows (with the /MCC argument), but no I cannot find a way to call them in a Debian distro.

Many thanks!
Title: Re: MC Core Commands are not accessible in Linux
Post by: mwillems on October 09, 2022, 11:53:52 am
I'm not sure the core commands are implemented on Linux, but you can use MCWS to do automation from the command line and MCWS (to my knowledge) can do anything that the core commands can do.
Title: [SOLVED] Re: MC Core Commands are not accessible in Linux
Post by: afora on October 09, 2022, 08:15:38 pm
Oh, fantastic thanks for the pointer!

To make it work:
- make sure that the MC Web server is running
- control MC from the browser (say, Play==10000):

Code: [Select]
http://localhost:52199/MCWS/v1/Control/MCC?Command=10000
- control MC from terminal (say, Play==10000)

Code: [Select]
curl -s http://localhost:52199/MCWS/v1/Control/MCC?Command=10000 > /dev/null
Title: Re: [SOLVED] How to Access MC Core Commands in Linux
Post by: bob on October 10, 2022, 01:14:35 pm
You can use the launcher stub too
/usr/lib/jriver/Media Center 29/mc29
Title: Re: [SOLVED] How to Access MC Core Commands in Linux
Post by: afora on October 10, 2022, 10:05:04 pm
Excellent, thank you!

This works, so I can turn off MCWS now:

Code: [Select]
/usr/lib/jriver/MC27/mc27 /mcc 10000

To automate and avoid portability issues with future versions of MC which would presumably change the path to a different MCXX: