Removed unnecessary extra layer in resource folder structure.
This commit is contained in:
parent
94485b5633
commit
d8a1b66738
190 changed files with 11 additions and 11 deletions
39
plugins/hal-powerchallenge/resources/web/pc_heatmap.tmpl
Normal file
39
plugins/hal-powerchallenge/resources/web/pc_heatmap.tmpl
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<h1 class="page-header">Heat Map</h1>
|
||||
|
||||
<div id="googleMap" style="width: 95%;height: 800px;"></div>
|
||||
|
||||
|
||||
<script src="http://maps.googleapis.com/maps/api/js"></script>
|
||||
<script>
|
||||
function initialize() {
|
||||
var mapProp = {
|
||||
center:new google.maps.LatLng(59.329323,18.068581),
|
||||
zoom:12,
|
||||
mapTypeId:google.maps.MapTypeId.ROADMAP
|
||||
};
|
||||
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
|
||||
|
||||
var home = new google.maps.Circle({
|
||||
center: {lat: 59.365954, lng: 17.975351},
|
||||
radius:2000,
|
||||
strokeColor:"#00FF00",
|
||||
strokeOpacity:0.8,
|
||||
strokeWeight:2,
|
||||
fillColor:"#00FF00",
|
||||
fillOpacity:0.4,
|
||||
map: map
|
||||
});
|
||||
|
||||
var external = new google.maps.Circle({
|
||||
center: {lat: 59.275638, lng: 18.024362},
|
||||
radius:2000,
|
||||
strokeColor:"#FF0000",
|
||||
strokeOpacity:0.8,
|
||||
strokeWeight:2,
|
||||
fillColor:"#FF0000",
|
||||
fillOpacity:0.4,
|
||||
map: map
|
||||
});
|
||||
}
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
</script>
|
||||
29
plugins/hal-powerchallenge/resources/web/pc_overview.tmpl
Normal file
29
plugins/hal-powerchallenge/resources/web/pc_overview.tmpl
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<h1 class="page-header">Overview</h1>
|
||||
|
||||
<div class="row placeholders">
|
||||
<H1>Last 24 hours (kWh/5min)</H1>
|
||||
<div id="minute-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>Last Week (kWh/h)</H1>
|
||||
<div id="hour-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>All History (kWh/day)</H1>
|
||||
<div id="day-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>All History (kWh/week)</H1>
|
||||
<div id="week-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$(function(){
|
||||
createChart("#minute-power-chart", "/api/sensor?aggregation=minute", 5*60*1000);
|
||||
createChart("#hour-power-chart", "/api/sensor?aggregation=hour", 60*60*1000);
|
||||
createChart("#day-power-chart", "/api/sensor?aggregation=day", 24*60*60*1000);
|
||||
createChart("#week-power-chart", "/api/sensor?aggregation=week", 7*24*60*60*1000);
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue