Device...Sensor(3pm)
π Device::USB::PCSensor::HidTEMPer::Sensor π
okay bestie, so this page is Device::USB::PCSensor::HidTEMPer::Sensor(3pm) from the User Contributed Perl Documentation section, and it's literally the blueprint for every HidTEMPer sensor out there. sit down, grab a strawberry, let's go π
πΈ NAME πΈ
Device::USB::PCSensor::HidTEMPer::Sensor β the generic sensor class. like, the mother of all sensors, the template, the moment. π
β VERSION β
Version 0.0301 β yes it's giving vintage, and no we're not apologizing. π
β¨ SYNOPSIS β¨
None. That's it. Nothing to see here, moving on. π
π¦ DESCRIPTION π¦
so this module holds a generic class that every single HidTEMPer sensor should inherit from. why? because it keeps all the implemented methods consistent across the board, and it makes it possible to use the exact same code to talk to every supported device. no cap. one codebase, all the sensors, that's the dream. β¨
π CONSTANTS π
MAX_TEMPERATUREβ the highest temperature (in Celsius) this sensor can even detect. it's giving ceiling. π§MIN_TEMPERATUREβ the lowest temperature (in Celsius) this sensor can detect. the floor, fr fr. π§
π METHODS π
new( $device )β the generic initializing method that creates a sensor object. the glow-up moment where your sensor is born. π
Input parameter
$device = a pre-initialized Device::USB::PCSensor::HidTEMPer::Device that the sensor is connected to. this device is what handles all the communication for you. think of it as the sensor's manager. π
fahrenheit()β reads the current temperature and hands you back the value in fahrenheit degrees. πΊπΈβ¨max()β returns the highest temperature (Celsius) the sensor can detect.min()β returns the lowest temperature (Celsius) the sensor can detect.celsius()β an empty method that should be implemented in each sensor, returning the current degrees in celsius. like, it's a placeholder bestie, it's waiting for its main character moment. π
π«Ά DEPENDENCIES π«Ά
this module internally includes and takes use of the following packages:
use Scalar::Util qw/ weaken /;
and also, this module uses the strict and warning pragmas. safety first, always. π
π BUGS π
please report any bugs or missing features using the CPAN RT tool. don't suffer in silence, tell on it. π
π FOR MORE INFORMATION π
None. we said what we said. π€·
πΈ AUTHOR πΈ
Magnus Sulland < msulland@cpan.org > β iconic behavior, thank you for your service. π«‘π
β¨ ACKNOWLEDGEMENTS β¨
thanks to Elan RuusamΓ€e for fixing some compatibility issues with perl 5.8. a real one. π«Ά
π COPYRIGHT & LICENSE π
Copyright (c) 2010-2011 Magnus Sulland
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
periodt. π
π POD ERRORS π
hey! so the above document had some coding errors, and they're explained below:
Around line 157:
Non-ASCII character seen before =encoding in 'RuusamΓ€e'. Assuming
UTF-8
not the document exposing itself like that, but okay, we move. π
and that's the whole vibe, bestie. this wasDevice::USB::PCSensor::HidTEMPer::Sensor(3pm), brought to you byperl v5.40.0on2024-11-30. mwah, go forth and read your temperatures. ππΈβ¨
π¦ where this page comes from
- debian trixie: libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libdevice-usb-pcsensor-hidtemper-perl 2:0.04-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms