1.3 KiB
1.3 KiB
Telemosaic digilines documentation
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.
Change the digiline channel
Lua:
digiline_send("telemosaic", {command = "setchannel", channel = "whatever"})
Text: setchannel whatever
Disable a beacon
Lua:
digiline_send("telemosaic", {command = "disable"})
Text: disable
Enable a beacon
Lua:
digiline_send("telemosaic", {command = "enable"})
Text: enable
Set a new destination
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).
Get data from a beacon
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'
}