Skip to content

Commit e8a6628

Browse files
committed
Add processor info and cleanup licencs and about
1 parent 7e1f5a0 commit e8a6628

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

rpimonitor/rpimonitord.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ distribution=/etc/os-release=PRETTY_NAME.\"(.*)\"
6969
firmware_version=false=(.*)
7070
kernel_version=uname -msr=(.*)
7171
revision=false=(.*)
72+
processor=/proc/cpuinfo=Processor\s+: (.*)
7273
memory_total=/proc/meminfo=MemTotal:\s+(\d+)
7374
swap_total=/proc/meminfo=SwapTotal:\s+(\d+)
7475
sdcard_root_total=df -t ext4=root\s+(\d+)

rpimonitor/web/css/rpimonitor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ code {
6666
font-size: 80%;
6767
}
6868

69-
/* FROM RASPCONTROL
69+
/*
7070
-------------------------------------------------- */
7171
.reportIcon {
7272
float: left;

rpimonitor/web/js/rpimonitor.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ var animate;
22
var shellinabox;
33
var shellinaboxport;
44
var statusautorefresh;
5-
var refreshtimer;
5+
var refreshTimerId;
6+
var clickId;
67
var firstload=true;
78

89
function SetProgressBarAnimate(){
@@ -75,21 +76,21 @@ $(function () {
7576
'</div>'+
7677
'<div class="modal-body">'+
7778
'This program is free software: you can redistribute it and/or modify<br>'+
78-
'it under the terms of the GNU General Public License as published by<br>'+
79-
'the Free Software Foundation, either version 3 of the License, or<br>'+
79+
'it under the terms of the GNU General Public License as published<br>'+
80+
'by the Free Software Foundation, either version 3 of the License, or<br>'+
8081
'(at your option) any later version.<br>'+
8182
'<br>'+
82-
'This program is distributed in the hope that it will be useful,<br>'+
83-
'but WITHOUT ANY WARRANTY; without even the implied warranty of<br>'+
84-
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>'+
85-
'GNU General Public License for more details.<br>'+
83+
'This program is distributed in the hope that it will be useful,i but<br>'+
84+
'WITHOUT ANY WARRANTY; without even the implied warranty of<br>'+
85+
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>'+
86+
'See the GNU General Public License for more details.<br>'+
8687
'<br>'+
8788
'You should have received a copy of the GNU General Public License<br>'+
8889
'along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.'+
8990
'</p>'+
9091
'<hr>'+
91-
'RPi-Monitor is using third party software hava there own license.<br>'+
92-
'Ref. <a href="#About" data-dismiss="modal" data-toggle="modal">About</a> to have the list of software used by RPi-Monitor. '+
92+
'<b>RPi-Monitor</b> is using third party software hava there own license.<br>'+
93+
'Ref. <a href="#About" data-dismiss="modal" data-toggle="modal">About</a> to have the list of software used by <b>RPi-Monitor</b>. '+
9394
'</div>'+
9495
'<div class="modal-footer">'+
9596
'<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>'+
@@ -108,9 +109,8 @@ $(function () {
108109
'<p><b>Version</b>: {DEVELOPMENT} '+
109110
'<b>by</b> Xavier Berger <a href="http://rpi-experiences.blogspot.fr/">Blog</a> <a href="https://github.com/XavierBerger/RPi-Monitor">GitHub</a></p>'+
110111
'<hr>'+
111-
'<p><b>RPi-Monitor</b> is free software developped on top of other open source'+
112+
'<p><b>RPi-Monitor</b> is free software developped on top of other open source '+
112113
'tools : <a href="http://twitter.github.io/bootstrap/">bootstrap</a>, <a href="http://jquery.com/">jquery</a>, <a href="https://code.google.com/p/jsqrencode/">jsqrencode</a> and <a href="http://javascriptrrd.sourceforge.net/">javascriptrrd</a>.<br>'+
113-
'The look and feel of the status page is clearly inspired by <a href="https://github.com/Bioshox/Raspcontrol">Raspcontrol</a>.</p>'+
114114
'<p><b>Raspberry Pi</b> and Raspberry Pi logo are properties of <a href="http://www.raspberrypi.org/">Raspberry Pi Fundation</a>.</p>'+
115115
'</div>'+
116116
'<div class="modal-footer">'+
@@ -173,7 +173,7 @@ $(function () {
173173
'<li><a href="#About" data-toggle="modal">About</a></li>'+
174174
'<li class="divider"></li>'+
175175
'<li class="nav-header">Related links</li>'+
176-
'<li><a href="http://rpi-experiences.blogspot.fr/">RPi-experiences</a></li>'+
176+
'<li><a href="http://rpi-experiences.blogspot.fr/">RPi-Experiences</a></li>'+
177177
'<li><a href="https://github.com/XavierBerger/RPi-Monitor">RPi-Monitor</a></li>'+
178178
'</ul>'+
179179
'</li>'+
@@ -245,10 +245,12 @@ $(function () {
245245
localStorage.setItem('statusautorefresh', statusautorefresh);
246246
if ( statusautorefresh ) {
247247
UpdateStatus();
248-
refreshtimer = setInterval( UpdateStatus , 10000 )
248+
refreshTimerId = setInterval( UpdateStatus , 10000 )
249+
clockId=setInterval(clock,1000);
249250
}
250251
else {
251-
clearInterval(refreshtimer);
252+
clearInterval(refreshTimerId);
253+
clearInterval(clockId);
252254
};
253255
});
254256

rpimonitor/web/js/rpimonitor.status.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ function UpdateStatus () {
3838
uptimetext += "<b>" + pad(seconds) +"</b> seconds<p>"
3939
$('#uptimeText').html(uptimetext);
4040

41-
// temperature
41+
// version
4242
versionText="";
43+
if ( data.processor ) { versionText+="<p>Processor: <b>" + data.processor + "</b></p>"}
4344
if ( data.distribution ) { versionText+="<p>Distribtion: <b>" + data.distribution + "</b></p>"}
4445
if ( data.kernel_version ) { versionText+="<p>Kernel version: <b>" + data.kernel_version + "</b></p>"}
4546
if ( data.firmware_version ) { versionText+="<p>Firmvare version: <b>" + data.firmware_version + "</b></p>"}
@@ -124,11 +125,10 @@ $(function () {
124125
/* Start status update*/
125126
UpdateStatus();
126127
if ( statusautorefresh ) {
127-
refreshtimer = setInterval( UpdateStatus , 10000 )
128+
refreshTimerId = setInterval( UpdateStatus , 10000 )
129+
clockId=setInterval(clock,1000);
128130
}
129131

130-
setInterval(clock,1000);
131-
132132
});
133133

134134

0 commit comments

Comments
 (0)