hidden
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="hidden">
...
</discovery-tile>
{
'type' 'hidden'
...
'macro' <% %>
}
Name | Type | Description |
---|---|---|
data | String |
Not used |
globalParams | Option |
Global options (see above) concerning this tile |
events | Events[] |
List of events to emit (see below) |
Sample
{
'title' 'Dashboard with timer'
'vars' {
'start' NOW
}
'tiles' [
{
'endpoint' 'wss://sandbox.senx.io/api/v0/mobius' // Uses WebSockets
'options' { 'autoRefresh' 1000 'timeMode' 'custom' } // refresh each second
'x' 0 'y' 0 'w' 6 'h' 1
'type' 'hidden'
'macro' <%
NOW 'now' STORE
{ 'data' '' 'events' [ { 'tags' [ 'start' ] 'type' 'variable' 'value' { 'start' $now } } ] }
%>
}
{
'title' 'Timer'
'options' { 'eventHandler' 'type=variable,tag=start' }
'x' 3 'y' 0 'w' 6 'h' 1
'type' 'display'
'macro' <%
$start 'Europe/Paris' ->TSELEMENTS [ 3 5 ] SUBLIST <% TOSTRING 'v' STORE <% $v SIZE 2 < %> <% '0' $v + %> <% $v %> IFTE %> F LMAP ':' JOIN
%>
}
]
}
Found an issue on this page or something missing?
Tell us onThe Lounge, the Warp 10 Community Slack.