{
// 'description' 'Dashboard test'
'type' 'flex' // 'scada' or 'dashboard' or 'flex';
'cellHeight' 220
'timeZone' 'AUTO'
'options' {
'autoRefresh' 60
'unit' 'db'
'showControls' T
'showLoader' T
}
'tiles' [
// Display
{
'title' 'Salon'
'type' 'display'
'w' 3
'h' 1
'macro' <%
{
'token' "readToken"
'class' "weather.noise"
'labels' { 'room' 'salon' }
'start' NOW 20 m -
'end' NOW
'count' 1
} FETCH 0 GET VALUES 0 GET
%>
}
{
'title' 'Enfants'
'type' 'display'
'w' 3
'h' 1
'unit' 'db'
'macro' <%
{
'token' "readToken"
'class' "weather.noise"
'labels' { 'room' 'enfants' }
'start' NOW 20 m -
'end' NOW
'count' 1
} FETCH 0 GET VALUES 0 GET
%>
}
{
'title' 'Parents'
'type' 'display'
'w' 3
'h' 1
'unit' 'db'
'macro' <%
{
'token' "readToken"
'class' "weather.noise"
'labels' { 'room' 'parents' }
'start' NOW 20 m -
'end' NOW
'count' 1
} FETCH 0 GET VALUES 0 GET
%>
}
{
'title' 'Extérieur'
'type' 'display'
'w' 3
'h' 1
'unit' 'db'
'macro' <%
{
'token' "readToken"
'class' "weather.noise"
'labels' { 'room' 'exterieur' }
'start' NOW 20 m -
'end' NOW
'count' 1
} FETCH 0 GET VALUES 0 GET
%>
}
// Chart 48h
{
'title' 'History'
'type' 'line'
'w' 12
'h' 2
'macro' <%
{
'token' "readToken"
'class' "weather.noise"
'labels' { }
'end' NOW
'start' NOW 4 d -
} FETCH
%>
}
]
}