Last active
August 29, 2015 14:06
-
-
Save alexciarlillo/19b2e082632128310796 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myApp = angular.module("myApp", [ 'ngRoute', 'myAppControllers', 'myAppServices', 'chartjs']); | |
myApp.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { | |
$locationProvider.html5Mode(true); | |
$routeProvider.when('/', { | |
templateUrl: '/partials/dashboard.html', | |
controller: 'DashboardCtrl' | |
}); | |
}]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<div class="panel panel-info"> | |
<div class="panel-heading">Raspberry Pi Stats</div> | |
<div class="panel-body"> | |
<div ng-controller="tableController"> | |
<table class="table table-responsive table-bordered table-condensed"> | |
<thead> | |
<tr> | |
<td>Version</td> | |
<td>CPU Load</td> | |
<td>CPU Freq</td> | |
<td>CPU Temp</td> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>{{ pi.version }}</td> | |
<td>{{ pi.cpuload }}</td> | |
<td>{{ pi.cpufreq }}</td> | |
<td>{{ pi.cputemp }}</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment