Functions#
List of myMPD specific Lua functions.
FUNCTION |
DESCRIPTION |
|---|---|
Parses a Json string to a Lua table. |
|
Encodes a Lua table as Json string. |
|
Access to the myMPD API. |
|
Access to the myMPD API. |
|
Writes a cover cache file. |
|
Writes a lyrics cache file. |
|
Writes a thumbs cache file. |
|
Checks arguments from the mympd_arguments global variable. |
|
Returns an Jsonrpc response for a script dialog. |
|
Connects to myGPIOd and blinks a GPIO with given timeout and interval. |
|
Connects to myGPIOd and returns the active state of a GPIO. |
|
Connects to myGPIOd and sets the active value of a GPIO. |
|
Connects to myGPIOd and toggles the active value of a GPIO. |
|
MD5 hash of string. |
|
SHA1 hash of string. |
|
SHA256 hash of string. |
|
Simple HTML encoding. |
|
Simple HTTP client. |
|
Download a file over http. |
|
Get a http header. |
|
Sends a JSONRPC 2.0 error. |
|
Sends a JSONRPC 2.0 response. |
|
Sends a JSONRPC 2.0 warning. |
|
Returns a valid HTTP redirect message. |
|
Returns a valid HTTP response message. |
|
Serves a file from the filesystem. Only files from the diskcache are allowed. |
|
Initializes the Lua table mympd_state. |
|
Checks for empty string or nil. |
|
Creates a JSONRPC 2.0 error. |
|
Creates a JSONRPC 2.0 notification. |
|
Creates a JSONRPC 2.0 warning. |
|
Logging to myMPD log. |
|
Sends a notification to the client. |
|
Sends a notification to all clients in a partition. |
|
Executes a system command and capture its output. |
|
Read an ascii file. |
|
Deletes a file or empty directory. |
|
Sleep ms. |
|
Checks a Lua table of tags against a comma separated list |
|
Generates a random tmp filename for the misc cache. |
|
Deletes a temporary variable. |
|
Gets a temporary variable. |
|
Lists all temporary variables. |
|
Sets a temporary variable. |
|
Removes beginning and ending whitespaces from a string. |
|
Updates the timestamp of a file. |
|
Decodes a URL encoded string. |
|
URL encodes a string. |