From 04566ec250cb26ec2ff88075a9021ae254f379ac Mon Sep 17 00:00:00 2001 From: ayyoob Date: Thu, 12 May 2016 21:59:35 +0530 Subject: [PATCH 1/8] updated event receivers --- .../EventReceiver_AndroidSense.xml | 3 ++- .../EventReceiver_http_temperature.xml | 25 ++++++++++--------- .../EventReceiver_mqtt_temperature.xml | 3 ++- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventReceiver_AndroidSense_1.0.0/EventReceiver_AndroidSense.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventReceiver_AndroidSense_1.0.0/EventReceiver_AndroidSense.xml index a72ab6ca2..499c7cbf3 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventReceiver_AndroidSense_1.0.0/EventReceiver_AndroidSense.xml +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/EventReceiver_AndroidSense_1.0.0/EventReceiver_AndroidSense.xml @@ -22,7 +22,8 @@ carbon.super/android_sense/+/data admin device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:2 - default + org.wso2.carbon.device.mgt.iot.input.adapter.mqtt.util.MQTTContentValidator + default https://localhost:${carbon.https.port}/dynamic-client-web/register tcp://${mqtt.broker.host}:${mqtt.broker.port} true diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_http_temperature_1.0.0/EventReceiver_http_temperature.xml b/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_http_temperature_1.0.0/EventReceiver_http_temperature.xml index c134fa361..c1c2dd7f1 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_http_temperature_1.0.0/EventReceiver_http_temperature.xml +++ b/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_http_temperature_1.0.0/EventReceiver_http_temperature.xml @@ -17,16 +17,17 @@ ~ under the License. --> - - 2 - admin - device_id_json_path:event.metaData.deviceId - default - all - 100 - https://localhost:${carbon.https.port}/services/OAuth2TokenValidationService - admin - - - + + 2 + admin + device_id_json_path:event.metaData.deviceId + org.wso2.carbon.device.mgt.iot.input.adapter.http.util.HTTPContentValidator + default + all + 100 + https://localhost:${carbon.https.port}/services/OAuth2TokenValidationService + admin + + + diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_mqtt_temperature_1.0.0/EventReceiver_mqtt_temperature.xml b/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_mqtt_temperature_1.0.0/EventReceiver_mqtt_temperature.xml index e49b93544..f1114ecc3 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_mqtt_temperature_1.0.0/EventReceiver_mqtt_temperature.xml +++ b/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_mqtt_temperature_1.0.0/EventReceiver_mqtt_temperature.xml @@ -22,7 +22,8 @@ carbon.super/+/+/temperature admin device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:2 - default + org.wso2.carbon.device.mgt.iot.input.adapter.mqtt.util.MQTTContentValidator + default https://localhost:${carbon.https.port}/dynamic-client-web/register temperatureMqttClient tcp://${mqtt.broker.host}:${mqtt.broker.port} From da24c3fc1ba8b759de0ceb2ff4c03a3e897f70f8 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Fri, 13 May 2016 02:53:30 +0530 Subject: [PATCH 2/8] removed method and type from feature --- .../service/impl/AndroidSenseControllerService.java | 8 +++----- .../arduino/service/impl/ArduinoControllerService.java | 2 +- .../iot/input/adapter/mqtt/util/MQTTAdapterListener.java | 2 +- .../units/iot.unit.device.operation-bar/operation-bar.hbs | 2 +- .../service/impl/RaspberryPiControllerService.java | 3 +-- .../service/impl/VirtualFireAlarmControllerService.java | 3 +-- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseControllerService.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseControllerService.java index 43792b859..2b11cc863 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseControllerService.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseControllerService.java @@ -43,7 +43,7 @@ public interface AndroidSenseControllerService { */ @Path("device/{deviceId}/words") @POST - @Feature(code = "keywords", name = "Add Keywords", description = "Send keywords to the device", type = "operation") + @Feature(code = "keywords", name = "Add Keywords", description = "Send keywords to the device") Response sendKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("keywords") String keywords); /** @@ -54,14 +54,12 @@ public interface AndroidSenseControllerService { */ @Path("device/{deviceId}/words/threshold") @POST - @Feature(code = "threshold", name = "Add a Threshold", description = "Set a threshold for word in the device", - type = "operation") + @Feature(code = "threshold", name = "Add a Threshold", description = "Set a threshold for word in the device") Response sendThreshold(@PathParam("deviceId") String deviceId, @QueryParam("threshold") String threshold); @Path("device/{deviceId}/words") @DELETE - @Feature(code = "remove", name = "Remove Keywords", description = "Remove the keywords", - type = "operation") + @Feature(code = "remove", name = "Remove Keywords", description = "Remove the keywords") Response removeKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("words") String words); /** diff --git a/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoControllerService.java b/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoControllerService.java index 13c97f096..d0986ee86 100644 --- a/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoControllerService.java +++ b/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoControllerService.java @@ -36,7 +36,7 @@ public interface ArduinoControllerService { @Path("device/{deviceId}/bulb") @POST - @Feature(code = "bulb", name = "Control Bulb", type = "operation", description = "Control Bulb on Arduino Uno") + @Feature(code = "bulb", name = "Control Bulb", description = "Control Bulb on Arduino Uno") Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state); @Path("device/{deviceId}/controls") diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.mqtt/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/mqtt/util/MQTTAdapterListener.java b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.mqtt/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/mqtt/util/MQTTAdapterListener.java index 305367141..97f52cf31 100644 --- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.mqtt/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/mqtt/util/MQTTAdapterListener.java +++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.mqtt/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/mqtt/util/MQTTAdapterListener.java @@ -267,8 +267,8 @@ public class MQTTAdapterListener implements MqttCallback, Runnable { try { MQTTEventAdapterConstants.initialReconnectDuration = MQTTEventAdapterConstants.initialReconnectDuration * MQTTEventAdapterConstants.reconnectionProgressionFactor; - Thread.sleep(MQTTEventAdapterConstants.initialReconnectDuration); startListener(); + Thread.sleep(MQTTEventAdapterConstants.initialReconnectDuration); connectionSucceeded = true; log.info("MQTT Connection successful"); } catch (InterruptedException e) { diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.ui/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.hbs b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.ui/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.hbs index 40466c1ec..db16f3d35 100644 --- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.ui/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.hbs +++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.ui/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.hbs @@ -44,7 +44,7 @@
-
+ {{#each params.0.pathParams}}
diff --git a/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiControllerService.java b/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiControllerService.java index e184902b0..c32353a2b 100644 --- a/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiControllerService.java +++ b/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiControllerService.java @@ -37,8 +37,7 @@ public interface RaspberryPiControllerService { @Path("device/{deviceId}/bulb") @POST - @Feature(code = "bulb", name = "Bulb On / Off", type = "operation", - description = "Switch on/off Raspberry Pi agent's bulb. (On / Off)") + @Feature(code = "bulb", name = "Bulb On / Off", description = "Switch on/off Raspberry Pi agent's bulb. (On / Off)") Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state); /** diff --git a/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.api/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/impl/VirtualFireAlarmControllerService.java b/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.api/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/impl/VirtualFireAlarmControllerService.java index 3bbbe3ad4..0417bcbad 100644 --- a/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.api/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/impl/VirtualFireAlarmControllerService.java +++ b/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.api/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/impl/VirtualFireAlarmControllerService.java @@ -50,8 +50,7 @@ public interface VirtualFireAlarmControllerService { @POST @Path("device/{deviceId}/buzz") @Permission(scope = "virtual_firealarm_user", permissions = {"device-mgt/virtual_firealarm/user"}) - @Feature(code = "buzz", name = "Buzzer On / Off", type = "operation", - description = "Switch on/off Virtual Fire Alarm Buzzer. (On / Off)") + @Feature(code = "buzz", name = "Buzzer On / Off", description = "Switch on/off Virtual Fire Alarm Buzzer. (On / Off)") Response switchBuzzer(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol, @FormParam("state") String state); From 3d583cd39b6a62014784e67aa740431b769191d9 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Sat, 14 May 2016 00:33:27 +0530 Subject: [PATCH 3/8] refactored analytic scripts --- .../android_sense_execution/artifact.xml | 23 +++++ .../android_sense_receiver.xml | 34 +++++++ .../android_sense_receiver/artifact.xml | 22 +++++ .../android_sense_stream/artifact.xml | 23 +++++ .../android_sense_execution.siddhiql | 87 ++++++++++++++++++ .../android_sense_execution/artifact.xml | 23 +++++ .../android_sense_publisher.xml | 25 ++++++ .../android_sense_publisher/artifact.xml | 22 +++++ .../android_sense_receiver.xml | 34 +++++++ .../android_sense_receiver}/artifact.xml | 4 +- .../android_sense_stream/artifact.xml | 23 +++++ .../org.wso2.iot.android.sense_1.0.0.json | 38 ++++++++ .../carbonapps/androidsense}/artifacts.xml | 12 ++- .../carbonapps/word_count}/artifacts.xml | 10 +-- .../word_count_receiver}/artifact.xml | 4 +- .../word_count_receiver.xml | 27 ++++++ .../word_count/word_count_script/artifact.xml | 22 +++++ .../word_count_script/word_count_script.xml} | 2 +- .../word_count/word_count_store/artifact.xml | 22 +++++ .../org_wso2_iot_devices_wordcount.xml | 0 .../word_count/word_count_stream/artifact.xml | 23 +++++ .../org.wso2.iot.devices.wordcount_1.0.0.json | 0 .../build.xml} | 25 ++++-- .../pom.xml | 90 +++++++++++++++++++ .../src/assembly/src.xml | 36 ++++++++ .../artifact.xml | 23 +++++ .../EventReceiver_http_temperature.xml | 0 .../artifact.xml | 0 .../arduino_execution.siddhiql | 17 ++++ .../Arduino/arduino_execution}/artifact.xml | 5 +- .../arduino_receiver/arduino_receiver.xml | 33 +++++++ .../Arduino/arduino_receiver}/artifact.xml | 4 +- .../Arduino/arduino_stream}/artifact.xml | 5 +- .../org.wso2.iot.arduino_1.0.0.json | 18 ++++ .../carbonapps/Arduino}/artifacts.xml | 10 +-- .../carbonapps/Arduino/reciever}/artifact.xml | 4 +- .../artifact.xml | 22 ----- .../Eventreceiver_gravaity_1.0.0/artifact.xml | 22 ----- .../artifact.xml | 22 ----- .../Gyroscope/Sparkscripts_1.0.0/artifact.xml | 22 ----- .../Magnetic/Sparkscripts_1.0.0/artifact.xml | 22 ----- .../Pressure/Sparkscripts_1.0.0/artifact.xml | 22 ----- .../artifact.xml | 22 ----- .../Proximity/Sparkscripts_1.0.0/artifact.xml | 22 ----- .../Eventreceiver_rotation_1.0.0/artifact.xml | 22 ----- .../Rotation/Sparkscripts_1.0.0/artifact.xml | 22 ----- .../EventReceiver_mqtt_temperature.xml | 34 ------- .../accelerometer_receiver.xml} | 2 +- .../accelerometer_receiver}/artifact.xml | 4 +- .../accelerometer_script.xml} | 2 +- .../accelerometer_script}/artifact.xml | 4 +- .../accelerometer_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_accelerometer.xml | 0 .../accelerometer_stream}/artifact.xml | 2 +- ....wso2.iot.devices.accelerometer_1.0.0.json | 2 +- .../artifacts.xml | 10 +-- .../{Battery => battery_sensor}/artifacts.xml | 14 ++- .../battery_receiver/artifact.xml | 22 +++++ .../battery_receiver/battery_receiver.xml} | 2 +- .../battery_script/artifact.xml | 22 +++++ .../battery_script/battery_script.xml} | 2 +- .../battery_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_battery.xml | 0 .../battery_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.battery_1.0.0.json | 2 +- .../{Gravity => gps_sensor}/artifacts.xml | 10 +-- .../gps_sensor/gps_receiver/artifact.xml | 22 +++++ .../gps_receiver/gps_receiver.xml} | 2 +- .../gps_sensor/gps_script/artifact.xml | 22 +++++ .../gps_script/gps_script.xml} | 2 +- .../gps_store}/artifact.xml | 2 +- .../gps_store}/org_wso2_iot_devices_gps.xml | 0 .../gps_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.gps_1.0.0.json | 0 .../carbonapps/gravity_sensor/artifacts.xml | 27 ++++++ .../gravity_receiver/artifact.xml | 22 +++++ .../gravity_receiver/gravity_receiver.xml} | 2 +- .../gravity_script/artifact.xml | 22 +++++ .../gravity_script/gravity_script.xml} | 2 +- .../gravity_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_gravity.xml | 0 .../gravity_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.gravity_1.0.0.json | 0 .../carbonapps/gyroscope_sensor/artifacts.xml | 27 ++++++ .../gyroscope_receiver/artifact.xml | 22 +++++ .../gyroscope_receiver.xml} | 2 +- .../gyroscope_script/artifact.xml | 22 +++++ .../gyroscope_script/gyroscope_script.xml} | 2 +- .../gyroscope_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_gyroscope.xml | 0 .../gyroscope_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.gyroscope_1.0.0.json | 0 .../carbonapps/light_sensor/artifacts.xml | 27 ++++++ .../light_sensor/light_receiver/artifact.xml | 22 +++++ .../light_receiver/light_receiver.xml} | 2 +- .../light_script}/artifact.xml | 4 +- .../light_script/light_script.xml} | 2 +- .../light_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_light.xml | 0 .../light_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.light_1.0.0.json | 0 .../{GPS => magnetic_sensor}/artifacts.xml | 10 +-- .../magnetic_receiver}/artifact.xml | 4 +- .../magnetic_receiver/magnetic_receiver.xml} | 2 +- .../magnetic_script/artifact.xml | 22 +++++ .../magnetic_script/magnetic_script.xml} | 2 +- .../magnetic_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_magnetic.xml | 0 .../magnetic_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.magnetic_1.0.0.json | 0 .../carbonapps/pressure_sensor/artifacts.xml | 27 ++++++ .../pressure_receiver}/artifact.xml | 4 +- .../pressure_receiver/pressure_receiver.xml} | 2 +- .../pressure_script/artifact.xml | 22 +++++ .../pressure_script/pressure_script.xml} | 2 +- .../pressure_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_pressure.xml | 0 .../pressure_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.pressure_1.0.0.json | 0 .../carbonapps/proximity_sensor/artifacts.xml | 27 ++++++ .../proximity_receiver/artifact.xml | 22 +++++ .../proximity_receiver.xml} | 2 +- .../proximity_script/artifact.xml | 22 +++++ .../proximity_script/proximity_script.xml} | 2 +- .../proximity_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_proximity.xml | 0 .../proximity_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.proximity_1.0.0.json | 0 .../carbonapps/rotation_sensor/artifacts.xml | 27 ++++++ .../rotation_receiver/artifact.xml | 22 +++++ .../rotation_receiver/rotation_receiver.xml} | 2 +- .../rotation_script/artifact.xml | 22 +++++ .../rotation_script/rotation_script.xml} | 2 +- .../rotation_store}/artifact.xml | 2 +- .../org_wso2_iot_devices_rotation.xml | 0 .../rotation_stream}/artifact.xml | 2 +- .../org.wso2.iot.devices.rotation_1.0.0.json | 0 .../artifacts.xml | 1 - .../temperature_publisher}/artifact.xml | 0 .../temperature_publisher.xml} | 0 .../temperature_receiver}/artifact.xml | 0 .../temperature_receiver.xml} | 2 +- .../temperature_script}/artifact.xml | 0 .../temperature_script.xml} | 2 +- .../temperature_store}/artifact.xml | 0 .../org_wso2_iot_devices_temperature.xml | 0 .../temperature_stream}/artifact.xml | 0 ...rg.wso2.iot.devices.temperature_1.0.0.json | 0 .../{WordCount => word_count}/artifacts.xml | 0 .../word_count_receiver}/artifact.xml | 0 .../word_count_receiver.xml} | 0 .../word_count_script}/artifact.xml | 0 .../word_count_store}/artifact.xml | 0 .../word_count_stream}/artifact.xml | 0 .../build.xml} | 25 ++++-- .../pom.xml | 90 +++++++++++++++++++ .../src/assembly/src.xml | 36 ++++++++ .../arduino/arduino_execution/artifact.xml | 23 +++++ .../arduino/arduino_receiver/artifact.xml | 22 +++++ .../arduino/arduino_stream/artifact.xml | 23 +++++ .../carbonapps/raspberrypi}/artifacts.xml | 9 +- .../raspberrypi_execution/artifact.xml | 23 +++++ .../raspberrypi_execution.siddhiql | 17 ++++ .../raspberrypi_receiver/artifact.xml | 22 +++++ .../raspberrypi_receiver.xml | 33 +++++++ .../raspberrypi_stream/artifact.xml | 23 +++++ .../org.wso2.iot.raspberrypi_1.0.0.json | 15 ++++ 167 files changed, 1627 insertions(+), 383 deletions(-) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_execution/artifact.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/android_sense_receiver.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/artifact.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_stream/artifact.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/android_sense_execution.siddhiql create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/artifact.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/android_sense_publisher.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/artifact.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/android_sense_receiver.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Magnetic/Eventreceiver_magnetic_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver}/artifact.xml (87%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/artifact.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/org.wso2.iot.android.sense_1.0.0.json rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Rotation => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense}/artifacts.xml (59%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count}/artifacts.xml (70%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/Eventreceiver_light_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver}/artifact.xml (88%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/WordCount/Sparkscripts_1.0.0/Wordcount_Script.xml => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml} (97%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/artifact.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/WordCount/Eventstore_wordcount_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store}/org_wso2_iot_devices_wordcount.xml (100%) create mode 100644 components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/artifact.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/WordCount/Eventstream_wordcount_1.0.0 => androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream}/org.wso2.iot.devices.wordcount_1.0.0.json (100%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Proximity/artifacts.xml => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/build.xml} (52%) create mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/pom.xml create mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/assembly/src.xml create mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/EventStream_AndroidSense_1.0.0/artifact.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_http_temperature_1.0.0 => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/Eventreceiver_http_arduino_1.0.0}/EventReceiver_http_temperature.xml (100%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_http_temperature_1.0.0 => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/Eventreceiver_http_arduino_1.0.0}/artifact.xml (100%) create mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/arduino_execution/arduino_execution.siddhiql rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Battery/Eventreceiver_battery_1.0.0 => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/arduino_execution}/artifact.xml (82%) create mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/arduino_receiver/arduino_receiver.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/Sparkscripts_1.0.0 => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/arduino_receiver}/artifact.xml (83%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Battery/Sparkscripts_1.0.0 => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/arduino_stream}/artifact.xml (83%) create mode 100644 components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/arduino_stream/org.wso2.iot.arduino_1.0.0.json rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Accelerometer => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino}/artifacts.xml (61%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_mqtt_temperature_1.0.0 => arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.analytics/src/main/resources/carbonapps/Arduino/reciever}/artifact.xml (87%) delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Accelerometer/Eventreceiver_accelerometer_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Gyroscope/Sparkscripts_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Magnetic/Sparkscripts_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Proximity/Sparkscripts_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Rotation/Sparkscripts_1.0.0/artifact.xml delete mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Temperature/Eventreceiver_mqtt_temperature_1.0.0/EventReceiver_mqtt_temperature.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Eventreceiver_accelerometer_1.0.0/EventReceiver_accelerometer.xml => accelerometer_sensor/accelerometer_receiver/accelerometer_receiver.xml} (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Eventreceiver_pressure_1.0.0 => accelerometer_sensor/accelerometer_receiver}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Sparkscripts_1.0.0/Accelerometer_Sensor_Script.xml => accelerometer_sensor/accelerometer_script/accelerometer_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Sparkscripts_1.0.0 => accelerometer_sensor/accelerometer_script}/artifact.xml (82%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Eventstore_accelerometer_1.0.0 => accelerometer_sensor/accelerometer_store}/artifact.xml (86%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Eventstore_accelerometer_1.0.0 => accelerometer_sensor/accelerometer_store}/org_wso2_iot_devices_accelerometer.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Eventstream_accelerometer_1.0.0 => accelerometer_sensor/accelerometer_stream}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Accelerometer/Eventstream_accelerometer_1.0.0 => accelerometer_sensor/accelerometer_stream}/org.wso2.iot.devices.accelerometer_1.0.0.json (93%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic => accelerometer_sensor}/artifacts.xml (71%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery => battery_sensor}/artifacts.xml (61%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/battery_sensor/battery_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery/Eventreceiver_battery_1.0.0/EventReceiver_battery.xml => battery_sensor/battery_receiver/battery_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/battery_sensor/battery_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery/Sparkscripts_1.0.0/Battery_Sensor_Script.xml => battery_sensor/battery_script/battery_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery/Eventstore_battery_1.0.0 => battery_sensor/battery_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery/Eventstore_battery_1.0.0 => battery_sensor/battery_store}/org_wso2_iot_devices_battery.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery/Eventstream_battery_1.0.0 => battery_sensor/battery_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Battery/Eventstream_battery_1.0.0 => battery_sensor/battery_stream}/org.wso2.iot.devices.battery_1.0.0.json (93%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity => gps_sensor}/artifacts.xml (63%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gps_sensor/gps_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Eventreceiver_gps_1.0.0/EventReceiver_gps.xml => gps_sensor/gps_receiver/gps_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gps_sensor/gps_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Sparkscripts_1.0.0/GPS_Sensor_Script.xml => gps_sensor/gps_script/gps_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Eventstore_gps_1.0.0 => gps_sensor/gps_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Eventstore_gps_1.0.0 => gps_sensor/gps_store}/org_wso2_iot_devices_gps.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Eventstream_gps_1.0.0 => gps_sensor/gps_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Eventstream_gps_1.0.0 => gps_sensor/gps_stream}/org.wso2.iot.devices.gps_1.0.0.json (100%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gravity_sensor/artifacts.xml create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gravity_sensor/gravity_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Eventreceiver_gravaity_1.0.0/EventReceiver_gravity.xml => gravity_sensor/gravity_receiver/gravity_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gravity_sensor/gravity_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Sparkscripts_1.0.0/Gravity_Sensor_Script.xml => gravity_sensor/gravity_script/gravity_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Eventstore_gravity_1.0.0 => gravity_sensor/gravity_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Eventstore_gravity_1.0.0 => gravity_sensor/gravity_store}/org_wso2_iot_devices_gravity.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Eventstream_gravity_1.0.0 => gravity_sensor/gravity_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Eventstream_gravity_1.0.0 => gravity_sensor/gravity_stream}/org.wso2.iot.devices.gravity_1.0.0.json (100%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gyroscope_sensor/artifacts.xml create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gyroscope_sensor/gyroscope_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gyroscope/Eventreceiver_gyroscope_1.0.0/EventReceiver_gyroscope.xml => gyroscope_sensor/gyroscope_receiver/gyroscope_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/gyroscope_sensor/gyroscope_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gyroscope/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml => gyroscope_sensor/gyroscope_script/gyroscope_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gyroscope/Eventstore_gyroscope_1.0.0 => gyroscope_sensor/gyroscope_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gyroscope/Eventstore_gyroscope_1.0.0 => gyroscope_sensor/gyroscope_store}/org_wso2_iot_devices_gyroscope.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gyroscope/Eventstream_gyroscope_1.0.0 => gyroscope_sensor/gyroscope_stream}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gyroscope/Eventstream_gyroscope_1.0.0 => gyroscope_sensor/gyroscope_stream}/org.wso2.iot.devices.gyroscope_1.0.0.json (100%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/light_sensor/artifacts.xml create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/light_sensor/light_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Light/Eventreceiver_light_1.0.0/EventReceiver_light.xml => light_sensor/light_receiver/light_receiver.xml} (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Sparkscripts_1.0.0 => light_sensor/light_script}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Light/Sparkscripts_1.0.0/Light_Sensor_Script.xml => light_sensor/light_script/light_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Light/Eventstore_light_1.0.0 => light_sensor/light_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Light/Eventstore_light_1.0.0 => light_sensor/light_store}/org_wso2_iot_devices_light.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Light/Eventstream_light_1.0.0 => light_sensor/light_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Light/Eventstream_light_1.0.0 => light_sensor/light_stream}/org.wso2.iot.devices.light_1.0.0.json (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS => magnetic_sensor}/artifacts.xml (71%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{GPS/Eventreceiver_gps_1.0.0 => magnetic_sensor/magnetic_receiver}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic/Eventreceiver_magnetic_1.0.0/EventReceiver_magnetic.xml => magnetic_sensor/magnetic_receiver/magnetic_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/magnetic_sensor/magnetic_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic/Sparkscripts_1.0.0/Magnetic_Sensor_Script.xml => magnetic_sensor/magnetic_script/magnetic_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic/Eventstore_magnetic_1.0.0 => magnetic_sensor/magnetic_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic/Eventstore_magnetic_1.0.0 => magnetic_sensor/magnetic_store}/org_wso2_iot_devices_magnetic.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic/Eventstream_magnetic_1.0.0 => magnetic_sensor/magnetic_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Magnetic/Eventstream_magnetic_1.0.0 => magnetic_sensor/magnetic_stream}/org.wso2.iot.devices.magnetic_1.0.0.json (100%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/pressure_sensor/artifacts.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Gravity/Sparkscripts_1.0.0 => pressure_sensor/pressure_receiver}/artifact.xml (83%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Eventreceiver_pressure_1.0.0/EventReceiver_pressure.xml => pressure_sensor/pressure_receiver/pressure_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/pressure_sensor/pressure_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Sparkscripts_1.0.0/Pressure_Sensor_Script.xml => pressure_sensor/pressure_script/pressure_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Eventstore_pressure_1.0.0 => pressure_sensor/pressure_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Eventstore_pressure_1.0.0 => pressure_sensor/pressure_store}/org_wso2_iot_devices_pressure.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Eventstream_pressure_1.0.0 => pressure_sensor/pressure_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Pressure/Eventstream_pressure_1.0.0 => pressure_sensor/pressure_stream}/org.wso2.iot.devices.pressure_1.0.0.json (100%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/proximity_sensor/artifacts.xml create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/proximity_sensor/proximity_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Proximity/Eventreceiver_proximity_1.0.0/EventReceiver_proximity.xml => proximity_sensor/proximity_receiver/proximity_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/proximity_sensor/proximity_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Proximity/Sparkscripts_1.0.0/Proximity_Sensor_Script.xml => proximity_sensor/proximity_script/proximity_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Proximity/Eventstore_proximity_1.0.0 => proximity_sensor/proximity_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Proximity/Eventstore_proximity_1.0.0 => proximity_sensor/proximity_store}/org_wso2_iot_devices_proximity.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Proximity/Eventstream_proximity_1.0.0 => proximity_sensor/proximity_stream}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Proximity/Eventstream_proximity_1.0.0 => proximity_sensor/proximity_stream}/org.wso2.iot.devices.proximity_1.0.0.json (100%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/rotation_sensor/artifacts.xml create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/rotation_sensor/rotation_receiver/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Rotation/Eventreceiver_rotation_1.0.0/EventReceiver_rotation.xml => rotation_sensor/rotation_receiver/rotation_receiver.xml} (88%) create mode 100644 components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/rotation_sensor/rotation_script/artifact.xml rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Rotation/Sparkscripts_1.0.0/Rotation_Sensor_Script.xml => rotation_sensor/rotation_script/rotation_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Rotation/Eventstore_rotation_1.0.0 => rotation_sensor/rotation_store}/artifact.xml (87%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Rotation/Eventstore_rotation_1.0.0 => rotation_sensor/rotation_store}/org_wso2_iot_devices_rotation.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Rotation/Eventstream_rotation_1.0.0 => rotation_sensor/rotation_stream}/artifact.xml (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Rotation/Eventstream_rotation_1.0.0 => rotation_sensor/rotation_stream}/org.wso2.iot.devices.rotation_1.0.0.json (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature => temperature_sensor}/artifacts.xml (92%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventpublisher_temperature_1.0.0 => temperature_sensor/temperature_publisher}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventpublisher_temperature_1.0.0/EventPublisher_temperature.xml => temperature_sensor/temperature_publisher/temperature_publisher.xml} (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventreceiver_temperature_1.0.0 => temperature_sensor/temperature_receiver}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventreceiver_temperature_1.0.0/EventReceiver_temperature.xml => temperature_sensor/temperature_receiver/temperature_receiver.xml} (88%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Sparkscripts_1.0.0 => temperature_sensor/temperature_script}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Sparkscripts_1.0.0/Temperature_Sensor_Script.xml => temperature_sensor/temperature_script/temperature_script.xml} (97%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventstore_temperature_1.0.0 => temperature_sensor/temperature_store}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventstore_temperature_1.0.0 => temperature_sensor/temperature_store}/org_wso2_iot_devices_temperature.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventstream_temperature_1.0.0 => temperature_sensor/temperature_stream}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{Temperature/Eventstream_temperature_1.0.0 => temperature_sensor/temperature_stream}/org.wso2.iot.devices.temperature_1.0.0.json (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{WordCount => word_count}/artifacts.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{WordCount/Eventreceiver_wordcount_1.0.0 => word_count/word_count_receiver}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{WordCount/Eventreceiver_wordcount_1.0.0/EventReceiver_wordcount.xml => word_count/word_count_receiver/word_count_receiver.xml} (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{WordCount/Sparkscripts_1.0.0 => word_count/word_count_script}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{WordCount/Eventstore_wordcount_1.0.0 => word_count/word_count_store}/artifact.xml (100%) rename components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/{WordCount/Eventstream_wordcount_1.0.0 => word_count/word_count_stream}/artifact.xml (100%) rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Gyroscope/artifacts.xml => raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/build.xml} (53%) create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/pom.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/assembly/src.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/arduino/arduino_execution/artifact.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/arduino/arduino_receiver/artifact.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/arduino/arduino_stream/artifact.xml rename components/iot-plugins/{iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Pressure => raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi}/artifacts.xml (67%) create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi/raspberrypi_execution/artifact.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi/raspberrypi_execution/raspberrypi_execution.siddhiql create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi/raspberrypi_receiver/artifact.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi/raspberrypi_receiver/raspberrypi_receiver.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi/raspberrypi_stream/artifact.xml create mode 100644 components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.analytics/src/main/resources/carbonapps/raspberrypi/raspberrypi_stream/org.wso2.iot.raspberrypi_1.0.0.json diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_execution/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_execution/artifact.xml new file mode 100644 index 000000000..f14c53a36 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_execution/artifact.xml @@ -0,0 +1,23 @@ + + + + + EventExecution_AndroidSense.siddhiql + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/android_sense_receiver.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/android_sense_receiver.xml new file mode 100644 index 000000000..353380579 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/android_sense_receiver.xml @@ -0,0 +1,34 @@ + + + + + + carbon.super/android_sense/+/data + admin + device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:2 + org.wso2.carbon.device.mgt.iot.input.adapter.mqtt.util.MQTTContentValidator + default + https://localhost:${carbon.https.port}/dynamic-client-web/register + tcp://${mqtt.broker.host}:${mqtt.broker.port} + true + + + + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/artifact.xml new file mode 100644 index 000000000..1a154bc92 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_receiver/artifact.xml @@ -0,0 +1,22 @@ + + + + + EventReceiver_AndroidSense.xml + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_stream/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_stream/artifact.xml new file mode 100644 index 000000000..10ab23d9b --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/Android_Sense/android_sense_stream/artifact.xml @@ -0,0 +1,23 @@ + + + + + org.wso2.iot.android.sense_1.0.0.json + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/android_sense_execution.siddhiql b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/android_sense_execution.siddhiql new file mode 100644 index 000000000..2304e2eca --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/android_sense_execution.siddhiql @@ -0,0 +1,87 @@ +/* Enter a unique ExecutionPlan */ +@Plan:name('android_sense_execution') + +/* Enter a unique description for ExecutionPlan */ +-- @Plan:description('android_sense_execution') + +/* define streams/tables and write queries here ... */ + +@Export('org.wso2.iot.devices.wordcount:1.0.0') +define stream words (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, sessionId string, word string, status string); + +@Export('org.wso2.iot.devices.rotation:1.0.0') +define stream rotation (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, x float, y float, z float); + +@Export('org.wso2.iot.devices.proximity:1.0.0') +define stream proximity (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, proximity float); + +@Export('org.wso2.iot.devices.pressure:1.0.0') +define stream pressure (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, pressure float); + +@Export('org.wso2.iot.devices.magnetic:1.0.0') +define stream magnetic (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, x float, y float, z float); + +@Export('org.wso2.iot.devices.light:1.0.0') +define stream light (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, light float); + +@Export('org.wso2.iot.devices.gyroscope:1.0.0') +define stream gyroscope (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, x float, y float, z float); + +@Export('org.wso2.iot.devices.gravity:1.0.0') +define stream gravity (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, x float, y float, z float); + +@Export('org.wso2.iot.devices.gps:1.0.0') +define stream gps (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, latitude double, longitude double); + +@Export('org.wso2.iot.devices.battery:1.0.0') +define stream battery (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, level int); + +@Export('org.wso2.iot.devices.accelerometer:1.0.0') +define stream accelerometer (meta_owner string, meta_deviceType string, meta_deviceId string, meta_time long, x float, y float, z float); + +@Import('org.wso2.iot.android.sense:1.0.0') +define stream androidsense (meta_owner string, meta_deviceId string, meta_type string, meta_timestamp long, battery int, gps_lat double, gps_long double, accelerometer_x float, accelerometer_y float, accelerometer_z float, magnetic_x float, magnetic_y float, magnetic_z float, gyroscope_x float, gyroscope_y float, gyroscope_z float, light float, pressure float, proximity float, gravity_x float, gravity_y float, gravity_z float, rotation_x float, rotation_y float, rotation_z float, word string, word_sessionId string, word_status string); + +from androidsense[meta_type == 'accelerometer'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, accelerometer_x as x, accelerometer_y as y, accelerometer_z as z +insert into accelerometer; + +from androidsense[meta_type == 'battery'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, battery as level +insert into battery; + +from androidsense[meta_type == 'gps'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, gps_lat as latitude, gps_long as longitude +insert into gps; + +from androidsense[meta_type == 'gravity'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, gravity_x as x, gravity_y as y, gravity_z as z +insert into gravity; + +from androidsense[meta_type == 'gyroscope'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, gyroscope_x as x, gyroscope_y as y, gyroscope_z as z +insert into gyroscope; + +from androidsense[meta_type == 'light'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, light +insert into light; + +from androidsense[meta_type == 'magnetic'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, magnetic_x as x, magnetic_y as y, magnetic_z as z +insert into magnetic; + +from androidsense[meta_type == 'pressure'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, pressure +insert into pressure; + +from androidsense[meta_type == 'proximity'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, proximity +insert into proximity; + +from androidsense[meta_type == 'rotation'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, rotation_x as x, rotation_y as y, rotation_z as z +insert into rotation; + +from androidsense[meta_type == 'word'] +select meta_owner, 'android_sense' as meta_deviceType, meta_deviceId, meta_timestamp as meta_time, word_sessionId as sessionId, word as word, word_status as status +insert into words; \ No newline at end of file diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/artifact.xml new file mode 100644 index 000000000..f2a5be12e --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_execution/artifact.xml @@ -0,0 +1,23 @@ + + + + + android_sense_execution.siddhiql + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/android_sense_publisher.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/android_sense_publisher.xml new file mode 100644 index 000000000..f2da5e909 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/android_sense_publisher.xml @@ -0,0 +1,25 @@ + + + + + + + + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/artifact.xml new file mode 100644 index 000000000..319b77ccf --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_publisher/artifact.xml @@ -0,0 +1,22 @@ + + + + + android_sense_publisher.xml + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/android_sense_receiver.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/android_sense_receiver.xml new file mode 100644 index 000000000..353380579 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/android_sense_receiver.xml @@ -0,0 +1,34 @@ + + + + + + carbon.super/android_sense/+/data + admin + device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:2 + org.wso2.carbon.device.mgt.iot.input.adapter.mqtt.util.MQTTContentValidator + default + https://localhost:${carbon.https.port}/dynamic-client-web/register + tcp://${mqtt.broker.host}:${mqtt.broker.port} + true + + + + + diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Magnetic/Eventreceiver_magnetic_1.0.0/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/artifact.xml similarity index 87% rename from components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Magnetic/Eventreceiver_magnetic_1.0.0/artifact.xml rename to components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/artifact.xml index 4a9272db8..5f7a73ce5 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Magnetic/Eventreceiver_magnetic_1.0.0/artifact.xml +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/artifact.xml @@ -17,6 +17,6 @@ ~ under the License. --> - - EventReceiver_magnetic.xml + + android_sense_receiver.xml diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/artifact.xml new file mode 100644 index 000000000..efc77622f --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/artifact.xml @@ -0,0 +1,23 @@ + + + + + org.wso2.iot.android.sense_1.0.0.json + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/org.wso2.iot.android.sense_1.0.0.json b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/org.wso2.iot.android.sense_1.0.0.json new file mode 100644 index 000000000..f9048dd33 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_stream/org.wso2.iot.android.sense_1.0.0.json @@ -0,0 +1,38 @@ +{ + "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": "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": "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"} + ] +} \ No newline at end of file diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Rotation/artifacts.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/artifacts.xml similarity index 59% rename from components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Rotation/artifacts.xml rename to components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/artifacts.xml index 7bbe4ac50..a03fa2c2d 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Rotation/artifacts.xml +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/artifacts.xml @@ -18,12 +18,10 @@ --> - - - - - - - + + + + + diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/artifacts.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/artifacts.xml similarity index 70% rename from components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/artifacts.xml rename to components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/artifacts.xml index 39b009e53..e3a25034f 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/artifacts.xml +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/artifacts.xml @@ -18,10 +18,10 @@ --> - - - - - + + + + + diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/Eventreceiver_light_1.0.0/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/artifact.xml similarity index 88% rename from components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/Eventreceiver_light_1.0.0/artifact.xml rename to components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/artifact.xml index 604e9384e..81cc82009 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/Light/Eventreceiver_light_1.0.0/artifact.xml +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/artifact.xml @@ -17,6 +17,6 @@ ~ under the License. --> - - EventReceiver_light.xml + + word_count_receiver.xml diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml new file mode 100644 index 000000000..fe17694e8 --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml @@ -0,0 +1,27 @@ + + + + + + false + + + + diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml new file mode 100644 index 000000000..be0d2bdcb --- /dev/null +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml @@ -0,0 +1,22 @@ + + + + + word_count_script.xml + diff --git a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/WordCount/Sparkscripts_1.0.0/Wordcount_Script.xml b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml similarity index 97% rename from components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/WordCount/Sparkscripts_1.0.0/Wordcount_Script.xml rename to components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml index bfc3db879..e20c5bcc4 100644 --- a/components/iot-plugins/iot-analytics/org.wso2.carbon.device.mgt.iot.analytics/src/main/resources/carbonapps/WordCount/Sparkscripts_1.0.0/Wordcount_Script.xml +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml @@ -18,7 +18,7 @@ --> - IoTServer_Sensor_Script + word_count_script