You should be able to use http.get for that. Where to put it in your script
depends on when you want to do it :-)

Romain

2016-06-01 12:18 GMT-05:00 Feiko <[email protected]>:

> Hi there you all,
>
> Sorry I don't get it,
> If I put this in just an internet browser like firefox then RadioDj
> (RESTserver) plays next track.
> http://ip:port/opt?ath=password&command=PlayPlaylistTrack
>
> but how do I do this in liquidsoap I thaut
> http.get(data="opt?ath=password&command=PlayPlaylistTrack","IP:port")
> and where do I put it see here under my script.
>
> TNX
> Feiko
>
> #nieuws + verkeer op een bed
>     nieuws_bed = single("/home/chiel/fir_audio/info/nieuws/FIR nieuws id
> zonder.mp3")
>     nieuws_nieuws = single("/home/chiel/fir_audio/info/nieuws/nieuws.mp3")
>     nieuws_verkeer =
> single("/home/chiel/fir_audio/info/nieuws/verkeer.mp3")
>
>     info =     sequence(merge=true,
>               [
>         blank(duration=8.),
>         nieuws_nieuws,
>                once(nieuws_verkeer),
>                    ]
>                    )
>
>     nieuws = add([nieuws_bed,info])
>     nieuws = amplify(2., override="replay_gain", nieuws)
>
> #studio streams + nieuws om het uur
>         almere  = "http://46.166.178.144:8000/studioalmere";
> <http://46.166.178.144:8000/studioalmere>
>         brielle = "http://46.166.178.144:8000/studiobriele";
> <http://46.166.178.144:8000/studiobriele>
>
>     relayalmere = mksafe(input.http(almere))
>     relaybrielle = mksafe(input.http(brielle))
>
>     studios_ext = fallback(
>         track_sensitive=false,
>         [
>         switch([({1h59m00s}, nieuws)]),
>         strip_blank(max_blank=1., relayalmere),
>         strip_blank(max_blank=1., relaybrielle),
>         ]
>         )
>
> #error sound
>     error = single("/home/chiel/fir_audio/jingles/error/error.mp3")
>     error = amplify(2.,override="replay_gain",error)
>
> #switch tussen studio's en error
>     main_stream = fallback(
>         [
>         studios_ext,
>         error
>         ]
>         )
>
> # icecast server main stream mount /mp3
>     output.icecast(
>         %mp3(bitrate=192,samplerate=44100,stereo=true),
>         description = "Meer dan hits",
>         name = "Free Internet Radio",
>         genre = "van A tot Z van 0 tot 9",
>         url = "www.freeinternetradio.nl",
>         host = "46.166.178.144",
>         mount = "mp3",
>         port = 8000,
>         password = "pasword",
>         main_stream
>         )
>
>
>
> Op 26-5-2016 om 22:45 schreef Romain Beauxis:
>
> Just in: http.put, http.head and http.delete in latest SVN..
>
> 2016-05-26 15:17 GMT-05:00 Romain Beauxis <[email protected]>:
>
>> Hi,
>>
>> You should be able to execute any external process of your choice using
>> for instance system(). Also, you should be able to use http.get and
>> http.post functions. See:
>> http://liquidsoap.fm/doc-svn/reference.html#http_get
>>
>> Romain
>>
>> 2016-05-26 4:07 GMT-05:00 Feiko <[email protected]>:
>>
>>> Hai Lars,
>>>
>>> how liquidsoap can send a command to the Rest Server within RadioDJ.
>>>
>>> I know how it works in RadioDJ, I have made a PHP remote for it, but now
>>> liquidsoap.
>>>
>>> Tnx,
>>> Feiko
>>>
>>> Op 26-5-2016 om 2:49 schreef Lars Kruse:
>>> > Hello Feiko,
>>> >
>>> >
>>> > Am Wed, 25 May 2016 17:51:21 +0200
>>> > schrieb Feiko < <[email protected]>[email protected]>:
>>> >
>>> >> I have RadioDJ which runs a RESTserver and I want liquidsoap trigger
>>> >> some functions.
>>> >>
>>> >> Can somebody tell me how I can do this in liquidsoap???
>>> > which part of these two problems are you looking for?
>>> > The triggering of external commands or the HTTP request?
>>> > The latter is probably possible with liquidsoap's "system" function
>>> combined
>>> > with curl.
>>> > The triggering probably depends on your events of interest.
>>> >
>>> > Lars
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > Mobile security can be enabling, not merely restricting. Employees who
>>> > bring their own devices (BYOD) to work are irked by the imposition of
>>> MDM
>>> > restrictions. Mobile Device Manager Plus allows you to control only the
>>> > apps on BYO-devices by containerizing them, leaving personal data
>>> untouched!
>>> > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>> > _______________________________________________
>>> > Savonet-users mailing list
>>> > [email protected]
>>> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Mobile security can be enabling, not merely restricting. Employees who
>>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>> apps on BYO-devices by containerizing them, leaving personal data
>>> untouched!
>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data 
> untouched!https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>
>
>
> _______________________________________________
> Savonet-users mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to