summaryrefslogtreecommitdiff
path: root/driver.pl
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2013-05-27 17:01:20 +0100
committerdakkar <dakkar@thenautilus.net>2013-05-27 17:01:20 +0100
commit47d24b4cbea6d8364d0718e31cfd2fb92187b7ea (patch)
treeaf6fe6c112f4dd3a87d1606db6d03b48eeeccccb /driver.pl
parentinclude busses in html (diff)
downloadHomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.tar.gz
HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.tar.bz2
HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.zip
factored TFL client
Diffstat (limited to 'driver.pl')
-rw-r--r--driver.pl15
1 files changed, 9 insertions, 6 deletions
diff --git a/driver.pl b/driver.pl
index dacda01..54a04ab 100644
--- a/driver.pl
+++ b/driver.pl
@@ -3,18 +3,21 @@ use strict;
use warnings;
use 5.014;
use WebService::ForecastIo::Response;
-use TFL::Bus;
+use WebService::TFL::Bus;
+use WebService::TFL::Bus::Request;
use HomePanel::Render;
use Path::Class;
my $forecast = WebService::ForecastIo::Response->new(
file($ARGV[0])->slurp(iomode=>'<:raw')
);
-my $bus = TFL::Bus->new()->request(TFL::Bus::Request->new({
- StopPointName => 'Hotspur Road',
- #Towards => 'Islip Manor',
- ReturnList => [qw(StopID StopCode1 VisitNumber TripID VehicleID LineID LineName DirectionID DestinationText DestinationName EstimatedTime)],
-}));
+my $bus = WebService::TFL::Bus->new()->request(
+ WebService::TFL::Bus::Request->new({
+ StopPointName => 'Hotspur Road',
+ #Towards => 'Islip Manor',
+ ReturnList => [qw(StopID StopCode1 VisitNumber TripID VehicleID LineID LineName DirectionID DestinationText DestinationName EstimatedTime)],
+ }),
+);
my $template = file(__FILE__)->parent->file('forecast.html.tt');
print