Initial commit of migrated code from noccylabs/acpi-thermal
This commit is contained in:
15
examples/allzones.php
Normal file
15
examples/allzones.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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()
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user