Changing the publishes and execution plans to work with android-sense

revert-dabc3590
Megala 8 years ago
parent 09805d451c
commit 7045a94615

@ -706,7 +706,8 @@ intializeWebsocketUrls();
SpatialObject.prototype.stateIcon = function () { SpatialObject.prototype.stateIcon = function () {
var iconUrl = "/portal/store/carbon.super/fs/gadget/geo-dashboard/img/markers/object-types/" + this.type.toLowerCase(); //TODO : Need to add separate icons for each device type
var iconUrl = "/portal/store/carbon.super/fs/gadget/geo-dashboard/img/markers/object-types/default_icons";
if (0 < this.speed && (-360 <= this.heading && 360 >= this.heading)) { if (0 < this.speed && (-360 <= this.heading && 360 >= this.heading)) {
iconUrl = iconUrl + "/moving/" + this.state.toLowerCase(); iconUrl = iconUrl + "/moving/" + this.state.toLowerCase();
} else { } else {

@ -12,7 +12,7 @@
define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, eventId string, state string, information string ); define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, eventId string, state string, information string );
@Export('org.wso2.geo.AlertsNotifications:1.0.0') @Export('org.wso2.geo.AlertsNotifications:1.0.0')
define stream alertsOut ( id string, state string, information string, timeStamp long, latitude double, longitude double ); define stream alertsOut ( id string, state string, information string, timeStamp long, latitude double, longitude double, type string);
@Export('org.wso2.geo.FusedSpatialEvent:1.0.0') @Export('org.wso2.geo.FusedSpatialEvent:1.0.0')
define stream dataOut ( id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, state string, information string, notify bool ); define stream dataOut ( id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, state string, information string, notify bool );
@ -25,5 +25,5 @@ select id, latitude, longitude, timeStamp, type, speed, heading, state , informa
insert into dataOut; insert into dataOut;
from dataOut[notify == true] from dataOut[notify == true]
select id,state,information,timeStamp, latitude, longitude select id, state, information,timeStamp, latitude, longitude, type
insert into alertsOut; insert into alertsOut;

@ -7,8 +7,8 @@
"messageType" : "Point", "messageType" : "Point",
"type": "Feature", "type": "Feature",
"id": {{id}}, "id": {{id}},
"deviceId": "rkxb293yw2t2", "deviceId": {{id}},
"deviceType": "virtual_firealarm", "deviceType": {{type}},
"properties": { "properties": {
"speed": {{speed}}, "speed": {{speed}},
"heading": {{heading}}, "heading": {{heading}},

@ -8,7 +8,7 @@
"messageType" : "Alert", "messageType" : "Alert",
"type": "Feature", "type": "Feature",
"id": {{id}}, "id": {{id}},
"deviceId": "rkxb293yw2t2", "deviceId": {{id}},
"deviceType" : "virtual_firealarm", "deviceType" : "virtual_firealarm",
"state": {{state}}, "state": {{state}},
"information": {{information}}, "information": {{information}},

@ -27,6 +27,10 @@
{ {
"name": "longitude", "name": "longitude",
"type": "DOUBLE" "type": "DOUBLE"
},
{
"name": "type",
"type": "STRING"
} }
] ]
} }
Loading…
Cancel
Save