forked from community/device-mgt-plugins
parent
bbc8c8efce
commit
6b3992261a
@ -1,6 +1,7 @@
|
||||
instructions.configure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/carbonapps/);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense_${feature.version}/carbonapps/,target:${installFolder}/../../resources/devicetypes/android_sense/,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense.analytics_${feature.version}/carbonapps/,target:${installFolder}/../../resources/devicetypes/android_sense/,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense.analytics_${feature.version}/receiver/,target:${installFolder}/../../analytics/repository/deployment/server/eventreceivers/,overwrite:true);\
|
||||
|
||||
instructions.unconfigure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../deployment/server/carbonapps/android_sense.car);\
|
@ -1,6 +1,9 @@
|
||||
instructions.configure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../analytics/repository/deployment/server/carbonapps/);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense.analytics_${feature.version}/carbonapps/,target:${installFolder}/../../analytics/repository/deployment/server/carbonapps/,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense.analytics_${feature.version}/receiver/,target:${installFolder}/../../analytics/repository/deployment/server/eventreceivers/,overwrite:true);\
|
||||
|
||||
instructions.unconfigure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../../analytics/repository/deployment/server/carbonapps/android_sense.car);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../../analytics/repository/deployment/server/eventreceivers/android_sense_receiver-carbon.super.xml);\
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
instructions.configure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../analytics/repository/deployment/server/carbonapps/);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense.analytics_${feature.version}/carbonapps/,target:${installFolder}/../../analytics/repository/deployment/server/carbonapps/,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense.analytics_${feature.version}/receiver/,target:${installFolder}/../../analytics/repository/deployment/server/eventreceivers/,overwrite:true);\
|
||||
|
||||
instructions.unconfigure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../../analytics/repository/deployment/server/carbonapps/android_sense.car);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../../analytics/repository/deployment/server/eventreceivers/android_sense_receiver-carbon.super.xml);\
|
||||
|
||||
|
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||
~ Version 2.0 (the "License"); you may not use this file except
|
||||
~ in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
|
||||
<eventReceiver name="android_sense_receiver-carbon.super" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
|
||||
<from eventAdapterType="oauth-mqtt">
|
||||
<property name="topic">carbon.super/android_sense/+/data</property>
|
||||
<property name="contentValidator">iot-mqtt</property>
|
||||
<property name="cleanSession">true</property>
|
||||
<property name="clientId">android_sense_receiver-carbon.super</property>
|
||||
</from>
|
||||
<mapping customMapping="disable" type="json"/>
|
||||
<to streamName="org.wso2.iot.android.sense" version="1.0.0"/>
|
||||
</eventReceiver>
|
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||
~ Version 2.0 (the "License"); you may not use this file except
|
||||
~ in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
|
||||
<eventReceiver name="android_sense_receiver-${tenant-domain}" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
|
||||
<from eventAdapterType="oauth-mqtt">
|
||||
<property name="topic">${tenant-domain}/android_sense/+/data</property>
|
||||
<property name="contentValidator">iot-mqtt</property>
|
||||
<property name="cleanSession">true</property>
|
||||
<property name="clientId">android_sense_receiver-${tenant-domain}</property>
|
||||
</from>
|
||||
<mapping customMapping="disable" type="json"/>
|
||||
<to streamName="org.wso2.iot.android.sense" version="1.0.0"/>
|
||||
</eventReceiver>
|
@ -0,0 +1,222 @@
|
||||
{
|
||||
"name": "org.wso2.iot.android.sense",
|
||||
"version": "1.0.0",
|
||||
"nickName": "android_sense_stream",
|
||||
"description": "This hold the device type stream of android sense",
|
||||
"metaData": [
|
||||
{
|
||||
"name": "owner",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "deviceId",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "timestamp",
|
||||
"type": "LONG"
|
||||
}
|
||||
],
|
||||
"payloadData": [
|
||||
{
|
||||
"name": "battery",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "battery_state",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "battery_status",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "battery_temperature",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "gps_lat",
|
||||
"type": "DOUBLE"
|
||||
},
|
||||
{
|
||||
"name": "gps_long",
|
||||
"type": "DOUBLE"
|
||||
},
|
||||
{
|
||||
"name": "accelerometer_x",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "accelerometer_y",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "accelerometer_z",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "speed_limit",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "turn_way",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "magnetic_x",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "magnetic_y",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "magnetic_z",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "gyroscope_x",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "gyroscope_y",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "gyroscope_z",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "light",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "pressure",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "proximity",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "gravity_x",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "gravity_y",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "gravity_z",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "rotation_x",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "rotation_y",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "rotation_z",
|
||||
"type": "FLOAT"
|
||||
},
|
||||
{
|
||||
"name": "word",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "word_sessionId",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "word_status",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "beacon_major",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "beacon_minor",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "beacon_proximity",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "beacon_uuid",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "call_number",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "call_type",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "call_start_time",
|
||||
"type": "LONG"
|
||||
},
|
||||
{
|
||||
"name": "call_end_time",
|
||||
"type": "LONG"
|
||||
},
|
||||
{
|
||||
"name": "screen_state",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "audio_playing",
|
||||
"type": "BOOL"
|
||||
},
|
||||
{
|
||||
"name": "headset_on",
|
||||
"type": "BOOL"
|
||||
},
|
||||
{
|
||||
"name": "music_volume",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "activity_type",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "confidence",
|
||||
"type": "INT"
|
||||
},
|
||||
{
|
||||
"name": "sms_number",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "application_name",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "action",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "data_type",
|
||||
"type": "STRING"
|
||||
},
|
||||
{
|
||||
"name": "data_sent",
|
||||
"type": "LONG"
|
||||
},
|
||||
{
|
||||
"name": "data_received",
|
||||
"type": "LONG"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in new issue