| 1 | package Device::TPLink; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.008003; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Device::TPLink - Access TP-Link Device APIs from Perl | ||
| 10 | |||
| 11 | =head1 VERSION | ||
| 12 | |||
| 13 | Version 0.02 | ||
| 14 | |||
| 15 | =cut | ||
| 16 | |||
| 17 | 1 | our $VERSION = '0.02'; | |
| 18 | |||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | This module does nothing by itself. Use the other modules in the package to control your TP-Link device either directly over TCP or using the Kasa cloud service. | ||
| 23 | |||
| 24 | =head1 SUBROUTINES/METHODS | ||
| 25 | |||
| 26 | None. Check out the "See Also" section for the modules in this package that you should be using instead of this one. | ||
| 27 | |||
| 28 | =head1 AUTHOR | ||
| 29 | |||
| 30 | Verlin Henderson, C<< <verlin at gmail.com> >> | ||
| 31 | |||
| 32 | =head1 BUGS / SUPPORT | ||
| 33 | |||
| 34 | To report any bugs or feature requests, please use the github issue tracker: L<https://github.com/verlin/Device-TPLink/issues> | ||
| 35 | |||
| 36 | =head1 ACKNOWLEDGEMENTS | ||
| 37 | |||
| 38 | I am not associated with TP-Link in any way, except as a customer. The information on the TP-Link protocol came from several sources, including: | ||
| 39 | |||
| 40 | =over 4 | ||
| 41 | |||
| 42 | =item * IT Nerd Space | ||
| 43 | |||
| 44 | L<http://itnerd.space/2017/01/22/how-to-control-your-tp-link-hs100-smartplug-from-internet/> | ||
| 45 | |||
| 46 | Original blog post that I found that gave me the idea to write a Perl module. | ||
| 47 | |||
| 48 | =item * softScheck's "tplink-smartplug" project on GitHub | ||
| 49 | |||
| 50 | L<https://github.com/softScheck/tplink-smartplug> | ||
| 51 | |||
| 52 | Great documentation on the TP-Link smart plug devices, including a more-or-less complete documentation of the JSON API. | ||
| 53 | |||
| 54 | =item * GadgetReactor's "pyHS100" project on GitHub | ||
| 55 | |||
| 56 | L<https://github.com/GadgetReactor/pyHS100/> | ||
| 57 | |||
| 58 | A python library to control TP-Link gear. Their issue tracker gave me the details needed to communicate with the device directly over TCP. | ||
| 59 | |||
| 60 | =back | ||
| 61 | |||
| 62 | =head1 LICENSE AND COPYRIGHT | ||
| 63 | |||
| 64 | Copyright 2018 Verlin Henderson. | ||
| 65 | |||
| 66 | This program is free software; you can redistribute it and/or modify it | ||
| 67 | under the terms of the the Artistic License (2.0). You may obtain a | ||
| 68 | copy of the full license at: | ||
| 69 | |||
| 70 | L<http://www.perlfoundation.org/artistic_license_2_0> | ||
| 71 | |||
| 72 | Any use, modification, and distribution of the Standard or Modified | ||
| 73 | Versions is governed by this Artistic License. By using, modifying or | ||
| 74 | distributing the Package, you accept this license. Do not use, modify, | ||
| 75 | or distribute the Package, if you do not accept this license. | ||
| 76 | |||
| 77 | If your Modified Version has been derived from a Modified Version made | ||
| 78 | by someone other than you, you are nevertheless required to ensure that | ||
| 79 | your Modified Version complies with the requirements of this license. | ||
| 80 | |||
| 81 | This license does not grant you the right to use any trademark, service | ||
| 82 | mark, tradename, or logo of the Copyright Holder. | ||
| 83 | |||
| 84 | This license includes the non-exclusive, worldwide, free-of-charge | ||
| 85 | patent license to make, have made, use, offer to sell, sell, import and | ||
| 86 | otherwise transfer the Package with respect to any patent claims | ||
| 87 | licensable by the Copyright Holder that are necessarily infringed by the | ||
| 88 | Package. If you institute patent litigation (including a cross-claim or | ||
| 89 | counterclaim) against any party alleging that the Package constitutes | ||
| 90 | direct or contributory patent infringement, then this Artistic License | ||
| 91 | to you shall terminate on the date that such litigation is filed. | ||
| 92 | |||
| 93 | Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER | ||
| 94 | AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. | ||
| 95 | THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
| 96 | PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY | ||
| 97 | YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR | ||
| 98 | CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR | ||
| 99 | CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, | ||
| 100 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 101 | |||
| 102 | |||
| 103 | =cut | ||
| 104 | |||
| 105 | 1 | 1; # End of Device::TPLink | |