mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Changing the publishes and execution plans to work with android-sense
This commit is contained in:
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}},
|
||||
|
||||
@ -27,6 +27,10 @@
|
||||
{
|
||||
"name": "longitude",
|
||||
"type": "DOUBLE"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"type": "STRING"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user