Deutsch:
Dieses php-Skript zeigt die unten genannten Systeminformationen des Raspberry Pis auf einer einer Website an. Dabei ist darauf zu achten, dass der php Safe Mode deaktiviert ist!
English:
This little php script displays the following system information on your Website. You need to have php Safe Mode disabled!
- Hostname
- System Time
- Kernel Version
- Processor
- CPU Frequency
- CPU Load
- CPU Temperature
- Uptime
- RAM and Swap Usage
- Disk Usage
Version 2 needs a HTML5 compatible Browser
Sysinfo Script V1 Download571 downloads
Sysinfo Script V2 Download1096 downloads
Examples:
Version 1:
Version 2:
Thank you very much. Your code is helping me.
I’ve added this, to check the real memory usage by applications:
$real_mem = $total_mem – ($free_mem + $buffer_mem + $cache_mem);
There is an error in version 2 of your Sysinfo script. In the updateText Javascript function, you use the method innerText, which is non-standard and does not work on Firefox. Changing the script to use the textContent method fixes the problem.
Thank you!
I updated the Script. Should be fixed now.
You did a fine job with this script sir! Thank you very much for sharing.
Hi,
Thank you for your script. It is more lighty than phpsysinfo.
So just two questions :
1) Why did you use system date command to get date rather than php date function (or php strftime) ? Using external command is not longer than built-in functiun ?
2) why did you use a javascript to update the tab content ?
It is not less complex to write with php echo fuction ?
Such as :
Before (using js function):
Systeme time
After (without js)
System time
In both cases, when the page is auto-reloaded, the display time is updated.
It seem that my code doesn’t appear on previous. I retry with CODE TAG.
Hi,
Thank you for your script. It is more lighty than phpsysinfo.
So just two questions :
1) Why did you use system date command to get date rather than php date function (or php strftime) ? Using external command is not longer than built-in functiun ?
2) why did you use a javascript to update the tab content ?
It is not less complex to write with php echo fuction ?
Such as :
Before (using js function):
[code]
Systeme time
[/code]
After (without js)
[code]
System time
[/code]
In both cases, when the page is auto-reloaded, the display time is updated.
Thank you for writing this. I have it installed on 6 raspberry pi’s. Do you have any plans on adding anything else to this?
not anytime soon to be honest…
but what kind of features would you like?
Since I normally address my Pi’s by name I would also like to see the IP address and interface (Eth0, Wlan0) since some of mine are wireless and others are directly attached. The load average:” 0.01, 0.02, 0.05″ would also be nice.
Thanks Max