58 lines
1.6 KiB
JavaScript
58 lines
1.6 KiB
JavaScript
/*deccoboard.loadConfiguration({
|
|
"allow_edit" : true,
|
|
"datasources": [
|
|
{
|
|
name : "Weather",
|
|
type : "JSON",
|
|
settings : {
|
|
url : "http://api.openweathermap.org/data/2.5/weather?q=London,uk",
|
|
refresh: 5,
|
|
is_jsonp : true,
|
|
headers : [
|
|
{
|
|
name : "blah 1",
|
|
value : "value"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
name : "RL78",
|
|
type : "rl78",
|
|
settings: {
|
|
device_resource_id : "b3273d7585fa85642140749a63ebc02fcc142ace"
|
|
}
|
|
}
|
|
],
|
|
"panes" : [
|
|
{
|
|
"title" : "Status",
|
|
"width" : 1,
|
|
"row" : 1,
|
|
"col" : 1,
|
|
"widgets": [
|
|
{
|
|
"type" : "big-text",
|
|
"value" : 'javascript: datasources.Weather.wind.speed',
|
|
"refresh": ["Weather"],
|
|
"units" : "MPH"
|
|
},
|
|
{
|
|
"type" : "text-with-sparkline",
|
|
"value" : 'javascript: datasources.Weather.wind.speed',
|
|
"refresh": ["Weather"],
|
|
"units" : "MPH"
|
|
},
|
|
{
|
|
"title" : "Power",
|
|
"type" : "gauge",
|
|
"value" : 'javascript: datasources.Weather.wind.speed',
|
|
"refresh": ["Weather"],
|
|
"units" : "MPH",
|
|
"min" : 0,
|
|
"max" : 200
|
|
}
|
|
]
|
|
}
|
|
]
|
|
});*/ |