Device::USB::TEMPer1F - Perl extension for USB PCSensor TEMPer1F
use Device::USB::TEMPer1F; Either my $temper = Device::USB::TEMPer1F->new or die $@; print $temper->fetch; # 23.50 Or print Device::USB::TEMPer1F->fetch;
This device must be configured for using libusb.
The API is very easy and has two methods only, as you can see below.
my $temper = Device::USB::TEMPer1F->new or die $@; If the device was not found or other errors occurred, new() throws an exception and $@ contains the corresponding message.
The fetch() method returns the temperature in degrees celsius.
libusb Device::USB ppm install http://rolfrost.de/Device-USB.ppd ppm install http://rolfrost.de/Device-USB-PX1674.ppd ppm install http://rolfrost.de/Device-USB-TEMPer1F.ppd
Rolf Rost, <firstname.lastname@example.org>
Copyright (C) 2017 by Rolf Rost
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.3 or, at your option, any later version of Perl 5 you may have available.