1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

adding api functionality to sensor information page

This commit is contained in:
2016-05-18 04:03:42 -05:00
parent b6d5854250
commit b3da7be0b8
3 changed files with 95 additions and 20 deletions

View File

@@ -4,18 +4,19 @@
<p><span class="colorRed">Note:</span> I am using a DHT11 analog sensor for both temperature and humidity readings. I am also using a DS18B20 digital sensor, which only takes temperature readings. The digital sensor seems to get more accurate readings. Some of the data may be inconsistent as this is an experimental process.
</p>
<hr>
<div class="col-lg-4">
<h3>Sensor Title</h3>
<h4>Temperature: °F </h4>
<h4>Humidity: </h4>
<span>Updated:</span>
<br>
<span class="colorGreen">Connected</span>
<br>
<br>
<a href="/sensors/location">
<button class="btn btn-default">View Graph</button>
</a>
<div ng-repeat="sensorInfo in information">
<div class="col-lg-4">
<h3>{{sensorInfo.location}}</h3>
<h4>Temperature: {{sensorInfo.temperature}}°F </h4>
<span>Updated: {{sensorInfo.date}}</span>
<br>
<span class="{{sensorInfo.css}}">{{sensorInfo.status}}</span>
<br>
<br>
<a href="/sensors/{{sensorInfo.location}}">
<button class="btn btn-default">View Graph</button>
</a>
</div>
</div>
</div>
<br>