An overview of all commands and functionality, with example Lua code.
For convenience, and for using digiline buttons, all commands can also be sent as text.
Lua:
digiline_send("telemosaic", {command = "setchannel", channel = "whatever"})
Text: setchannel whatever
Lua:
digiline_send("telemosaic", {command = "disable"})
Text: disable
Lua:
digiline_send("telemosaic", {command = "enable"})
Text: enable
Lua:
digiline_send("telemosaic", {command = "setdest", x = 0, y = 0, z = 0})
or
digiline_send("telemosaic", {command = "setdest", pos = {x = 0, y = 0, z = 0}})
Text: setdest 0,0,0
Note that the destination will only be set if it's valid (beacon at destination).
Lua
digiline_send("telemosaic", {command = "get"})
Text: get
or GET
Returns a table containing the following:
{
state = "active", -- or "disabled", "off", or "error"
pos = {x = 1, y = 2, z = 3},
destination = {x = 4, y = 5, z = 6},
origin = {x = 1, y = 2, z = 3}, -- same as 'pos'
target = {x = 4, y = 5, z = 6}, -- same as 'destination'
}