Skip Menu |

This queue is for tickets about the Weather-YR CPAN distribution.

Report information
The Basics
Id: 82048
Status: resolved
Priority: 0/
Queue: Weather-YR

People
Owner: Nobody in particular
Requestors: david.moreno [...] booking.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: YR API version 1.5 no longer active
Hello, API version 1.5 is no longer supported by YR. Apparently the current one is 1.8, but bumping the version directly from the default base url might or not have an impact on how the returning document gets parsed. ~ $ perl -MWeather::YR::Locationforecast -e 'use Data::Dumper; my $w = Weather::YR::Locationforecast->new({ latitude => "40.7142", longitude => "-74.0064" }); print Dumper $w->forecast;' Unable to fetch content at url http://api.yr.no/weatherapi/locationforecast/1.5/? lon=-74.0064&lat=40.7142 at /opt/local/lib/perl5/site_perl/5.12.4/Weather/YR/Base.pm line 86. ~ $ That endpoint returns now an HTTP Not Found status.
Starting from Weather::YR version 0.30, all the newest APIs will be supported.