current-cost-reader - simple example script to read from a Current Cost monitor
version 1.142240
current-cost-reader [options] device # read from the USB tty device of Current Cost monitor current-cost-reader --classic /dev/ttyUSB0 # read from the USB tty device of an older Classic Current Cost monitor current-cost-reader --classic /dev/ttyUSB0 # read from saved log file current-cost-reader cc128.log # read from saved log file of an older Classic Current Cost monitor current-cost-reader --classic classic.log
This script is an example of the usage of the Device::CurrentCost API. It simply writes a summary of the received data to stdout.
Print a brief help message.
Print the manual page.
Make output more verbose.
Display completed history records when available.
Device::CurrentCost
Current Cost website: http://www.currentcost.com/
Mark Hindess <soft-cpan@temporalanomaly.com>
This software is copyright (c) 2014 by Mark Hindess.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Device::CurrentCost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::CurrentCost
CPAN shell
perl -MCPAN -e shell install Device::CurrentCost
For more information on module installation, please visit the detailed CPAN module installation guide.