comparison fetch_weather.pl @ 206:2ac661d551b3

Update documentation.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Jul 2014 16:00:29 +0300
parents 92f4a489b7ef
children c6bbf69afc57
comparison
equal deleted inserted replaced
205:dd20109d92da 206:2ac661d551b3
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -w
2 ########################################################################## 2 ##########################################################################
3 # 3 #
4 # Fetch Weather v0.1 by Matti 'ccr' Hamalainen <ccr@tnsp.org> 4 # Fetch Weather v0.1 by Matti 'ccr' Hamalainen <ccr@tnsp.org>
5 # (C) Copyright 2014 Tecnic Software productions (TNSP) 5 # (C) Copyright 2014 Tecnic Software productions (TNSP)
6 # This script is freely distributable under GNU GPL (version 2) license.
6 # 7 #
7 # Should be ran as a cronjob, and configured properly. 8 # Should be ran as a cronjob, and configured properly.
8 # 15 * * * * /absolute/path/to/fetch_weather.pl </path/to/configfile> 9 # */10 * * * * perl -w /absolute/path/to/fetch_weather.pl /path/to/configfile
9 # 10 #
10 # Configuration file example is in fetch_weather.config 11 # Configuration file example is in fetch_weather.config
11 # 12 #
12 # This script is freely distributable under GNU GPL (version 2) license. 13 # Requires various Perl modules, in Debian the packages should be:
14 # libwww-perl libxml-simple-perl libtimedate-perl
15 #
13 # 16 #
14 ########################################################################## 17 ##########################################################################
15 use strict; 18 use strict;
16 use LWP::UserAgent; 19 use LWP::UserAgent;
17 use HTML::Entities; 20 use HTML::Entities;
18 use XML::Simple; 21 use XML::Simple;
19 use Text::Iconv;
20 use Date::Format; 22 use Date::Format;
21 use Date::Parse; 23 use Date::Parse;
22 use Data::Dumper; 24 use Data::Dumper;
23 25
24 26