Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

JRMC plugin module (v 0.7, 7/4/09)

If you have a question or need help, this is the place to be.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by kkl »

Mediahome wrote:Anybody running this plugin with JRMC 17? I get errors when trying 'Set Zone', 'Set Playlist", and 'Sync Zones'. I am wondering if this is caused by the newer release.

Here are the the error messages tbat I get in the log.

Error in Action: "J River Media Center: Set Zone"
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
TypeError: __call__() takes exactly 2 arguments (1 given)
I know this is an old post, but I ran into the same problem and thought I'd post my workaround. I tried editing the XML file directly, but couldn't find any syntax that would work for Set Zone. Snooping around on the JRMC end of things, I discovered that it includes a built-in web server. Activate the Library Server to get it working. Now you can use a simple python command to send commands to JRMC. First, put this python command in your Autostart:

Code: Select all

import urllib2.urlopen
Let's say you have a Zone called Office. To activate it from EG, use the following python command:

Code: Select all

urllib2.urlopen("http://localhost:52199/MCWS/v1/Playback/SetZone?Zone=Office&ZoneType=Name")
This assumes that EG and JRMC are on the same PC. Otherwise, change 'localhost' to the correct IP.

The JRMC commands are self-documenting at http://localhost:52199/MCWS/v1/doc and reflect Media Center Core Commands. Here's the syntax for SetZone:

Code: Select all

SetZone
          Set the active zone.
          Parameters:
             Zone: The zone the command is targetted for. (default: -1)
             ZoneType: The type of value provided in 'Zone' (ID: zone id; Index: zone index; Name: zone name (default: ID)
It works for me in MC 19 (beta).
WinoOutWest
Posts: 24
Joined: Wed Dec 09, 2009 10:49 pm

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by WinoOutWest »

Does anyone know how I might be able to get an event triggered byu JRiver's play status?
I recently added a Mi Casa Vera to my mix and would love to be able to auto dim the lights when a video is playing and auto brighten them when it is paused. Easily done by the Vera but I need a reliable way to trigger the event via Jriver.

Cheers!
Darren
giantpopples
Posts: 13
Joined: Fri Mar 26, 2010 7:34 pm

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by giantpopples »

I'm also looking for a way to "listen" to JRiver actions, I'll look at the developper documentation.

I have managed to control JRMC 19 using their webservice using python script like this one :
from urllib import urlopen
urlopen('http://127.0.0.1:52199/MCWS/v1/Control/ ... Up&Focus=1')

I tried with "localhost" but it was much slower (probably because of the DNS lookup), so if you use HTTP request to control JRMC, use the IP address of the PC where JRMC is installed and not its name ;)
astromo
Posts: 1
Joined: Sun Nov 09, 2014 12:22 am

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by astromo »

Muchos kudos for this piece of work:
MC EventGhost Plugin by gvanbrunt
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by jachin99 »

I'm getting an error where EG is telling me that Jriver media center is not running when I try to execute tasks. I know this is an old thread but maybe someone is around that can still help me out. I'm running JR 21 and Windows 10, and I realize that neither were around when this plugin was created.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by kgschlosser »

look on the jriver site in their forums

http://yabb.jriver.com/interact/index.php?topic=92375.0

there, that is a more updated plugin you have to read every forum post because it walks you through how to get it running
If you like the work I have been doing then feel free to Image
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by jachin99 »

Edited. Thanks
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by kgschlosser »

i am not sure if that is the most recent plugin available i find no reference to anything else.

but, that plugin only receives events from jriver. it does not control it.

the jriver web API does allow for control. I am going to start the process of adding the control features to the plugin. I also have to go back to the jriver forum and read that whole post to see if there is more to it.

but I have the API documentation for jriver and the amount of control is HUGE that being said, i am going to release this in steps, basic features first (volume play pause ect.....)

i never really did like jriver to much maybe my thought on it will change as soon as i start messing around with it
If you like the work I have been doing then feel free to Image
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by jachin99 »

As far as I can tell, there are two separate plugins for jriver. An older one designed for playback control, and a newer one designed to see jriver events, and trigger actions in event ghost. There are some things I don't like about it either, one of them being its lack of third party development when compared to freeware media centers. I've been asking for more flexability in terms of controlling their program, or having it execute or read PC actions but I'm not getting much reinforcement. If the program had more customization to it, then it would be much better
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: JRMC plugin module (v 0.7, 7/4/09)

Post by kgschlosser »

well that's where eventghost comes in because you can see events of what jriver is doing from reading the forum post in their website you have the ability to create some kind of macro inside of jriver that when executed will post an event to eventghost, and from there you can marry that event to an action like turning off the monitor on the computer for instance.
If you like the work I have been doing then feel free to Image
Post Reply