diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/datasources/androidsense-datasources.xml b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/datasources/androidsense-datasources.xml new file mode 100644 index 0000000000..9a1374b09e --- /dev/null +++ b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/datasources/androidsense-datasources.xml @@ -0,0 +1,46 @@ + + + + + org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader + + + + AndroidSenseDM_DB + The datasource used for the Android Sense database + + jdbc/AndroidSenseDM_DB + + + + jdbc:h2:repository/database/AndroidSenseDM_DB;DB_CLOSE_ON_EXIT=FALSE + + wso2carbon + wso2carbon + org.h2.Driver + 50 + 60000 + true + SELECT 1 + 30000 + + + + + diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/h2_android_sense.sql b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/h2.sql similarity index 100% rename from features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/h2_android_sense.sql rename to features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/h2.sql diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/mysql_android_sense.sql b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/mysql.sql similarity index 100% rename from features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/mysql_android_sense.sql rename to features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/dbscripts/mysql.sql diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/p2.inf b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/p2.inf index 41a72428c5..44e567796a 100644 --- a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/p2.inf +++ b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/p2.inf @@ -1,6 +1,8 @@ instructions.configure = \ org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\ org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense_${feature.version}/webapps/,target:${installFolder}/../../deployment/server/webapps/,overwrite:true);\ -org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense_${feature.version}/dbscripts/,target:${installFolder}/../../../dbscripts/cdm/plugins/androidsense,overwrite:true);\ +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense_${feature.version}/dbscripts/,target:${installFolder}/../../../dbscripts/cdm/plugins/android_sense,overwrite:true);\ +org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../conf/datasources/devicemgt/);\ +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense_${feature.version}/datasources/,target:${installFolder}/../../conf/datasources/devicemgt,overwrite:true);\ org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/jaggeryapps/);\ org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.androidsense_${feature.version}/jaggeryapps/,target:${installFolder}/../../deployment/server/jaggeryapps/,overwrite:true);\ diff --git a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/conf/devicetype-config.xml b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/conf/devicetype-config.xml index 4b1ec5ee13..0061d37641 100644 --- a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/conf/devicetype-config.xml +++ b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/conf/devicetype-config.xml @@ -1,3 +1,11 @@ + + jdbc/VirtualFireAlarmDM_DB + + + + + jdbc/AndroidSenseDM_DB + \ No newline at end of file diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/thumb.png b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/thumb.png index 7fee78a646..6bbaf4b508 100644 Binary files a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/thumb.png and b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/thumb.png differ diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/virtual_fire.png b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/virtual_fire.png deleted file mode 100644 index dcaa711eea..0000000000 Binary files a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.device-view/public/images/virtual_fire.png and /dev/null differ diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json index a1bdd15a96..d0ede06a9e 100644 --- a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json +++ b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json @@ -1,25 +1,6 @@ { "deviceType": { "displayName": "Virtual Firealarm", - "image": "/public/cdmf.unit.device.type.virtual_firealarm/images/thumb.png", - "downloadBtnText": "Download", - "ingredients": [ - "Raspberry Pi (Internet Enabled)", - "DHT11 Temperature Sensor", - "LED", - "Buzzer(3v)" - ], - "prepareSteps": [ - "Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.", - "Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.", - "Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS" - ], - "schematicDiagram": "/public/cdmf.unit.device.type.virtual_firealarm/images/schematicsGuide.png", - "quickStartup": [ - "Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files", - "(The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)", - "Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
This will download a zip file named 'Agent.zip'" - ], - "additionalHtml" : "" + "category" : "iot" } } diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/pages/device-type-details.hbs b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/pages/device-type-details.hbs deleted file mode 100644 index b8a3956f41..0000000000 --- a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/pages/device-type-details.hbs +++ /dev/null @@ -1,151 +0,0 @@ -
-

{{@uriParams.deviceType}} Virtual Firealarm

-
-

Connect your Virtual Firealarm device - to the WSO2 device cloud.

-
-
- -
-
-

Ingredients

-
-

Hardware Requirements

-
-
    - - - - Raspberry Pi (Internet Enabled)
    - - - - DHT11 Temperature Sensor
    - - - - LED
    - - - - Buzzer(3v)
    - -
-
- - - Download - -

-
- -
-

Prepare


-

Get your device ready

-
-
    -

    01 Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.

    -

    02 Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.

    -

    03 Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS

    -
-
-
- -
-

Schematic Diagram


-

Click on the image to zoom

-
- - - -
-
-
- -
-

Connect (Quick Start)


-

Internet of Things Foundation Quickstart connection

-
-
    -

    01 Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files

    -

    02 (The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)

    -

    03 Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
    This will download a zip file named 'Agent.zip'

    -
-
-
- - - - - - - \ No newline at end of file diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/images/thumb.png b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/images/thumb.png index f50a287b05..6bbaf4b508 100644 Binary files a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/images/thumb.png and b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/images/thumb.png differ diff --git a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json index 6b9e900963..b6586ddde5 100644 --- a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json +++ b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json @@ -1,25 +1,6 @@ { "deviceType": { "displayName": "Android", - "image": "/public/cdmf.unit.device.type.android/images/thumb.png", - "downloadBtnText": "Download", - "ingredients": [ - "Raspberry Pi (Internet Enabled)", - "DHT11 Temperature Sensor", - "LED", - "Buzzer(3v)" - ], - "prepareSteps": [ - "Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.", - "Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.", - "Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS" - ], - "schematicDiagram": "/public/cdmf.unit.device.type.windows/images/schematicsGuide.png", - "quickStartup": [ - "Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files", - "(The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)", - "Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
This will download a zip file named 'Agent.zip'" - ], - "additionalHtml" : "" + "category" : "mobile" } } diff --git a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/pages/device-type-details.hbs b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/pages/device-type-details.hbs deleted file mode 100644 index 5b6e3d186b..0000000000 --- a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/pages/device-type-details.hbs +++ /dev/null @@ -1,151 +0,0 @@ -
-

Android Mobile

-
-

Connect your Android device - to the WSO2 device cloud.

-
-
- -
-
-

Ingredients

-
-

Hardware Requirements

-
-
    - - - - Raspberry Pi (Internet Enabled)
    - - - - DHT11 Temperature Sensor
    - - - - LED
    - - - - Buzzer(3v)
    - -
-
- - - Download - -

-
- -
-

Prepare


-

Get your device ready

-
-
    -

    01 Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.

    -

    02 Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.

    -

    03 Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS

    -
-
-
- -
-

Schematic Diagram


-

Click on the image to zoom

-
- - - -
-
-
- -
-

Connect (Quick Start)


-

Internet of Things Foundation Quickstart connection

-
-
    -

    01 Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files

    -

    02 (The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)

    -

    03 Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
    This will download a zip file named 'Agent.zip'

    -
-
-
- - - - - - - \ No newline at end of file diff --git a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json index 39959991ef..6f2b0650e8 100644 --- a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json +++ b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json @@ -1,25 +1,6 @@ { "deviceType": { "displayName": "Windows", - "image": "/public/cdmf.unit.device.type.windows/images/thumb.png", - "downloadBtnText": "Download", - "ingredients": [ - "Raspberry Pi (Internet Enabled)", - "DHT11 Temperature Sensor", - "LED", - "Buzzer(3v)" - ], - "prepareSteps": [ - "Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.", - "Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.", - "Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS" - ], - "schematicDiagram": "/public/cdmf.unit.device.type.windows/images/schematicsGuide.png", - "quickStartup": [ - "Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files", - "(The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)", - "Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
This will download a zip file named 'Agent.zip'" - ], - "additionalHtml" : "" + "category" : "mobile" } } diff --git a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/pages/device-type-details.hbs b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/pages/device-type-details.hbs deleted file mode 100644 index f6e275e339..0000000000 --- a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/pages/device-type-details.hbs +++ /dev/null @@ -1,151 +0,0 @@ -
-

Windows Mobile

-
-

Connect your Windows device - to the WSO2 device cloud.

-
-
- -
-
-

Ingredients

-
-

Hardware Requirements

-
-
    - - - - Raspberry Pi (Internet Enabled)
    - - - - DHT11 Temperature Sensor
    - - - - LED
    - - - - Buzzer(3v)
    - -
-
- - - Download - -

-
- -
-

Prepare


-

Get your device ready

-
-
    -

    01 Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.

    -

    02 Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.

    -

    03 Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS

    -
-
-
- -
-

Schematic Diagram


-

Click on the image to zoom

-
- - - -
-
-
- -
-

Connect (Quick Start)


-

Internet of Things Foundation Quickstart connection

-
-
    -

    01 Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files

    -

    02 (The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)

    -

    03 Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
    This will download a zip file named 'Agent.zip'

    -
-
-
- - - - - - - \ No newline at end of file