Luup Requests

From MiOS
(Difference between revisions)
Jump to: navigation, search
(New page: In addition to sending requests using standard UPnP, you can also do most things using a simple http requests. Use the built-in URL 'data_request', and pass the following on the URL: "id"...)

Revision as of 01:32, 21 June 2009

In addition to sending requests using standard UPnP, you can also do most things using a simple http requests. Use the built-in URL 'data_request', and pass the following on the URL: "id" is the id of the request, "output_format" is the format in which you want a response as "json", "xml" or "text". Not all requests support all output_formats. Here is a list of requests:

Contents

user_data

Example: http://ipaddress:49451/data_request?id=user_data&output_format=xml

This returns the configuration data for Vera, which is a list of all devices and the upnp variables which are persisted between resets as well as rooms, names, and other data the user sets as part of the configuration.

lu_status

Example: http://ipaddress:49451/data_request?id=lu_status&output_format=xml

This returns the current status for all devices including all the current upnp variables and the status of any active jobs.

lu_actions

lu_device

lu_file

lu_lua

lu_action

Example: http://ipaddress:49451/data_request?id=lu_action&output_format=xml&DeviceNum=6&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1

Sends a UPnP action.

lu_variable

lu_reload

Resets the Luup engine with any new configuration settings.

lu_alive

Return OK if the engine is running.

Personal tools