summaryrefslogtreecommitdiff
path: root/forecast.pl
diff options
context:
space:
mode:
Diffstat (limited to 'forecast.pl')
-rw-r--r--forecast.pl22
1 files changed, 0 insertions, 22 deletions
diff --git a/forecast.pl b/forecast.pl
deleted file mode 100644
index 927e980..0000000
--- a/forecast.pl
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-use 5.014;
-use WebService::ForecastIo;
-use JSON;
-use Data::Printer;
-
-my $key=$ARGV[0];
-
-my $fio = WebService::ForecastIo->new({
- api_key => $key,
-});
-
-my $json = $fio->request({
- latitude => 51.54,
- longitude => -0.37,
- exclude => ['flags','sources'],
- raw => 1,
-});
-
-say $json;