enable the telnet server and use:
source = server.insert_metadata(id="AA",source)
Then just telnet in and change the metadata.

also, if you're remote and on a windows box, use this:

# I don't recall which kind soul offered this up. Thanks to that person...
x = insert_metadata(radio1)
# Get the function
insert = fst(x)
# Redefine s as the new source
s = snd(x)
# The handler
def set_meta(~protocol,~data,~headers,uri) =
  # Split uri of the form request?foo=bar&...
  # into (request,[("foo","bar"),..])
  x = url.split(uri)
  # Filter out unusual metadata
  meta = metadata.export(snd(x))
  # Grab the returned message
  ret =
    if meta != [] then
      insert(meta)
 #    "#{meta)"
 #   else
 #     "No metadata to add!"
  end
  # Return response
  http_response(
   protocol=protocol,
   code=200,
   headers=[("Content-Type","text/html")],
   # Output the meta. Maybe log?
  # data="<html><body><b>#{ret}</b></body></html>"
  )
end
# Register handler on port 8080
harbor.http.register(port=8080,method="GET","/setmeta",set_meta)

Download and Install autohotkey and copy this into some_file.ahk and run it
from your windows box:

;MEtaB0mb has a hackerific name because its k-rad. Seriously.
; One of my remote DJ's uses turntables. Olds' cool rite?
; So I made this for him.
#NoEnv  ; Recommended for performance and compatibility with future
AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and
reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
Gui, Add, Button, x12 y170 w150 h30 , Update
Gui, Add, Button, x12 y210 w150 h20 , Quit
Gui, Add, Edit, x12 y10 w150 h30 vArtist, Artist
Gui, Add, Edit, x12 y50 w150 h30 vTitle, Title
Gui, Add, Edit, x12 y90 w150 h30 vIP, IP
Gui, Add, Edit, x12 y130 w150 h30 vPort, Port
Gui, Color, 8256a4
Gui, Show, x626 y282 h248 w182, MEtaB0mb
Return
ButtonUpdate:
Gui, Submit, NoHide
song =: %Artist% - %Title%
StringReplace, song, song, &, `%26`
UrlDownloadToFile, http://%IP%:%Port%/setmeta?title=%song%, log.txt

return

ButtonQuit:
GuiClose:
ExitApp




On Wed, Aug 7, 2013 at 5:19 PM, Josh Stirland <[email protected]>wrote:

> Hello.
> thanks again, My last question is, how do I change the output of the
> metadata? like song title/artest, or replace the string entirely, so I
> could change the metadata to someradiostation - automation.
> thanks again,
> josh.
>
> On 06/08/2013, Samuel Mimram <[email protected]> wrote:
> > Hi,
> >
> > The easiest way to get a time clock is to do something like this
> >
> > m = playlist("~/Music")
> > time = switch([({0s},single("time:It's $(time)"))])
> > s = add([m,time])
> > s = mksafe(s)
> > output.icecast(..., s)
> >
> > There are some examples in the documentation if you want to achieve
> > something more customized.
> >
> > Cheers,
> >
> > Samuel.
> >
> > On Mon, Aug 5, 2013 at 5:42 PM, Josh Stirland <[email protected]
> >
> > wrote:
> >> Hello,
> >> thanks very much. I will try this when  I get back to my computer. I
> >> would also like to know, is there a way to play a file at the top of
> >> the hour, saying the time? so if I have a folder with files such as
> >> 1.wav, 2.wav, 3.wav, for each hour of the day, can I have something
> >> like "/time/"current_hour".wav"? thanks again,
> >> josh.
> >>
> >> On 05/08/2013, Samuel Mimram <[email protected]> wrote:
> >>> Hi,
> >>>
> >>> Yes this is quite easy! To get you started, you can begin with
> >>> something like this:
> >>>
> >>> s1 = playlist("/folder1")
> >>> s2 = playlist("/folder2")
> >>> s3 = playlist("/folder3")
> >>>
> >>> s = add([s1,s2,s3])
> >>>
> >>> output.icecast(%mp3, host="localhost", port=8000, password="hackme", s)
> >>>
> >>> Cheers,
> >>>
> >>> Samuel.
> >>>
> >>> On Mon, Aug 5, 2013 at 6:34 AM, Josh Stirland
> >>> <[email protected]>
> >>> wrote:
> >>>> Hello,
> >>>> I was wondering if there is a way to take for example, three inputs(
> >>>> shuffle folders), and combine it into 1 stream, so 3 sound files are
> >>>> playing at once then stream it out to icecast.
> >>>> I would like to know for a sounds project i'm working on.
> >>>> Thanks,
> >>>>
> >>>>
> >>>> --
> >>>> josh.
> >>>>
> >>>>
> ------------------------------------------------------------------------------
> >>>> Get your SQL database under version control now!
> >>>> Version control is standard for application code, but databases havent
> >>>> caught up. So what steps can you take to put your SQL databases under
> >>>> version control? Why should you start doing it? Read more to find out.
> >>>>
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> >>>> _______________________________________________
> >>>> Savonet-users mailing list
> >>>> [email protected]
> >>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >>>
> >>>
> ------------------------------------------------------------------------------
> >>> Get your SQL database under version control now!
> >>> Version control is standard for application code, but databases havent
> >>> caught up. So what steps can you take to put your SQL databases under
> >>> version control? Why should you start doing it? Read more to find out.
> >>>
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> >>> _______________________________________________
> >>> Savonet-users mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >>>
> >>
> >>
> >> --
> >> josh.
> >>
> >>
> ------------------------------------------------------------------------------
> >> Get your SQL database under version control now!
> >> Version control is standard for application code, but databases havent
> >> caught up. So what steps can you take to put your SQL databases under
> >> version control? Why should you start doing it? Read more to find out.
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> Savonet-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
> >
> ------------------------------------------------------------------------------
> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
> > It's a free troubleshooting tool designed for production.
> > Get down to code-level detail for bottlenecks, with <2% overhead.
> > Download for free and get started troubleshooting in minutes.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
>
>
> --
> josh.
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to