View Full Version : mediabridge Library in Webserver

December 17th, 2012, 09:23 PM
Ok I am almost done moving all the netremote funtions over to the Girder webserver for my tablets however I have a couple of issues I am sorting out one is how to view the JRMC library and select songs or playlists using the webserver.

the other is tying in XBMC so that it has controls showing up as a Reciever like the JRMC does currently



January 3rd, 2013, 11:20 PM
is atleast the JRMC stuff doable? and if so how do I do it and just for reference I have 4 zones

January 4th, 2013, 02:33 PM
yonu -

I'm thinking that the 'easier' approach would be to go directly to JRMC via their web interface.

I know that there are a few apps out that that do this, but I haven't seen a documented web interface doc to know if it's possible to recreate mediabridge functionality via web...

January 7th, 2013, 04:52 PM
You can always check out web interface at
I think what I describe here require JRMC 17 or better

I have used the stuff at to build up the code below.
It is not perfect and can for sure be done in a better and faster way. I run this script every 2 sec to get an update.

JRMC_Zones = {}
varJRMC_Zones = win.URLDownloadToMemory("")
_, _, NumberZones = string.find(varJRMC_Zones,"\"NumberZones\">(%d)")
--zonecount = 1
--_, _, NameZones = string.find(varJRMC_Zones,"\"ZoneName"..zonecount.."\">(%a*)")
JRMC_Zones["ZoneName"] = {}
--print("test12345: "..NumberZones)
--JRMC_Zones.Zones = NumberZones
for c = 0, NumberZones - 1 do
_, _, NameZones = string.find(varJRMC_Zones,"\"ZoneName"..c.."\">(%a*)")
JRMC_Zones.ZoneName["ZoneName"..c] = NameZones
for k, v in pairs(JRMC_Zones.ZoneName) do
varJRMC_PlayingNow = win.URLDownloadToMemory(""..v.."&ZoneType=Name")
JRMC_Zones["Zone_"..v] = {}
_, _, JRMC_Zones["Zone_"..v].ImageURL = string.find(varJRMC_PlayingNow,"\"ImageURL\">([^<]*)")
_, _, JRMC_Zones["Zone_"..v].status = string.find(varJRMC_PlayingNow,"\"Status\">([^<]*)")
_, _, JRMC_Zones["Zone_"..v].artist = string.find(varJRMC_PlayingNow,"\"Artist\">([^<]*)")
_, _, JRMC_Zones["Zone_"..v].album = string.find(varJRMC_PlayingNow,"\"Album\">([^<]*)")
_, _, JRMC_Zones["Zone_"..v].name = string.find(varJRMC_PlayingNow,"\"Name\">([^<]*)")
--_, _, test1 = string.find(varJRMC_PlayingNow,"\"ImageURL\">(%w*[^<]*)")
print ("JRMC Updated")

You could most likely "re-skin" webgizmo, with your own look and feel. That was/is my plan but my knowledge and time is somewhat limited.....

February 20th, 2013, 12:51 PM
sorry for the late replies work has had my busy

on the code you posed where should I place this?


February 21st, 2013, 05:30 PM
ok I got the code placed in a scripting node and runnign however I have to ask does it simply pass the contents to cariables or what?


February 22nd, 2013, 06:45 AM
For now it is only downloading "playing Now" info from the different zones you have as well as the zones and place them in tables (JRMC_Zones). See it as a starting point and build whatever functionality you want.
The reason why I do this from within Girder is to be able to trigger actions based on play states. You could also implement this directly in your Girder webpage and get full library browsing functionality, check out webgizmo for a working example.

February 22nd, 2013, 12:48 PM
ok got ya


March 9th, 2015, 06:19 AM
I discovered this by accident. Has this script been developed more? It looks like a great start, but I can only see one zone there, not all of my zones. Tried to uncommend the zonecount line and put in 11, but that didn't help.

March 9th, 2015, 12:26 PM
I have not really done any further development of this scriptother then modifying it for girder 6.

If you connect to the link below with you ip adress instead of mine for the jrmc server with a browser you should get the full response that I decode In the script

March 9th, 2015, 12:29 PM
Yep, I've seen that. I'm just rubbish at decoding... :) But what has to be changed to get more than one zone into the table? I'm only getting the first zone...