Interaction
audioscrobbler.api.track.scrobble
Submit a track to the audioscrobbler track.scrobble API.
Type:
(username : string, password : string, ?session_key : string?,
?api_key : string?, ?api_secret : string?, artist : string, track : string,
?timestamp : float?, ?album : string?, ?context : string?,
?streamId : string?, ?chosenByUser : bool, ?trackNumber : int?,
?mbid : string?, ?albumArtist : string?, ?duration : int?) -> unit
Arguments:
username(of typestring)password(of typestring)session_key(of typestring?, which defaults tonull)api_key(of typestring?, which defaults tonull)api_secret(of typestring?, which defaults tonull)artist(of typestring)track(of typestring)timestamp(of typefloat?, which defaults tonull)album(of typestring?, which defaults tonull)context(of typestring?, which defaults tonull)streamId(of typestring?, which defaults tonull)chosenByUser(of typebool, which defaults totrue)trackNumber(of typeint?, which defaults tonull)mbid(of typestring?, which defaults tonull)albumArtist(of typestring?, which defaults tonull)duration(of typeint?, which defaults tonull)
Methods:
lfm(of type{ scrobbles : { scrobble : { album : string? .{xml_params : {corrected : int} }, albumArtist : string? .{xml_params : {corrected : int} }, artist : string .{xml_params : {corrected : int} }, ignoredMessage : {xml_params : {code : int} }, timestamp : float, track : string .{xml_params : {corrected : int} } }, xml_params : {accepted : int, ignored : int } }, xml_params : {status : string } }):
audioscrobbler.api.track.scrobble.metadata
Submit a track to the audioscrobbler track.scrobble API using its metadata.
Type:
(username : string, password : string, ?session_key : string?,
?api_key : string?, ?api_secret : string?, [string * string]) -> unit
Arguments:
username(of typestring)password(of typestring)session_key(of typestring?, which defaults tonull)api_key(of typestring?, which defaults tonull)api_secret(of typestring?, which defaults tonull)(unlabeled)(of type[string * string])
audioscrobbler.api.track.updateNowPlaying
Submit a track to the audioscrobbler track.updateNowPlaying API.
Type:
(username : string, password : string, ?session_key : string?,
?api_key : string?, ?api_secret : string?, artist : string, track : string,
?album : string?, ?context : string?, ?trackNumber : int?, ?mbid : string?,
?albumArtist : string?, ?duration : int?) -> unit
Arguments:
username(of typestring)password(of typestring)session_key(of typestring?, which defaults tonull)api_key(of typestring?, which defaults tonull)api_secret(of typestring?, which defaults tonull)artist(of typestring)track(of typestring)album(of typestring?, which defaults tonull)context(of typestring?, which defaults tonull)trackNumber(of typeint?, which defaults tonull)mbid(of typestring?, which defaults tonull)albumArtist(of typestring?, which defaults tonull)duration(of typeint?, which defaults tonull)
Methods:
lfm(of type{ nowplaying : { album : string? .{xml_params : {corrected : int} }, albumArtist : string? .{xml_params : {corrected : int} }, artist : string .{xml_params : {corrected : int} }, ignoredMessage : {xml_params : {code : int} }, track : string .{xml_params : {corrected : int} } }, xml_params : {status : string } }):
audioscrobbler.api.track.updateNowPlaying.metadata
Submit a track using its metadata to the audioscrobbler track.updateNowPlaying API.
Type:
(username : string, password : string, ?session_key : string?,
?api_key : string?, ?api_secret : string?, [string * string]) -> unit
Arguments:
username(of typestring)password(of typestring)session_key(of typestring?, which defaults tonull)api_key(of typestring?, which defaults tonull)api_secret(of typestring?, which defaults tonull)(unlabeled)(of type[string * string])
http.codes
List of HTTP response codes and statuses.
Type:
[int * string]
icy.update_metadata
Update metata on an icecast mountpoint using the ICY protocol.
Type:
(?host : string, ?port : int, ?user : string, ?transport : http_transport,
?password : string, ?mount : string, ?icy_id : int, ?protocol : string,
?encoding : string?, ?headers : [string * string], [string * string]) ->
unit
Arguments:
host(of typestring, which defaults to"localhost")port(of typeint, which defaults to8000)user(of typestring, which defaults to"source")transport(of typehttp_transport, which defaults to<unix_transport>): Http transport. Usehttp.transport.sslorhttp.transport.secure_transport, when available, to enable HTTPS outputpassword(of typestring, which defaults to"hackme")mount(of typestring, which defaults to""): Source mount point. Mandatory when streaming to icecast.icy_id(of typeint, which defaults to1): Shoutcast source ID. Only supported by Shoutcast v2.protocol(of typestring, which defaults to"http"): Protocol to use. One of: "icy", "http" or "https"encoding(of typestring?, which defaults tonull): Encoding used to send metadata, default (UTF-8) if null.headers(of type[string * string], which defaults to[("User-Agent", "Liquidsoap/2.4.5 (Unix; OCaml 4.14.2)")]): Additional headers.(unlabeled)(of type[string * string])
interactive.persistency
Function called to ensure persistency of data.
Type:
() -> () -> unit
osc.bool
Read from an OSC path.
Type:
(string, bool) -> () -> bool
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typebool): Initial value.
osc.float
Read from an OSC path.
Type:
(string, float) -> () -> float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Initial value.
osc.float_pair
Read from an OSC path.
Type:
(string, (float * float)) -> () -> float * float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Initial value.
osc.int
Read from an OSC path.
Type:
(string, int) -> () -> int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Initial value.
osc.int_pair
Read from an OSC path.
Type:
(string, (int * int)) -> () -> int * int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Initial value.
osc.native.float
Read from an OSC path.
Type:
(string, float) -> () -> float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Initial value.
osc.native.float_pair
Read from an OSC path.
Type:
(string, (float * float)) -> () -> float * float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Initial value.
osc.native.int
Read from an OSC path.
Type:
(string, int) -> () -> int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Initial value.
osc.native.int_pair
Read from an OSC path.
Type:
(string, (int * int)) -> () -> int * int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Initial value.
osc.native.on_float
Register a callback on OSC messages.
Type:
(string, ((float) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(float) -> unit): Callback function.
osc.native.on_float_pair
Register a callback on OSC messages.
Type:
(string, (((float * float)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((float * float)) -> unit): Callback function.
osc.native.on_int
Register a callback on OSC messages.
Type:
(string, ((int) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(int) -> unit): Callback function.
osc.native.on_int_pair
Register a callback on OSC messages.
Type:
(string, (((int * int)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((int * int)) -> unit): Callback function.
osc.native.on_string
Register a callback on OSC messages.
Type:
(string, ((string) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(string) -> unit): Callback function.
osc.native.on_string_pair
Register a callback on OSC messages.
Type:
(string, (((string * string)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((string * string)) -> unit): Callback function.
osc.native.send_float
Send a value to an OSC client.
Type:
(host : string, port : int, string, float) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Value to send.
osc.native.send_float_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (float * float)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Value to send.
osc.native.send_int
Send a value to an OSC client.
Type:
(host : string, port : int, string, int) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Value to send.
osc.native.send_int_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (int * int)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Value to send.
osc.native.send_string
Send a value to an OSC client.
Type:
(host : string, port : int, string, string) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Value to send.
osc.native.send_string_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (string * string)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Value to send.
osc.native.string
Read from an OSC path.
Type:
(string, string) -> () -> string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Initial value.
osc.native.string_pair
Read from an OSC path.
Type:
(string, (string * string)) -> () -> string * string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Initial value.
osc.on_bool
Register a callback on OSC messages.
Type:
(string, ((bool) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(bool) -> unit): Callback function.
osc.on_float
Register a callback on OSC messages.
Type:
(string, ((float) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(float) -> unit): Callback function.
osc.on_float_pair
Register a callback on OSC messages.
Type:
(string, (((float * float)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((float * float)) -> unit): Callback function.
osc.on_int
Register a callback on OSC messages.
Type:
(string, ((int) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(int) -> unit): Callback function.
osc.on_int_pair
Register a callback on OSC messages.
Type:
(string, (((int * int)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((int * int)) -> unit): Callback function.
osc.on_string
Register a callback on OSC messages.
Type:
(string, ((string) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(string) -> unit): Callback function.
osc.on_string_pair
Register a callback on OSC messages.
Type:
(string, (((string * string)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((string * string)) -> unit): Callback function.
osc.send_bool
Send a value to an OSC client.
Type:
(host : string, port : int, string, bool) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typebool): Value to send.
osc.send_float
Send a value to an OSC client.
Type:
(host : string, port : int, string, float) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Value to send.
osc.send_float_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (float * float)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Value to send.
osc.send_int
Send a value to an OSC client.
Type:
(host : string, port : int, string, int) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Value to send.
osc.send_int_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (int * int)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Value to send.
osc.send_string
Send a value to an OSC client.
Type:
(host : string, port : int, string, string) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Value to send.
osc.send_string_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (string * string)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Value to send.
osc.string
Read from an OSC path.
Type:
(string, string) -> () -> string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Initial value.
osc.string_pair
Read from an OSC path.
Type:
(string, (string * string)) -> () -> string * string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Initial value.
prometheus.counter
Register a prometheus counter
Type:
(help : string, ?namespace : string, ?subsystem : string, labels : [string],
string) -> (label_values : [string]) -> (float) -> unit
Arguments:
help(of typestring): Help of the metricnamespace(of typestring, which defaults to""): namespace of the metricsubsystem(of typestring, which defaults to""): subsystem of the metriclabels(of type[string]): labels for the metric(unlabeled)(of typestring): Name of the metric
prometheus.gauge
Register a prometheus gauge
Type:
(help : string, ?namespace : string, ?subsystem : string, labels : [string],
string) -> (label_values : [string]) -> (float) -> unit
Arguments:
help(of typestring): Help of the metricnamespace(of typestring, which defaults to""): namespace of the metricsubsystem(of typestring, which defaults to""): subsystem of the metriclabels(of type[string]): labels for the metric(unlabeled)(of typestring): Name of the metric
prometheus.summary
Register a prometheus summary
Type:
(help : string, ?namespace : string, ?subsystem : string, labels : [string],
string) -> (label_values : [string]) -> (float) -> unit
Arguments:
help(of typestring): Help of the metricnamespace(of typestring, which defaults to""): namespace of the metricsubsystem(of typestring, which defaults to""): subsystem of the metriclabels(of type[string]): labels for the metric(unlabeled)(of typestring): Name of the metric
server.register
Register a command. You can then execute this function through the server, either telnet or socket.
Type:
(?namespace : string?, ?description : string, ?usage : string?, string,
((string) -> string)) -> unit
Arguments:
namespace(of typestring?, which defaults tonull): Used to group multiple commands for the same functionality. If specified, the command will be namednamespace.command.description(of typestring, which defaults to"No documentation available."): A description of your command.usage(of typestring?, which defaults tonull): Description of how the command should be used.(unlabeled)(of typestring): Name of the command.(unlabeled)(of type(string) -> string): Function called when the command is executed. It takes as argument the argument passed on the commandline and returns the message which will be printed on the commandline.
server.telnet
Enable telnet server.
Type:
(?port : int) -> unit
Arguments:
port(of typeint, which defaults to1234): Port on which we should listen.
variables
Information about all variables
Type:
() -> [string * {description : string, type : string}]
variables_bool
Bool variables
Type:
() -> [string * {ref : (() -> bool).{set : (bool) -> unit}}]
variables_float
Float variables
Type:
() ->
[string *
{
max : float,
min : float,
ref : (() -> float)
.{set : (float) -> unit
},
step : float,
unit : string
}]
variables_int
Int variables
Type:
() -> [string * {ref : (() -> int).{set : (int) -> unit}}]
variables_string
String variables
Type:
() -> [string * {ref : (() -> string).{set : (string) -> unit}}]
variables_unit
Unit variables: those are not references but handler functions
Type:
() -> [string * {handler : () -> unit}]