adding sensebot app

merge-requests/1/head
Rasika 10 years ago
parent e7ee089139
commit b009287929

@ -66,9 +66,9 @@ function getData(user, deviceId, from, to) {
result = new Object();
result['sonarData'] = getSensorData("SONAR_SENSOR_SUMMARY","SONAR",user, deviceId, from, to);
result['motionData'] = getSensorData("PIR_MOTION_SENSOR_SUMMARY","MOTION",user, deviceId, from, to);
result['lightData'] = getSensorData("LDR_LIGHT_SENSOR_SUMMARY","LIGHT",user, deviceId, from, to);
result['sonarData'] = getSensorData("SONAR_SENSOR_SUMMARY","sonar",user, deviceId, from, to);
result['motionData'] = getSensorData("PIR_MOTION_SENSOR_SUMMARY","motion",user, deviceId, from, to);
result['lightData'] = getSensorData("LDR_LIGHT_SENSOR_SUMMARY","light",user, deviceId, from, to);
result['temperatureData'] = getSensorData("DEVICE_TEMPERATURE_SUMMARY","TEMPERATURE",user, deviceId, from, to);
return result;

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

@ -21,7 +21,10 @@
</div>
<div class="row float-right margin-top">
<div class="right margin-right">
<input class="right margin-right" id="date-range1" size="60" value="" style="margin-top: 20px">
<p style="color:#000;float:left;margin-top:25px">Device Id:</p>
<input class="right margin-right" id="device_id" value="" style="margin-top:
20px" />
<input class="right margin-right" id="date-range1" size="60" value="" style="margin-top: 20px">
<button type="button" id="btn-draw-graphs" class="btn btn-primary" style="margin-top: 20px">
Draw Graphs
</button>

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 516 B

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 451 B

Before

Width:  |  Height:  |  Size: 650 B

After

Width:  |  Height:  |  Size: 650 B

Before

Width:  |  Height:  |  Size: 373 B

After

Width:  |  Height:  |  Size: 373 B

@ -43,7 +43,8 @@ $('#date-range1').dateRangePicker(configObject)
});
$('#btn-draw-graphs').on('click', function () {
var deviceId = $('#device-id').val();
var deviceId = $('#device_id').val();
console.log("device id:"+deviceId);
getStats(deviceId, fromDate, toDate);
});
@ -51,7 +52,7 @@ function getStats(deviceId, from, to) {
var requestData = new Object();
requestData['deviceId'] = getUrlParameter('deviceId');
requestData['deviceId'] = deviceId;
if (from) {
requestData['from'] = from;

@ -475,6 +475,7 @@ header{background-color: #2a2a2a;}
#device_id{
background: #fff none repeat scroll 0 0;
border: 1px solid #ccc;
width: 220px;
}
.hour-range,.minute-range{background: #fff none repeat scroll 0 0; border: 1px solid #ccc;}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save