From fa5788791a7fe047391ce8eae6c988eabf2ee040 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Fri, 23 Jan 2015 19:02:10 +0100 Subject: [PATCH] Initial commit --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..331511f --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +ACPI Thermal +============ + +Read the temperature readings from the ACPI sysfs + +## Installation + + $ composer require noccylabs/acpi-thermal:0.1.* + + +## Usage + +You can get a collection of all the available thermal zones using the static +`getAllZones()` method: + + use NoccyLabs\Thermal; + + $zones = Thermal\Zone::getAllZones(); + foreach ($zones as $zone) { + printf("%s = %.1fÂșC\n", + $zone->getName(), + $zone->getTemp() + ); + } + +You can also create a zone directly and start reading from it (assuming it exists): + + $zone = new Thermal\Zone("thermal_zone0"); + echo $zone->getTemp(); +