From d2f223da908ac6a5d4b2bf3c780aa003dd38fdf8 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Sat, 14 May 2016 20:43:27 +0530 Subject: [PATCH] few fixes after testing the device type with the refactoring --- .../connectedcup/component/analytics/build.xml | 2 +- .../coffee_level/coffee_level_script/artifact.xml | 2 +- .../coffee_level_script/coffee_level_script.xml | 15 ++++----------- .../org.wso2.iot.devices.coffeelevel_1.0.0.json | 7 ++----- .../connected_cup_receiver.xml | 2 +- .../org.wso2.iot.connectedcup_1.0.0.json | 2 +- .../public/js/devicetype-graph.js | 2 +- .../private/config.json | 6 ++++++ 8 files changed, 17 insertions(+), 21 deletions(-) create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json diff --git a/modules/samples/connectedcup/component/analytics/build.xml b/modules/samples/connectedcup/component/analytics/build.xml index 89289868..2b91ec40 100644 --- a/modules/samples/connectedcup/component/analytics/build.xml +++ b/modules/samples/connectedcup/component/analytics/build.xml @@ -17,7 +17,7 @@ ~ under the License. --> - + diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/artifact.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/artifact.xml index 879a923d..e43343eb 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/artifact.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/artifact.xml @@ -17,6 +17,6 @@ ~ under the License. --> - + coffee_level_script.xml diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml index f8f93781..15684e58 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml @@ -20,18 +20,11 @@ coffee_level_script - 0 * * * * ? + 0 0/5 * * * ? diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_stream/org.wso2.iot.devices.coffeelevel_1.0.0.json b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_stream/org.wso2.iot.devices.coffeelevel_1.0.0.json index f9058d22..abcace4e 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_stream/org.wso2.iot.devices.coffeelevel_1.0.0.json +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_stream/org.wso2.iot.devices.coffeelevel_1.0.0.json @@ -1,7 +1,7 @@ { "name": "org.wso2.iot.devices.coffeelevel", "version": "1.0.0", - "nickName": "Coffee Level Data", + "nickName": "CoffeeLevel", "description": "Coffee Level data received from the Device", "metaData": [ {"name":"owner","type":"STRING"}, @@ -14,7 +14,4 @@ "name": "coffeelevel","type": "FLOAT" } ] -} - - - +} \ No newline at end of file diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_receiver/connected_cup_receiver.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_receiver/connected_cup_receiver.xml index ff9214e9..cd9b0657 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_receiver/connected_cup_receiver.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_receiver/connected_cup_receiver.xml @@ -17,7 +17,7 @@ ~ under the License. --> - + carbon.super/connectedcup/# admin diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_stream/org.wso2.iot.connectedcup_1.0.0.json b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_stream/org.wso2.iot.connectedcup_1.0.0.json index ebdc9f25..a93e29e0 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_stream/org.wso2.iot.connectedcup_1.0.0.json +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/connected_cup/connected_cup_stream/org.wso2.iot.connectedcup_1.0.0.json @@ -1,7 +1,7 @@ { "name": "org.wso2.iot.connectedcup", "version": "1.0.0", - "nickName": "connectedcup stream", + "nickName": "connectedcup", "description": "This hold the device type stream of connectedcup", "metaData": [ {"name": "owner", "type": "STRING"}, diff --git a/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.analytics-view/public/js/devicetype-graph.js b/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.analytics-view/public/js/devicetype-graph.js index ae85f661..5b5b79e9 100644 --- a/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.analytics-view/public/js/devicetype-graph.js +++ b/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.analytics-view/public/js/devicetype-graph.js @@ -18,7 +18,7 @@ var palette = new Rickshaw.Color.Palette({scheme: "classic9"}); -function drawGraph(from, to) { +function drawGraph_connectedcup(from, to) { retrieveDataAndDrawLineGraph("temperature", from, to); retrieveDataAndDrawLineGraph("coffeelevel", from, to); } diff --git a/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json b/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json new file mode 100644 index 00000000..685ee7ff --- /dev/null +++ b/modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json @@ -0,0 +1,6 @@ +{ + "deviceType": { + "label": "Connected Cup", + "category": "virtual" + } +} \ No newline at end of file