Re: [RDD] Daily Music List

2020-01-30 Thread drew Roberts
Mike,

I am attaching 2 files for you to look at.

one for filewrite and one for udp.

The filewrite should write a file with lines like:

title - artist

the trick will be to rotate daily to a file with a different name and clear
it out.
the bigger trick with be to get the time in front of the line.

%h:%mm:%hh AP

may offer some clues.

Or, try something like this with netcat:

nc -ul 17111 | ts > songlog.txt

all the best,

drew

On Thu, Jan 30, 2020 at 5:17 PM Mark Murdock 
wrote:

> Drew,
>
>
>
> Well, I’m familiar with pypad, but have no clue about netcat. I’m not
> entirely a newbie, as I have been working on Rivendell for a long time. I’m
> not too up on macros and gpio and command line stuff, but I know my way
> around most of the Rivendell stuff otherwise. How can you have filewrite
> just output a line when music is playing and nothing else?
>
>
>
> Thanks
>
> Mark
>
>
>
> *From:* drew Roberts 
> *Sent:* Thursday, January 30, 2020 1:16 PM
> *To:* Mark Murdock 
> *Cc:* rivendell-dev@lists.rivendellaudio.org
> *Subject:* Re: [RDD] Daily Music List
>
>
>
> Mark,
>
>
>
> I would imagine you could pull it off with filewrite or udp and netcat.
> (pypad stuff + netcat)
>
>
>
> Do you just need a hint like that or are you more of a newbie to linux and
> Rivendell?
>
>
>
> all the best,
>
>
>
> drew
>
>
>
>
>
> On Thu, Jan 30, 2020 at 2:53 PM Mark Murdock 
> wrote:
>
> We are implementing Rivendell soon on air, and there’s one thing that
> still needs to be covered. On our website we have one week’s worth of songs
> that have played on KAMB so that people can look for songs that they have
> heard. You can see it here:
>
>
>
> https://www.celebrationradio.com/todays-songs/
>
>
>
> I want to generate the same sort of thing from Rivendell. I wrote a custom
> program in Visual Basic to handle this for Scott Studios, and I may tackle
> the same thing for Rivendell, but I’m wondering if there is a built-in way
> to accomplish this using PYPAD or something else.
>
>
>
> Thanks,
>
>
>
> Mark Murdock
>
> KAMB
>
> 90 E. 16th St.
>
> Merced, CA 95340
>
> (209) 723-1015
>
> m...@celebrationradio.com
>
> Website <https://celebrationradio.com/>
>
>
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
>
>
>
> --
>
> Enjoy the *Paradise Island Cam* playing
>
> *Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
>


-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/

; This is the sample configuration for the 'pypad_filewrite.py' PyPAD script
; for Rivendell, which can be used to write one or more files on the local 
; system using Now & Next data.
;

; Section Header
;
; One section per file to be written should be configured, starting with 
; 'File1' and working up consecutively
[File1]

; Filename
;
; The full path to the file to be written.  The filename may contain filepath
; wildcards as defined in Appendix C of the Rivendell Operations and
; Administration Guide.  The user running RDAirPlay must have write
; permissions for this location.
; Filename=/tmp/rlm_filewrite.txt
; I think there is a permission problem, moving location to tmp to check (dR)
; 
Filename=/tmp/dailylog.txt

; Append Mode
;
; If set to '0', the file will be completely overwritten with the contents
; of each PAD update.  If set to '1', each update will be appended to the
; existing contents of the file.
; Append=0
Append=1

; Format String.  The string to be output each time RDAirPlay changes
; play state, including any wildcards as placeholders for metadata values.
;
; The list of available wildcards can be found in the 'metadata_wildcards.txt'
; file in the Rivendell documentation directory.
;
;FormatString=NOW: %d(ddd MMM d hh:mm:ss ): %t - %a\nNEXT: %D(ddd MMM d 
hh:mm:ss ): %T - %A\n
;FormatString=%t - %a\n
FormatString=%t - %a\n

; Encoding.  Defines the set of escapes to be applied to the PAD fields.
; The following options are available:
;
;  0 - Perform no character escaping.
;  1 - "XML" escaping: Escape reserved characters as per XML-v1.0
;  2 - "Web" escaping: Escape reserved characters as per RFC 2396 Section 2.4
Encoding=0

; Log Selection
;
; Set the status for each log to 'Yes', 'No' or 'Onair' to indicate whether
; state changes on that log should be output.  If set to 'Onair', then
; output will be generated only if RDAirPlays OnAir flag is active.

MasterLog=Yes
Aux1Log=Yes
Aux2Log=Yes
VLog101=No
VLog102=No
VLog103=No
VLog104=No
VLog105=No
VLog106=No
VLog107=No
VLog108=No
VLog10

Re: [RDD] Daily Music List

2020-01-30 Thread drew Roberts
Mark,

I would imagine you could pull it off with filewrite or udp and netcat.
(pypad stuff + netcat)

Do you just need a hint like that or are you more of a newbie to linux and
Rivendell?

all the best,

drew


On Thu, Jan 30, 2020 at 2:53 PM Mark Murdock 
wrote:

> We are implementing Rivendell soon on air, and there’s one thing that
> still needs to be covered. On our website we have one week’s worth of songs
> that have played on KAMB so that people can look for songs that they have
> heard. You can see it here:
>
>
>
> https://www.celebrationradio.com/todays-songs/
>
>
>
> I want to generate the same sort of thing from Rivendell. I wrote a custom
> program in Visual Basic to handle this for Scott Studios, and I may tackle
> the same thing for Rivendell, but I’m wondering if there is a built-in way
> to accomplish this using PYPAD or something else.
>
>
>
> Thanks,
>
>
>
> Mark Murdock
>
> KAMB
>
> 90 E. 16th St.
>
> Merced, CA 95340
>
> (209) 723-1015
>
> m...@celebrationradio.com
>
> Website 
>
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>


-- 
Enjoy the *Paradise Island Cam* playing
*Bahamian Or Nuttin* - https://www.paradiseislandcam.com/
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Daily Music List

2020-01-30 Thread Mark Murdock
We are implementing Rivendell soon on air, and there's one thing that still 
needs to be covered. On our website we have one week's worth of songs that have 
played on KAMB so that people can look for songs that they have heard. You can 
see it here:

https://www.celebrationradio.com/todays-songs/

I want to generate the same sort of thing from Rivendell. I wrote a custom 
program in Visual Basic to handle this for Scott Studios, and I may tackle the 
same thing for Rivendell, but I'm wondering if there is a built-in way to 
accomplish this using PYPAD or something else.

Thanks,

Mark Murdock
KAMB
90 E. 16th St.
Merced, CA 95340
(209) 723-1015
m...@celebrationradio.com
Website

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