freeboard-leaflet-realtime
Version:
Freeboard plugin for real time Leaflet web maps
168 lines • 3.65 kB
JSON
{
"allow_edit" : true,
"header_image" : "https://raw.github.com/Freeboard/branding/master/renesas/renesas_logo.png",
"panes": [
{
"title" : "Tilt",
"width" : 1,
"row" : { "3": 1 },
"col" : { "3": 1 },
"widgets": [
{
"type" : "pointer",
"settings": {
"direction" : "datasources.RL78.Acceleration_X * -90",
"value_text": "(datasources.RL78.Acceleration_X * -90).toFixed(0)",
"units" : "degrees"
}
},
{
"type" : "text_widget",
"settings": {
"title" : "Y",
"size" : "regular",
"value" : "(datasources.RL78.Acceleration_Y * 90).toFixed(0)",
"sparkline": true,
"animate" : true,
"units" : "°"
}
},
{
"type" : "text_widget",
"settings": {
"title" : "Z",
"size" : "regular",
"value" : "(datasources.RL78.Acceleration_Z * -90).toFixed(0)",
"sparkline": true,
"animate" : true,
"units" : "°"
}
}
]
},
{
"title" : "Buttons",
"width" : 1,
"row" : { "3": 5 },
"col" : { "3": 3 },
"widgets": [
{
"type" : "indicator",
"settings": {
"value" : "datasources.RL78.Button_1",
"on_text" : "Button 1 is ON",
"off_text": "Button 1 is OFF"
}
},
{
"type" : "indicator",
"settings": {
"value" : "datasources.RL78.Button_2",
"on_text" : "Button 2 is ON",
"off_text": "Button 2 is OFF"
}
},
{
"type" : "indicator",
"settings": {
"value" : "datasources.RL78.Button_3",
"on_text" : "Button 3 is ON",
"off_text": "Button 3 is OFF"
}
}
]
},
{
"title" : "Temperature",
"width" : 1,
"row" : { "3": 1 },
"col" : { "3": 2 },
"widgets": [
{
"type" : "text_widget",
"settings": {
"title" : "Indoor",
"size" : "big",
"value" : "datasources.RL78.Temperature",
"sparkline": false,
"animate" : true,
"units" : "°F"
}
},
{
"type" : "text_widget",
"settings": {
"title" : "Outdoor",
"size" : "big",
"value" : "((datasources.Weather.main.temp - 273.15) * 1.8 + 32).toFixed(2)",
"animate": true,
"units" : "°F"
}
}
]
},
{
"title" : "Potentiometer",
"width" : 1,
"row" : { "3": 1 },
"col" : { "3": 3 },
"widgets": [
{
"type" : "gauge",
"settings": {
"title" : "",
"value" : "datasources.RL78.Potentiometer",
"units" : "Ω",
"min_value": 0,
"max_value": "1000"
}
}
]
},
{
"title" : "Miscellaneous",
"width" : 1,
"row" : { "3": 6 },
"col" : { "3": 2 },
"widgets": [
{
"type" : "text_widget",
"settings": {
"title" : "Light",
"size" : "regular",
"value" : "datasources.RL78.Light",
"sparkline": true,
"animate" : true
}
},
{
"type" : "text_widget",
"settings": {
"title" : "Sound",
"size" : "regular",
"value" : "datasources.RL78.Sound",
"sparkline": true,
"animate" : true
}
}
]
}
],
"datasources": [
{
"name" : "RL78",
"type" : "rl78",
"settings": {
"device_resource_id": "14f762c59815e24973165668aff677659b973d62"
}
},
{
"name" : "Weather",
"type" : "JSON",
"settings": {
"url" : "http://api.openweathermap.org/data/2.5/weather?q=Seattle,WA",
"refresh" : 5,
"is_jsonp": true
}
}
]}