Skip to content
Snippets Groups Projects
Commit 1900f64e authored by George Salukvadze's avatar George Salukvadze
Browse files

v 0.41.2

- Started development of GTT gauges component pages
- Continuing development of "tinternal" and "purity" components
- Small fixes and changes
parent f02887c6
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,9 @@ config(['$locationProvider', '$routeProvider',
when('/east', {
template: '<east></east>'
}).
when('/south', {
tempalte: '<south></south>'
}).
otherwise('/');
}
]);
\ No newline at end of file
......@@ -21,5 +21,6 @@ angular.module('ng04SlowControlApp', [
'pl506',
'tinternal',
'north',
'east'
'east',
'south'
]);
\ No newline at end of file
'use strict';
angular.module('north', []).component('north', {
templateUrl: 'north/north.template.html',
controller: function northController($http, $q, $interval) {
this.pageTitle = "NP04 North side GTT probes";
angular.module('east', []).component('east', {
templateUrl: 'east/east.template.html',
controller: function eastController($http, $q, $interval) {
this.pageTitle = "NP04 east side GTT probes";
this.natalie = 1;
this.TT0101 = "";
let self = this;
......
......@@ -60,6 +60,8 @@
<script src="north/north.component.js"></script>
<script src="east/east.module.js"></script>
<script src="east/east.component.js"></script>
<script src="south/south.module.js"></script>
<script src="south/south.component.js"></script>
<script>
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px */
......
'use strict';
angular.module('south', []).component('south', {
templateUrl: 'south/south.template.html',
controller: function southController($http, $q, $interval) {
this.pageTitle = "NP04 south side GTT probes";
this.natalie = 1;
this.TT0101 = "";
let self = this;
this.reload = function () {
let temp0 = $http.get("php-db-conn/alias.conn.php?elemId=NP04_MHT0100AI");
let temp1 = $http.get("php-db-conn/alias.conn.php?elemId=NP04_TT0100AI");
let temp2 = $http.get("php-db-conn/alias.conn.php?elemId=NP04_PT0106AI");
let temp3 = $http.get("php-db-conn/alias.conn.php?elemId=NP04_7TT0212AIR");
let temp4 = $http.get('php-db-conn/alias.conn.timestamp.php');
$q.all([temp0, temp1, temp2, temp3, temp4]).then(function (resultArray) {
self.NP04_MHT0100AI = resultArray[0].data.records;
self.NP04_TT0100AI = resultArray[1].data.records;
self.NP04_PT0106AI = resultArray[2].data.records;
self.NP04_7TT0212AIR = resultArray[3].data.records;
self.timestamp = resultArray[4].data.records;
console.log("interval occured");
});
};
this.reload();
$interval(this.reload, 600000);
}
});
\ No newline at end of file
describe('south', function() {
var $scope;
var controller;
// Load the module that contains the `phoneList` component before each test
beforeEach(function() {
module('south')
// Test the controller
inject(function(_$rootScope_, $controller) {
$scope = _$rootScope_.$new();
controller = $controller("south", {$scope: $scope});
});
describe('southController', function() {
it('should create a `south` model with 1 natalie', inject(function($componentController) {
let ctrl = $componentController('south');
expect(ctrl.natalie).toBe(1);
}));
})
});
;
});
\ No newline at end of file
'use strict';
angular.module('south', [
'ngRoute'
]);
\ No newline at end of file
<link rel="stylesheet" href="css/east.css">
<div class="container">
<div id="pageTitle">{{$ctrl.pageTitle}}</div>
<img id="detector" src="img/tss001acbc.png" alt="TSS 001 AB/BB"/>
<div id="timestamp_label">Timestamp:<br/><span id="timestamp">{{ $ctrl.timestamp[0].Mnish }}</span></div>
<div id="ambient">Humidity:<br/><a target="_blank" href="#!/histogram/NP04_MHT0100AI"><span class="value">{{ $ctrl.NP04_MHT0100AI[0].Mnish | number: 1 }} %</span></a><br/>Ambient temperature:<br/><a target="_blank" href="#!/histogram/NP04_TT0100AI"><span class="value">{{ $ctrl.NP04_TT0100AI[0].Mnish | number: 1 }} &#8451;</span></a><br/>Ambient pressure:<br/><a target="_blank" href="#!/histogram/NP04_PT0106AI"><span class="value">{{ $ctrl.NP04_PT0106AI[0].Mnish * 1000 | number: 1 }} mbar</span></a></div>
<div id="tss001ACBC">TSS 001 AC/BC</div>
<div id="NP04_7TT0212AIR"><a href="#!/histogram/NP04_7TT0212AIR"><span class="value">{{ $ctrl.NP04_7TT0212AIR[0].Mnish | number: 2 }} &#8490;</span></a></div>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment