forked from community/device-mgt-plugins
Merge pull request #250 from charithag/master
Fixed https://wso2.org/jira/browse/IOTS-104revert-dabc3590
commit
34d4da7e66
@ -0,0 +1,6 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Android Sense",
|
||||
"category": "iot"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Arduino",
|
||||
"category": "iot",
|
||||
"downloadAgentUri": "arduino/enrollment/devices/download"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Raspberry Pi",
|
||||
"category": "iot",
|
||||
"downloadAgentUri": "raspberrypi/enrollment/devices/download"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Virtual Firealarm",
|
||||
"category": "virtual",
|
||||
"downloadAgentUri": "virtual_firealarm/enrollment/devices/download"
|
||||
}
|
||||
}
|
0
features/mobile-plugins-feature/android-plugin-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/configs/android.json → components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/config.json
0
features/mobile-plugins-feature/android-plugin-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/configs/android.json → components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/config.json
0
features/mobile-plugins-feature/windows-plugin-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/configs/windows.json → components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/config.json
0
features/mobile-plugins-feature/windows-plugin-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/configs/windows.json → components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/config.json
@ -1,120 +0,0 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Android Sense",
|
||||
"category": "iot"
|
||||
},
|
||||
"analyticStreams": [
|
||||
{
|
||||
"name": "Accelerometer",
|
||||
"table": "DEVICE_ACCELEROMETER_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"ACCELEROMETER", "label":"Accelerometer", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Battery",
|
||||
"table": "DEVICE_BATTERY_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"BATTERY", "label":"Battery Level", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "GPS",
|
||||
"table": "DEVICE_GPS_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.google-map",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"time"}},
|
||||
{"column": {"name":"LATITUDE", "label":"Latitude", "ui-mapping":"lat"}},
|
||||
{"column": {"name":"LONGITUDE", "label":"Longitude", "ui-mapping":"lat"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Gravity",
|
||||
"table": "DEVICE_GRAVITY_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"GRAVITY", "label":"Gravity", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Gyroscope",
|
||||
"table": "DEVICE_GYROSCOPE_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"GYROSCOPE", "label":"Gyroscope", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Light",
|
||||
"table": "DEVICE_LIGHT_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"LIGHT", "label":"Light", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Magnetic",
|
||||
"table": "DEVICE_MAGNETIC_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"MAGNETIC", "label":"Magnetic", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Pressure",
|
||||
"table": "DEVICE_PRESSURE_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"PRESSURE", "label":"Pressure", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Proximity",
|
||||
"table": "DEVICE_PROXIMITY_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.bar-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"PROXIMITY", "label":"Proximity", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Rotation",
|
||||
"table": "DEVICE_ROTATION_SUMMARY",
|
||||
"ui_unit": "cdmf.unit.analytics.line-chart",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"ROTATION", "label":"Rotation", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Arduino",
|
||||
"category": "iot",
|
||||
"downloadAgentUri": "arduino/enrollment/devices/download"
|
||||
},
|
||||
"analyticStreams": [
|
||||
{
|
||||
"name": "Temperature",
|
||||
"table": "DEVICE_TEMPERATURE_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"TEMPERATURE", "label":"temperature", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "RaspberryPi",
|
||||
"category": "iot",
|
||||
"downloadAgentUri": "raspberrypi/enrollment/devices/download"
|
||||
},
|
||||
"analyticStreams": [
|
||||
{
|
||||
"name": "Temperature",
|
||||
"table": "DEVICE_TEMPERATURE_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"TEMPERATURE", "label":"Temperature", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
define stream fireAlarmEventStream (deviceID string, temp int);
|
||||
from fireAlarmEventStream#window.time(7886776 sec)
|
||||
from fireAlarmEventStream#window.time(10 sec)
|
||||
select deviceID, max(temp) as maxValue
|
||||
group by deviceID
|
||||
insert into analyzeStream for expired-events;
|
||||
from analyzeStream[maxValue < 88]
|
||||
from analyzeStream[maxValue < 60]
|
||||
select maxValue
|
||||
insert into bulbOnStream;
|
||||
from fireAlarmEventStream[temp > 1093]
|
||||
from fireAlarmEventStream[temp > 60]
|
||||
select deviceID, temp
|
||||
insert into bulbOffStream;
|
@ -1,20 +0,0 @@
|
||||
{
|
||||
"deviceType": {
|
||||
"label": "Virtual Firealarm",
|
||||
"category": "virtual",
|
||||
"downloadAgentUri": "virtual_firealarm/enrollment/devices/download"
|
||||
},
|
||||
"analyticStreams": [
|
||||
{
|
||||
"name": "Temperature",
|
||||
"table": "DEVICE_TEMPERATURE_SUMMARY",
|
||||
"ui_unit": {
|
||||
"name": "cdmf.unit.analytics.line-chart",
|
||||
"data":[
|
||||
{"column": {"name":"TIME", "label":"time", "ui-mapping":"x-axis"}},
|
||||
{"column": {"name":"TEMPERATURE", "label":"Temperature", "ui-mapping":"y-axis"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in new issue