diff options
author | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
commit | ef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch) | |
tree | ff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/serverTemp.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-trunk.tar.gz main-trunk.tar.bz2 main-trunk.zip |
Diffstat (limited to 'admin/api/serverTemp.php')
-rw-r--r-- | admin/api/serverTemp.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/admin/api/serverTemp.php b/admin/api/serverTemp.php deleted file mode 100644 index 613c411..0000000 --- a/admin/api/serverTemp.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-echo(l("Server running at", "Serveur fonctionnant à") . " <b>");
-exec("sensors -j", $out);
-$outp = implode("\n", $out);
-$outd = json_decode($outp, true);
-
-echo(round($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"], 1));
-
-?>°C</b>, <?php
-
-if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 90) {
- echo(l("completely overheating!", "en pleine surchauffe !"));
-} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) {
- echo(l("starting to throttle!", "commence à être bridé !"));
-} else {
- echo(l("under normal temperatures", "températures habituelles"));
-}
\ No newline at end of file |