Android sense execution plans changed to be used with multiline charts.

revert-dabc3590
Menaka Jayawardena 8 years ago
parent 4add08545a
commit f0d7e4648a

@ -3,16 +3,16 @@
@Plan:description('Process accelerometer changes.') @Plan:description('Process accelerometer changes.')
@Import('org.wso2.iot.android.accelerometer:1.0.0') @Import('org.wso2.iot.android.accelerometer:1.0.0')
define stream AccelerometerStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream AccelerometerStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value
float);
@Export('org.wso2.iot.android.accelerometer.stats:1.0.0') @Export('org.wso2.iot.android.accelerometer.stats:1.0.0')
define stream AccelerometerStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, x define stream AccelerometerStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float, year int, month int, day int, hour int, minute int);
float, y float, z float, year int, month int, day int, hour int, minute int);
partition with (meta_deviceId of AccelerometerStream) partition with (meta_deviceId of AccelerometerStream)
begin begin
from AccelerometerStream from AccelerometerStream
select meta_owner, meta_deviceId, meta_timestamp, x, y, z, time:extract select meta_owner, meta_deviceId, meta_timestamp, axis, value, time:extract
(meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute (meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute
insert into AccelerometerStatsStream; insert into AccelerometerStatsStream;
end; end;

@ -26,23 +26,15 @@
<Type>LONG</Type> <Type>LONG</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>x</Name> <Name>axis</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam> <EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type> <Type>STRING</Type>
</ColumnDefinition>
<ColumnDefinition>
<Name>y</Name>
<IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>z</Name> <Name>value</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
}, },
{ {

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
} }
] ]

@ -33,19 +33,19 @@ define stream SmsStream (meta_owner string, meta_deviceId string, meta_timestamp
define stream geoLocationStream (id string, timeStamp long, latitude double, longitude double, type string, speed float, heading float); define stream geoLocationStream (id string, timeStamp long, latitude double, longitude double, type string, speed float, heading float);
@Export('org.wso2.iot.android.accelerometer:1.0.0') @Export('org.wso2.iot.android.accelerometer:1.0.0')
define stream AccelerometerStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream AccelerometerStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.gyroscope:1.0.0') @Export('org.wso2.iot.android.gyroscope:1.0.0')
define stream GyroscopeStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream GyroscopeStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.magnetic:1.0.0') @Export('org.wso2.iot.android.magnetic:1.0.0')
define stream MagneticStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream MagneticStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.gravity:1.0.0') @Export('org.wso2.iot.android.gravity:1.0.0')
define stream GravityStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream GravityStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float);
@Export('org.wso2.iot.android.rotation:1.0.0') @Export('org.wso2.iot.android.rotation:1.0.0')
define stream RotationStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream RotationStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.pressure:1.0.0') @Export('org.wso2.iot.android.pressure:1.0.0')
define stream PressureStream (meta_owner string, meta_deviceId string, meta_timestamp long, pressure float); define stream PressureStream (meta_owner string, meta_deviceId string, meta_timestamp long, pressure float);
@ -57,14 +57,39 @@ define stream LightStream (meta_owner string, meta_deviceId string, meta_timesta
define stream ProximityStream (meta_owner string, meta_deviceId string, meta_timestamp long, proximity float); define stream ProximityStream (meta_owner string, meta_deviceId string, meta_timestamp long, proximity float);
from AndroidSense[meta_type == 'accelerometer'] from AndroidSense[meta_type == 'accelerometer']
select meta_owner, meta_deviceId, meta_timestamp, accelerometer_x as x, accelerometer_y as y, accelerometer_z as z select meta_owner, meta_deviceId, meta_timestamp, 'X' as axis, accelerometer_x as value
insert into AccelerometerStream;
from AndroidSense[meta_type == 'accelerometer']
select meta_owner, meta_deviceId, meta_timestamp, 'Y' as axis, accelerometer_y as value
insert into AccelerometerStream;
from AndroidSense[meta_type == 'accelerometer']
select meta_owner, meta_deviceId, meta_timestamp, 'Z' as axis, accelerometer_z as value
insert into AccelerometerStream; insert into AccelerometerStream;
from AndroidSense[meta_type == 'gyroscope'] from AndroidSense[meta_type == 'gyroscope']
select meta_owner, meta_deviceId, meta_timestamp, gyroscope_x as x, gyroscope_y as y, gyroscope_z as z select meta_owner, meta_deviceId, meta_timestamp, 'X' as axis, gyroscope_x as value
insert into GyroscopeStream; insert into GyroscopeStream;
from AndroidSense[meta_type == 'gyroscope']
select meta_owner, meta_deviceId, meta_timestamp, 'Y' as axis, gyroscope_y as value
insert into GyroscopeStream;
from AndroidSense[meta_type == 'gyroscope']
select meta_owner, meta_deviceId, meta_timestamp, 'Z' as axis, gyroscope_z as value
insert into GyroscopeStream;
from AndroidSense[meta_type == 'magnetic'] from AndroidSense[meta_type == 'magnetic']
select meta_owner, meta_deviceId, meta_timestamp, magnetic_x as x, magnetic_y as y, magnetic_z as z select meta_owner, meta_deviceId, meta_timestamp, 'X' as axis, magnetic_x as value
insert into MagneticStream;
from AndroidSense[meta_type == 'magnetic']
select meta_owner, meta_deviceId, meta_timestamp, 'Y' as axis, magnetic_y as value
insert into MagneticStream;
from AndroidSense[meta_type == 'magnetic']
select meta_owner, meta_deviceId, meta_timestamp, 'Z' as axis, magnetic_z as value
insert into MagneticStream; insert into MagneticStream;
from AndroidSense[meta_type == 'gravity'] from AndroidSense[meta_type == 'gravity']
@ -72,7 +97,15 @@ select meta_owner, meta_deviceId, meta_timestamp, gravity_x as x, gravity_y as y
insert into GravityStream; insert into GravityStream;
from AndroidSense[meta_type == 'rotation'] from AndroidSense[meta_type == 'rotation']
select meta_owner, meta_deviceId, meta_timestamp, rotation_x as x, rotation_y as y, rotation_z as z select meta_owner, meta_deviceId, meta_timestamp, 'X' as axis, rotation_x as value
insert into RotationStream;
from AndroidSense[meta_type == 'rotation']
select meta_owner, meta_deviceId, meta_timestamp, 'Y' as axis, rotation_y as value
insert into RotationStream;
from AndroidSense[meta_type == 'rotation']
select meta_owner, meta_deviceId, meta_timestamp, 'Z' as axis, rotation_z as value
insert into RotationStream; insert into RotationStream;
from AndroidSense[meta_type == 'pressure'] from AndroidSense[meta_type == 'pressure']

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
* *
* WSO2 Inc. licenses this file to you under the Apache License, * WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except * Version 2.0 (the "License"); you may not use this file except

@ -3,16 +3,16 @@
@Plan:description('Process gyroscope changes.') @Plan:description('Process gyroscope changes.')
@Import('org.wso2.iot.android.gyroscope:1.0.0') @Import('org.wso2.iot.android.gyroscope:1.0.0')
define stream GyroscopeStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream GyroscopeStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.gyroscope.stats:1.0.0') @Export('org.wso2.iot.android.gyroscope.stats:1.0.0')
define stream GyroscopeStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, x define stream GyroscopeStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value
float, y float, z float, year int, month int, day int, hour int, minute int); float, year int, month int, day int, hour int, minute int);
partition with (meta_deviceId of GyroscopeStream) partition with (meta_deviceId of GyroscopeStream)
begin begin
from GyroscopeStream from GyroscopeStream
select meta_owner, meta_deviceId, meta_timestamp, x, y, z, time:extract select meta_owner, meta_deviceId, meta_timestamp, axis, value, time:extract (meta_timestamp, 'year') as year,
(meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute
insert into GyroscopeStatsStream; insert into GyroscopeStatsStream;
end; end;

@ -26,23 +26,15 @@
<Type>LONG</Type> <Type>LONG</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>x</Name> <Name>axis</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam> <EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type> <Type>STRING</Type>
</ColumnDefinition>
<ColumnDefinition>
<Name>y</Name>
<IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>z</Name> <Name>value</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
}, },
{ {

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
} }
] ]

@ -3,16 +3,15 @@
@Plan:description('Process magnetic field changes.') @Plan:description('Process magnetic field changes.')
@Import('org.wso2.iot.android.magnetic:1.0.0') @Import('org.wso2.iot.android.magnetic:1.0.0')
define stream MagneticStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream MagneticStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.magnetic.stats:1.0.0') @Export('org.wso2.iot.android.magnetic.stats:1.0.0')
define stream MagneticStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, x define stream MagneticStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float, year int, month int, day int, hour int, minute int);
float, y float, z float, year int, month int, day int, hour int, minute int);
partition with (meta_deviceId of MagneticStream) partition with (meta_deviceId of MagneticStream)
begin begin
from MagneticStream from MagneticStream
select meta_owner, meta_deviceId, meta_timestamp, x, y, z, time:extract select meta_owner, meta_deviceId, meta_timestamp, axis, value, time:extract
(meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute (meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute
insert into MagneticStatsStream; insert into MagneticStatsStream;
end; end;

@ -26,23 +26,15 @@
<Type>LONG</Type> <Type>LONG</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>x</Name> <Name>axis</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam> <EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type> <Type>STRING</Type>
</ColumnDefinition>
<ColumnDefinition>
<Name>y</Name>
<IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>z</Name> <Name>value</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
}, },
{ {

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
} }
] ]

@ -3,16 +3,16 @@
@Plan:description('Process rotation field changes.') @Plan:description('Process rotation field changes.')
@Import('org.wso2.iot.android.rotation:1.0.0') @Import('org.wso2.iot.android.rotation:1.0.0')
define stream RotationStream (meta_owner string, meta_deviceId string, meta_timestamp long, x float, y float, z float); define stream RotationStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
@Export('org.wso2.iot.android.rotation.stats:1.0.0') @Export('org.wso2.iot.android.rotation.stats:1.0.0')
define stream RotationStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, x define stream RotationStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value
float, y float, z float, year int, month int, day int, hour int, minute int); float, year int, month int, day int, hour int, minute int);
partition with (meta_deviceId of RotationStream) partition with (meta_deviceId of RotationStream)
begin begin
from RotationStream from RotationStream
select meta_owner, meta_deviceId, meta_timestamp, x, y, z, time:extract select meta_owner, meta_deviceId, meta_timestamp, axis, value, time:extract
(meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute (meta_timestamp, 'year') as year, time:extract(meta_timestamp, 'month') as month, time:extract(meta_timestamp, 'day') as day, time:extract(meta_timestamp, 'hour') as hour, time:extract(meta_timestamp, 'minute') as minute
insert into RotationStatsStream; insert into RotationStatsStream;
end; end;

@ -26,23 +26,15 @@
<Type>LONG</Type> <Type>LONG</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>x</Name> <Name>axis</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam> <EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type> <Type>STRING</Type>
</ColumnDefinition>
<ColumnDefinition>
<Name>y</Name>
<IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam>
<Type>FLOAT</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>z</Name> <Name>value</Name>
<IsFacet>false</IsFacet> <IsFacet>false</IsFacet>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
}, },
{ {

@ -19,15 +19,11 @@
], ],
"payloadData": [ "payloadData": [
{ {
"name": "x", "name": "axis",
"type": "FLOAT" "type": "STRING"
},
{
"name": "y",
"type": "FLOAT"
}, },
{ {
"name": "z", "name": "value",
"type": "FLOAT" "type": "FLOAT"
} }
] ]

@ -10,17 +10,17 @@
"hideAllMenuItems": false, "hideAllMenuItems": false,
"id": "android-iot", "id": "android-iot",
"identityServerUrl": "", "identityServerUrl": "",
"isEditorEnable": true, "isEditorEnable": false,
"isUserCustom": false, "isUserCustom": false,
"isanon": false, "isanon": false,
"landing": "home", "landing": "sensors",
"menu": [ "menu": [
{ {
"id": "home", "id": "sensors",
"isanon": false, "isanon": false,
"ishidden": false, "ishidden": false,
"subordinates": [], "subordinates": [],
"title": "Home" "title": "Sensors"
}, },
{ {
"id": "real-time", "id": "real-time",
@ -61,7 +61,7 @@
"id": "test", "id": "test",
"isanon": false, "isanon": false,
"ishidden": false, "ishidden": false,
"title": "test", "title": "Test",
"subordinates": [] "subordinates": []
} }
], ],
@ -70,22 +70,23 @@
"content": { "content": {
"anon": {}, "anon": {},
"default": { "default": {
"a": [ "a": [],
"b": [
{ {
"id": "ACCELEROMETER_Y-0", "id": "ANDROID_MAGNETIC_GADGET-0",
"content": { "content": {
"id": "ACCELEROMETER_Y", "id": "ANDROID_MAGNETIC_GADGET",
"title": "ACCELEROMETER Y", "title": "ANDROID_MAGNETIC_GADGET",
"type": "gadget", "type": "gadget",
"thumbnail": "fs://gadget/ACCELEROMETER_Y/thumbnail.png", "thumbnail": "fs://gadget/ANDROID_MAGNETIC_GADGET/thumbnail.png",
"data": { "data": {
"url": "fs://gadget/ACCELEROMETER_Y/gadget.xml" "url": "fs://gadget/ANDROID_MAGNETIC_GADGET/gadget.xml"
}, },
"styles": { "styles": {
"no_heading": false, "no_heading": false,
"hide_gadget": false, "hide_gadget": false,
"titlePosition": "center", "titlePosition": "center",
"title": "ACCELEROMETER Y" "title": "MAGNETIC FIELD"
}, },
"options": { "options": {
"windowSize": { "windowSize": {
@ -97,7 +98,7 @@
} }
}, },
"locale_titles": { "locale_titles": {
"en-US": "ACCELEROMETER Y" "en-US": "MAGNETIC FIELD"
}, },
"settings": { "settings": {
"priority": "5", "priority": "5",
@ -106,58 +107,22 @@
} }
} }
], ],
"b": [
{
"id": "ACCELEROMETER_Z-0",
"content": {
"id": "ACCELEROMETER_Z",
"title": "ACCELEROMETER Z",
"type": "gadget",
"thumbnail": "fs://gadget/ACCELEROMETER_Z/thumbnail.png",
"data": {
"url": "fs://gadget/ACCELEROMETER_Z/gadget.xml"
},
"styles": {
"no_heading": false,
"hide_gadget": false,
"titlePosition": "center",
"title": "ACCELEROMETER Z"
},
"options": {
"windowSize": {
"type": "STRING",
"title": "Window Size",
"value": "10",
"options": [],
"required": false
}
},
"locale_titles": {
"en-US": "ACCELEROMETER Z"
},
"settings": {
"priority": "5",
"timeoutInterval": "60000"
}
}
}
],
"8e564cb7a1c6519179e2111cc05a79ca": [ "8e564cb7a1c6519179e2111cc05a79ca": [
{ {
"id": "Accelerometer_X-0", "id": "ANDROID_ACCELEROMETER_GADGET-0",
"content": { "content": {
"id": "Accelerometer_X", "id": "ANDROID_ACCELEROMETER_GADGET",
"title": "Accelerometer X", "title": "ANDROID_ACCELEROMETER_GADGET",
"type": "gadget", "type": "gadget",
"thumbnail": "fs://gadget/Accelerometer_X/thumbnail.png", "thumbnail": "fs://gadget/ANDROID_ACCELEROMETER_GADGET/thumbnail.png",
"data": { "data": {
"url": "fs://gadget/Accelerometer_X/gadget.xml" "url": "fs://gadget/ANDROID_ACCELEROMETER_GADGET/gadget.xml"
}, },
"styles": { "styles": {
"no_heading": false, "no_heading": false,
"hide_gadget": false, "hide_gadget": false,
"titlePosition": "center", "titlePosition": "center",
"title": "Accelerometer X" "title": "ACCELEROMETER"
}, },
"options": { "options": {
"windowSize": { "windowSize": {
@ -169,7 +134,7 @@
} }
}, },
"locale_titles": { "locale_titles": {
"en-US": "Accelerometer X" "en-US": "ACCELEROMETER"
}, },
"settings": { "settings": {
"priority": "5", "priority": "5",
@ -249,43 +214,107 @@
} }
} }
} }
],
"765379a7012b8819ea13524e5b312509": [
{
"id": "ANDROID_ROTATION_GADGET-0",
"content": {
"id": "ANDROID_ROTATION_GADGET",
"title": "ANDROID_ROTATION_GADGET",
"type": "gadget",
"thumbnail": "fs://gadget/ANDROID_ROTATION_GADGET/thumbnail.png",
"data": {
"url": "fs://gadget/ANDROID_ROTATION_GADGET/gadget.xml"
},
"styles": {
"no_heading": false,
"hide_gadget": false,
"titlePosition": "center",
"title": "ROTATIONAL VECTOR"
},
"options": {
"windowSize": {
"type": "STRING",
"title": "Window Size",
"value": "10",
"options": [],
"required": false
}
},
"locale_titles": {
"en-US": "ROTATIONAL VECTOR"
},
"settings": {
"priority": "5",
"timeoutInterval": "60000"
}
}
}
],
"47ceaee8a089ea8ef75c91e5b83a1a36": [
{
"id": "ANDROID_GYROSCOPE_GADGET-0",
"content": {
"id": "ANDROID_GYROSCOPE_GADGET",
"title": "ANDROID_GYROSCOPE_GADGET",
"type": "gadget",
"thumbnail": "fs://gadget/ANDROID_GYROSCOPE_GADGET/thumbnail.png",
"data": {
"url": "fs://gadget/ANDROID_GYROSCOPE_GADGET/gadget.xml"
},
"styles": {
"no_heading": false,
"hide_gadget": false,
"titlePosition": "center",
"title": "GYROSCOPE"
},
"options": {
"windowSize": {
"type": "STRING",
"title": "Window Size",
"value": "10",
"options": [],
"required": false
}
},
"locale_titles": {
"en-US": "GYROSCOPE"
},
"settings": {
"priority": "5",
"timeoutInterval": "60000"
}
}
}
] ]
} }
}, },
"id": "home", "id": "sensors",
"isanon": false, "isanon": false,
"layout": { "layout": {
"content": { "content": {
"loggedIn": { "loggedIn": {
"blocks": [ "blocks": [
{
"id": "a",
"x": 4,
"y": 0,
"width": 4,
"height": 4,
"banner": false
},
{ {
"id": "b", "id": "b",
"x": 8, "x": 6,
"y": 0, "y": 0,
"width": 4, "width": 6,
"height": 4, "height": 5,
"banner": false "banner": false
}, },
{ {
"id": "8e564cb7a1c6519179e2111cc05a79ca", "id": "8e564cb7a1c6519179e2111cc05a79ca",
"x": 0, "x": 0,
"y": 0, "y": 0,
"width": 4, "width": 6,
"height": 4, "height": 5,
"banner": false "banner": false
}, },
{ {
"id": "fdfada688ff9e7b3271eece314618532", "id": "fdfada688ff9e7b3271eece314618532",
"x": 0, "x": 0,
"y": 4, "y": 5,
"width": 6, "width": 6,
"height": 3, "height": 3,
"banner": false "banner": false
@ -293,7 +322,7 @@
{ {
"id": "46193833e958e9f7e879263f372eb508", "id": "46193833e958e9f7e879263f372eb508",
"x": 6, "x": 6,
"y": 4, "y": 5,
"width": 6, "width": 6,
"height": 3, "height": 3,
"banner": false "banner": false
@ -301,25 +330,17 @@
{ {
"id": "765379a7012b8819ea13524e5b312509", "id": "765379a7012b8819ea13524e5b312509",
"x": 0, "x": 0,
"y": 7, "y": 8,
"width": 4, "width": 6,
"height": 4, "height": 5,
"banner": false "banner": false
}, },
{ {
"id": "47ceaee8a089ea8ef75c91e5b83a1a36", "id": "47ceaee8a089ea8ef75c91e5b83a1a36",
"x": 8, "x": 6,
"y": 7, "y": 8,
"width": 4, "width": 6,
"height": 4, "height": 5,
"banner": false
},
{
"id": "4a9feeb19fc2ea76e252dcd62c954279",
"x": 4,
"y": 7,
"width": 4,
"height": 4,
"banner": false "banner": false
} }
] ]
@ -327,7 +348,7 @@
}, },
"fluidLayout": false "fluidLayout": false
}, },
"title": "Home" "title": "Sensors"
}, },
{ {
"content": { "content": {
@ -1281,7 +1302,7 @@
}, },
{ {
"id": "test", "id": "test",
"title": "test", "title": "Test",
"layout": { "layout": {
"content": { "content": {
"loggedIn": { "loggedIn": {
@ -1438,5 +1459,6 @@
}, },
"shareDashboard": false, "shareDashboard": false,
"theme": "Default Theme", "theme": "Default Theme",
"title": "Android IOT" "title": "Android IOT",
} "defaultPriority": "5"
}

@ -187,11 +187,7 @@
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_accelerometer_ui_event_publisher" version="1.0.0" include="true" <dependency artifact="android_accelerometer_ui_event_publisher" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_accelerometer_x_gadget" version="1.0.0" include="true" <dependency artifact="android_accelerometer_gadget" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/>
<dependency artifact="android_accelerometer_y_gadget" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/>
<dependency artifact="android_accelerometer_z_gadget" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_gyroscope_streams" version="1.0.0" include="true" <dependency artifact="android_gyroscope_streams" version="1.0.0" include="true"
@ -204,6 +200,8 @@
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_gyroscope_ui_event_publisher" version="1.0.0" include="true" <dependency artifact="android_gyroscope_ui_event_publisher" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_gyroscope_gadget" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/>
<dependency artifact="android_gravity_streams" version="1.0.0" include="true" <dependency artifact="android_gravity_streams" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
@ -228,6 +226,8 @@
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_magnetic_ui_event_publisher" version="1.0.0" include="true" <dependency artifact="android_magnetic_ui_event_publisher" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_magnetic_gadget" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/>
<dependency artifact="android_rotation_streams" version="1.0.0" include="true" <dependency artifact="android_rotation_streams" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
@ -239,6 +239,8 @@
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_rotation_ui_event_publisher" version="1.0.0" include="true" <dependency artifact="android_rotation_ui_event_publisher" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>
<dependency artifact="android_rotation_gadget" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/>
<dependency artifact="android_light_streams" version="1.0.0" include="true" <dependency artifact="android_light_streams" version="1.0.0" include="true"
serverRole="DataAnalyticsServer"/> serverRole="DataAnalyticsServer"/>

Loading…
Cancel
Save