OCP without OCP


OCP without OCP

Author
Message
JamesHarrison
JamesHarrison
Forum Sage
Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)

Group: Forum Members
Posts: 32, Visits: 229
Hi,

I'm trying to sort out a quick and simple mechanism of getting now-playing data into our state server. We have a Redis server (lightweight key/value store) that lets us store state data in the studio and access it from our webserver. We use this for a whole bunch of information about the software and hardware states in the studio (mics on/off, red lights, silence detector alarms, that sort of thing, in combination with Nagios for monitoring it all).

We have an OCP license but I don't see much point in adding yet another thing to go wrong if I can avoid it - worked out that the port Myriad's inbuilt OCP thing is set up to use is 6901 (through to 6920) and did some poking. When setting up something to listen to this, I get:

NET_CONTROL_LOGON MV3LOCAL_INSANITYSTUDIO 2,1 InsanityStudio

And then nothing.

What do I need to send to get now/next data? I can parse whatever Myriad spits out, I'm just getting there's a login stanza I need to parrot at Myriad.

Cheers,
James

James Harrison
Head of Technology 2010-11 
Insanity Radio 1287AM 
http://www.insanityradio.com
Tags
philedmonds
philedmonds
Forum Sage
Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)Forum Sage (52K reputation)

Group: Forum Members
Posts: 127, Visits: 620
Myriad only sends OCP some information when a log item changes.

I assume PSquared won't reveal the format on the communication between Myriad and OCP - so will be left to you to reverse engineer (possibly strictly speaking in contravention of the software licence - I've not looked.)

At one station I have OCP outputting DAB DLS text to the Powerlog Server (we're not actually on DAB - it's just a method to get the now playing info logged in Powerlog).

Then I've set OCP to 'log' the DLS text - this outputs a text file - one per day. I can then run scripts on the server which parses this log-file and do things with it - like publishing playlists on the web.

OCP+ can also output the now playing info as a HTTP POST method - which could be used to get information into other systems via a webserver.

Other idea - turn on Myriad debug mode and parse the debug files created?
Parse the myriad 'play log files'?

--
Myriad user since 1998, now custodian of dozens of Myriad,Autotrack, Powerlog and Scoop boxes of many different flavours.
http://www.philedmonds.com
Craig Arthur
Craig Arthur
Forum Sage
Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)Forum Sage (102K reputation)

Group: Forum Members
Posts: 258, Visits: 7K
One thing to watch as well, there is quite often changes on the way that Myriad sends it's info to OCP requiring upgrades to both.

See http://forum.psquared.net/3722/OCP-v2648-Upgraded-to-Full-Release as an example of when the comunications proltocols change.  That could potentially break any home brew systems...

Craig Arthur

Engineering & IT Manager
Radio Royal, Royal 2 & Royal Gold.
JamesHarrison
JamesHarrison
Forum Sage
Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)Forum Sage (13K reputation)

Group: Forum Members
Posts: 32, Visits: 229
Well, gave up on trying to do that and now just have OCP sending a streaming radio request to our website, which then has a handler for that sort of request that sets the data. 

Using a data line from OCP that looks like NOWNAME|now playing track name|NOWARTIST|now playing artist| and so on, for every bit of data; then we have a tiny little bit of code on the website that feeds that into Redis so we've got access to it from anywhere with Redis access with a quick "redis.get("np_nowname")".

http://insanityradio.com/ has a now playing widget using this. We also set a timestamp and only display data that has been updated in the last 5 mins, specifically checking for data that has _changed_ in the last 5 mins- if Myriad crashes, OCP can get stuck and send the same song till it's restarted. http://pastie.org/1726477 is the code we use to do this. Problem solved!

James Harrison
Head of Technology 2010-11 
Insanity Radio 1287AM 
http://www.insanityradio.com
Edited
13 Years Ago by JamesHarrison
AndyS
AndyS
Forum Sage
Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)Forum Sage (571 reputation)

Group: Forum Members
Posts: 1, Visits: 11
Hi, all I am testing Myriad and cant cant find out how to set-up a Shoutcast encoder. Can you help me please. 
Tags
Paul Moore
Paul Moore
Forum Sage
Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)Forum Sage (308K reputation)

Group: Forum Members
Posts: 738, Visits: 4.1K
There is no encoder in Myriad.

Regards,
Paul Moore

HitMix Radio
0792 858 1075


GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Select a Forum....





























Broadcast Radio Forums


Search