POE::Component::IRC::Plugin::WWW::Weather::US - IRC plugin that fetches US weather by zip code
use strict; use warnings; use POE qw(Component::IRC Component::IRC::Plugin::WWW::Weather::US); my $irc = POE::Component::IRC->spawn( nick => 'nickname', server => 'irc.freenode.net', port => 6667, ircname => 'ircname', ); POE::Session->create(package_states => [main => [qw(_start irc_001)]]); $poe_kernel->run; sub _start { $irc->yield(register => 'all'); $irc->plugin_add(Weather => POE::Component::IRC::Plugin::WWW::Weather::US->new); $irc->yield(connect => {}); } sub irc_001 { $irc->yield(join => '#channel'); }
type !weather 91202 to get the current weather for a location, currenly fetched from http://forecast.weather.gov/zipcity.php
Curtis Brandt <curtis@cpan.org>
Copyright 2013- Curtis Brandt
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install POE::Component::IRC::Plugin::WWW::Weather::US, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::IRC::Plugin::WWW::Weather::US
CPAN shell
perl -MCPAN -e shell install POE::Component::IRC::Plugin::WWW::Weather::US
For more information on module installation, please visit the detailed CPAN module installation guide.