Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Keith Thelen
On Dec 15, 2011, at 1:34 AM, Fred Gleason wrote:

> That 'built-in' facility is deprecated and hasn't been actively developed for 
> years.  I'd strongly recommend moving to the Rivendell Loadable Module (RLM) 
> facility.

Good to know. I'd heard mention of RLM before, but never actually looked into 
it. Guess I should!

In other news, I think my bug might be a feature :-)
After noticing that the problem was especially bad during one particular shift, 
I drove up to the studio and observed the guy in question. Turns out I'd see a 
new UDP packet hit my script every time he'd Make Next or Add Next - and since 
he takes a lot of requests during his shift, there was a lot of that going on.

It was then that it occurred to me. If I was actually using the "Next" part of 
Now & Next, I'd probably want Rivendell to send a new packet every time the 
next cart to be played was changed. Giving the benefit of the doubt, I'd say 
the fact that I didn't actually include any Next variables in my UDP string is 
irrelevant - Rivendell is still doing its thing and sending a new packet each 
time the Next data would change. (If that explanation makes any sense...)

So I think I'll just take the easy way out, and modify my script to check for 
duplicate data in each incoming packet. If it had been some misconfiguration in 
Rivendell I'd have preferred to find a "right" way to fix it. But since I'm now 
relatively sure it's not, I'll just make the hack on my end and call it a day.

Thanks for all the responses...



---
Keith Thelen
Kanabec Systems
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Bill Putney
I was afraid of that. I think the short cut is to just reload the 
station from the Live CD then restore the /etc directory from backup. 
The sound files and database are on a separate server.

Bill

On 12/15/11 8:02 AM, Fred Gleason wrote:
> On Dec 15, 2011, at 10:45 27, Bill Putney wrote:
>
>> Could it be that Rivendell has the handle number now and is using that 
>> instead of the file name?
> None of that stuff gets cached.  At each startup, RDAirPlay tries to open 
> each configured plug-in with dlopen(3).  If that fails (e.g. because the 
> binary isn't there), then that plug-in's entire configuration is skipped.
>
> I suspect that your breakage is something entirely unrelated, the relation to 
> changes in your RLM setup being just coincidental.
>
> Cheers!
>
>
> |-|
> | Frederick F. Gleason, Jr. |   Chief Developer   |
> |   |   Paravel Systems   |
> |-|
> |  If I traveled to the end of the rainbow|
> |  As Dame Fortune did intend,|
> |  Murphy would be there to tell me   |
> |  The pot's at the *other* end.  |
> |  -- Bert Whitney|
> |-|
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Fred Gleason
On Dec 15, 2011, at 10:45 27, Bill Putney wrote:

> Could it be that Rivendell has the handle number now and is using that 
> instead of the file name?

None of that stuff gets cached.  At each startup, RDAirPlay tries to open each 
configured plug-in with dlopen(3).  If that fails (e.g. because the binary 
isn't there), then that plug-in's entire configuration is skipped.

I suspect that your breakage is something entirely unrelated, the relation to 
changes in your RLM setup being just coincidental.

Cheers!


|-|
| Frederick F. Gleason, Jr. |   Chief Developer   |
|   |   Paravel Systems   |
|-|
|  If I traveled to the end of the rainbow|
|  As Dame Fortune did intend,|
|  Murphy would be there to tell me   |
|  The pot's at the *other* end.  |
|  -- Bert Whitney|
|-|

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Bill Putney
Fred,

Thanks for the reply. Yeah, I thought of that. I renamed the module to 
something unrecognizable. Could it be that Rivendell has the handle 
number now and is using that instead of the file name? I did a cold 
restarte of the machine but that didn't seem to help either. 

Bill

On 12/15/11 7:35 AM, Fred Gleason wrote:
> On Dec 15, 2011, at 10:28 33, Bill Putney wrote:
>
>> I didn't get any compile errors but after I added it RDAirPlay stopped
>> advancing through logs when in Automatic.
> Sounds like the plug-in is hanging up somewhere.  Try actually moving the 
> plug-in binary itself to a different location.  You might also check the 
> syslog -- RDAirPlay will enumerate each plug-in it loads at startup in there.
>
> Cheers!
>
>
> |-|
> | Frederick F. Gleason, Jr. |   Chief Developer   |
> |   |   Paravel Systems   |
> |-|
> |  A room without books is like a body without a soul.|
> | -- Cicero   |
> |-|
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Fred Gleason
On Dec 15, 2011, at 10:28 33, Bill Putney wrote:

> I didn't get any compile errors but after I added it RDAirPlay stopped 
> advancing through logs when in Automatic.

Sounds like the plug-in is hanging up somewhere.  Try actually moving the 
plug-in binary itself to a different location.  You might also check the syslog 
-- RDAirPlay will enumerate each plug-in it loads at startup in there.

Cheers!


|-|
| Frederick F. Gleason, Jr. |   Chief Developer   |
|   |   Paravel Systems   |
|-|
|  A room without books is like a body without a soul.|
| -- Cicero   |
|-|

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Bill Putney
Fred,

A quick question. I compiled and installed the rlm_udp.rlm on one of my 
1.7.1 stations and configured it in RDAdmin for Now & Next in RDAirPlay.

I didn't get any compile errors but after I added it RDAirPlay stopped 
advancing through logs when in Automatic. I took the rlm out with the 
delete in RDAdmin but RDAirPlay is still broken. I'm on the verge of 
reinstalling the whole station from scratch. I was wondering if some 
remnant of the rlm could still be somewhere that the configure delete 
command doesn't remove causing this problem to continue.

Thanks, Bill

  On 12/15/11 4:11 AM, Fred Gleason wrote:
> On Dec 15, 2011, at 02:50 36, Keith Thelen wrote:
>
>> I'm using Rivendell's built-in facility for sending Now/Next info over UDP.
> Gotcha.
>
> That 'built-in' facility is deprecated and hasn't been actively developed for 
> years.  I'd strongly recommend moving to the Rivendell Loadable Module (RLM) 
> facility.  This is much more powerful in that plug-ins can be developed to 
> interface to just about any device out there.  A basic set of plug-ins come 
> with the system, including one called 'rlm-udp' that can be used to send 
> updates via UDP to an arbitrary number of destinations.  You configure it in 
> RDAdmin->ManageHosts->RDAirPlay->Configure Now&Next, in the 'Loadable 
> Modules' section.  The 'Argument' parameter should be the path to the 
> plug-in's configuration file.  A heavily commented example configuration can 
> be found in the 'rlm_udp.conf' file, shipped with the Rivendell sources.  You 
> can also develop your own plug-ins; see 'lib/rlm.h' in the Rivendell sources 
> for details.
>
> Cheers!
>
>
> |-|
> | Frederick F. Gleason, Jr. |   Chief Developer   |
> |   |   Paravel Systems   |
> |-|
> |  A room without books is like a body without a soul.|
> | -- Cicero   |
> |-|
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-15 Thread Fred Gleason
On Dec 15, 2011, at 02:50 36, Keith Thelen wrote:

> I'm using Rivendell's built-in facility for sending Now/Next info over UDP.

Gotcha.

That 'built-in' facility is deprecated and hasn't been actively developed for 
years.  I'd strongly recommend moving to the Rivendell Loadable Module (RLM) 
facility.  This is much more powerful in that plug-ins can be developed to 
interface to just about any device out there.  A basic set of plug-ins come 
with the system, including one called 'rlm-udp' that can be used to send 
updates via UDP to an arbitrary number of destinations.  You configure it in 
RDAdmin->ManageHosts->RDAirPlay->Configure Now&Next, in the 'Loadable Modules' 
section.  The 'Argument' parameter should be the path to the plug-in's 
configuration file.  A heavily commented example configuration can be found in 
the 'rlm_udp.conf' file, shipped with the Rivendell sources.  You can also 
develop your own plug-ins; see 'lib/rlm.h' in the Rivendell sources for details.

Cheers!


|-|
| Frederick F. Gleason, Jr. |   Chief Developer   |
|   |   Paravel Systems   |
|-|
|  A room without books is like a body without a soul.|
| -- Cicero   |
|-|

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-14 Thread Keith Thelen
On Dec 15, 2011, at 1:34 AM, Fred Gleason wrote:

> Could you give us more some info about your setup?  Specifically:
> 
> 1) The name of the plug-in are you using (or the plug-in source code, if 
> you've written a custom one).
> 
> 2) Configuration file for said plug-in.

I'm using Rivendell's built-in facility for sending Now/Next info over UDP. The 
UDP packets are being received by a Perl script I wrote, which uses IO::Socket 
to listen for and process the packets. No additional plug-ins or patches are 
involved; Rivendell was compiled from unmodified source using default options.

If I'm not understanding the question, please let me know so I can get you the 
correct details. Thanks!



---
Keith Thelen
Kanabec Systems
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-14 Thread Fred Gleason
On Dec 12, 2011, at 18:51 45, Keith Thelen wrote:

> Lately I've noticed one machine's Now/Next data becoming more and more 
> repetitive. It's running 2.1.1, which was compiled from source on OpenSuSE 
> 11.1.

Could you give us more some info about your setup?  Specifically:

1) The name of the plug-in are you using (or the plug-in source code, if you've 
written a custom one).

2) Configuration file for said plug-in.

Cheers!


|-|
| Frederick F. Gleason, Jr. |   Chief Developer   |
|   |   Paravel Systems   |
|-|
|  A room without books is like a body without a soul.|
| -- Cicero   |
|-|

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-13 Thread G Wood
I have never got Shoutcast to work either. The documentation and forums are
inadequate. I would like to get it to work. One of the biggest number of
hits on the website is to check the schedule which means now/next needs to
work.

On Tue, Dec 13, 2011 at 2:02 PM, Nathan Steele  wrote:

> **
> I agree, I have not been able to get this working either and am back on
> trying to get it to work again (i gave up for a while to work on more
> pressing issues).
>
> I need to send the data to our shoutcast server, I was trying to use a set
> of scripts called streamdata from emitworks.com that someone here
> recommended. I never got it to work. I will be trying again now that I have
> learned a few more things and am a little more comfortable with Linux.
>
> Nathaniel C. Steele
> Assistant Chief Engineer/Technical Director
> WTRM-FM / TheCrossFM
>
>
> On 12/13/2011 9:11 AM, G Wood wrote:
>
> In my limited perspective I would like to see more attention devoted to
> now / next.  I have not had any success with it.
>
> On Mon, Dec 12, 2011 at 6:51 PM, Keith Thelen  wrote:
>
>> Hello all!
>>
>> Lately I've noticed one machine's Now/Next data becoming more and more
>> repetitive. It's running 2.1.1, which was compiled from source on OpenSuSE
>> 11.1.
>>
>> The program doing the listening logs each time it receives data from
>> Rivendell. In the beginning I'd only see a cart's data get sent twice once
>> in a while. But over the past few weeks, it's gotten much worse - the
>> majority of the carts are being sent twice, and occasionally three times.
>> Just now I saw one get sent a record FOUR times - when the cart was fired,
>> again 19 seconds later, again 13 seconds after that, and once more 64
>> seconds after that.
>>
>> Does anyone know why this might be? I'm hoping this is a known issue in
>> this newer version (this is my only site running 2.x, so I'm not 'up' on
>> what people are seeing).
>>
>> TIA,
>>
>>
>>
>> ---
>> Keith Thelen
>> Kanabec Systems
>> ___
>> Rivendell-dev mailing list
>> Rivendell-dev@lists.rivendellaudio.org
>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>>
>
>
> ___
> Rivendell-dev mailing 
> listRivendell-dev@lists.rivendellaudio.orghttp://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
>
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-13 Thread Nathan Steele
I agree, I have not been able to get this working either and am back on 
trying to get it to work again (i gave up for a while to work on more 
pressing issues).


I need to send the data to our shoutcast server, I was trying to use a 
set of scripts called streamdata from emitworks.com that someone here 
recommended. I never got it to work. I will be trying again now that I 
have learned a few more things and am a little more comfortable with Linux.


Nathaniel C. Steele
Assistant Chief Engineer/Technical Director
WTRM-FM / TheCrossFM


On 12/13/2011 9:11 AM, G Wood wrote:
In my limited perspective I would like to see more attention devoted 
to now / next.  I have not had any success with it.


On Mon, Dec 12, 2011 at 6:51 PM, Keith Thelen > wrote:


Hello all!

Lately I've noticed one machine's Now/Next data becoming more and
more repetitive. It's running 2.1.1, which was compiled from
source on OpenSuSE 11.1.

The program doing the listening logs each time it receives data
from Rivendell. In the beginning I'd only see a cart's data get
sent twice once in a while. But over the past few weeks, it's
gotten much worse - the majority of the carts are being sent
twice, and occasionally three times. Just now I saw one get sent a
record FOUR times - when the cart was fired, again 19 seconds
later, again 13 seconds after that, and once more 64 seconds after
that.

Does anyone know why this might be? I'm hoping this is a known
issue in this newer version (this is my only site running 2.x, so
I'm not 'up' on what people are seeing).

TIA,



---
Keith Thelen
Kanabec Systems
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org

http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-13 Thread G Wood
In my limited perspective I would like to see more attention devoted to now
/ next.  I have not had any success with it.

On Mon, Dec 12, 2011 at 6:51 PM, Keith Thelen  wrote:

> Hello all!
>
> Lately I've noticed one machine's Now/Next data becoming more and more
> repetitive. It's running 2.1.1, which was compiled from source on OpenSuSE
> 11.1.
>
> The program doing the listening logs each time it receives data from
> Rivendell. In the beginning I'd only see a cart's data get sent twice once
> in a while. But over the past few weeks, it's gotten much worse - the
> majority of the carts are being sent twice, and occasionally three times.
> Just now I saw one get sent a record FOUR times - when the cart was fired,
> again 19 seconds later, again 13 seconds after that, and once more 64
> seconds after that.
>
> Does anyone know why this might be? I'm hoping this is a known issue in
> this newer version (this is my only site running 2.x, so I'm not 'up' on
> what people are seeing).
>
> TIA,
>
>
>
> ---
> Keith Thelen
> Kanabec Systems
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


Re: [RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-13 Thread Keith Thelen
Hello again...

Followup - having watched some more, I've noticed a pattern: it happens mostly 
during the day. At night, when the machine is running a log in RDAirplay in 
Automatic mode with no user interaction, the problem is mostly limited to songs 
that cross the top of the hour.

This machine in question is the "master" for this service; it runs MySQL and 
Apache, and is where /var/snd lives. Its console is used exclusively for 
running RDAirplay (users aren't given any reasonable opportunity to run 
anything else). The distro is pretty pared down, so no screensavers or 
noteworthy background services to point the finger at.

During the day, users switch between Automatic/Live Assist/Manual, load/unload 
carts from the panels, and fire carts manually from time to time - that's about 
it. RAM and CPU use seem reasonable. A machine in the prod room is also running 
2.1.1 and is used for some light library and log management tasks, but what (if 
anything) being done there seems irrelevant to this problem.

The logs all appear normal, both day and night. Any idea what I might be 
missing?



---
Keith Thelen
Kanabec Systems

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


[RDD] 2.1.1 - sending Now/Next multiple times per song

2011-12-12 Thread Keith Thelen
Hello all!

Lately I've noticed one machine's Now/Next data becoming more and more 
repetitive. It's running 2.1.1, which was compiled from source on OpenSuSE 11.1.

The program doing the listening logs each time it receives data from Rivendell. 
In the beginning I'd only see a cart's data get sent twice once in a while. But 
over the past few weeks, it's gotten much worse - the majority of the carts are 
being sent twice, and occasionally three times. Just now I saw one get sent a 
record FOUR times - when the cart was fired, again 19 seconds later, again 13 
seconds after that, and once more 64 seconds after that.

Does anyone know why this might be? I'm hoping this is a known issue in this 
newer version (this is my only site running 2.x, so I'm not 'up' on what people 
are seeing).

TIA,



---
Keith Thelen
Kanabec Systems
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev