16 lines
243 B
PHP
16 lines
243 B
PHP
<?php
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
use NoccyLabs\Linux\Thermal;
|
|
|
|
$zones = Thermal\Zone::getAllZones();
|
|
foreach ($zones as $zone) {
|
|
printf("%s = %.1fºC\n",
|
|
$zone->getName(),
|
|
$zone->getTemp()
|
|
);
|
|
}
|
|
|
|
|