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

merge-requests/1/head
Megala 8 years ago
parent 09805d451c
commit 7045a94615

@ -706,7 +706,8 @@ intializeWebsocketUrls();
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)) {
iconUrl = iconUrl + "/moving/" + this.state.toLowerCase();
} 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 );
@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')
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;
from dataOut[notify == true]
select id,state,information,timeStamp, latitude, longitude
select id, state, information,timeStamp, latitude, longitude, type
insert into alertsOut;

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

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

Loading…
Cancel
Save