toreau / weather-yr Goto Github PK
View Code? Open in Web Editor NEWObject-oriented interface to Yr.no's weather service.
Object-oriented interface to Yr.no's weather service.
Sometimes the API returns undef for some values, especially at wind speed stuff, the module will barf because this does not pass the type validation of moose. I don't know if this is a problem in the module or of the API but speaking for the current state of the module, this needs to be handled.
first observed 29.4.2019 8:47 UTC
it still worked 20minutes earlier.
Attribute (hPa) does not pass the type constraint because: Validation failed for 'Num' with value undef at constructor Weather::YR::Model::Pressure::new (defined at /usr/local/share/perl/5.24.1/Weather/YR/Model/Pressure.pm line 35) line 59
Weather::YR::Model::Pressure::new('Weather::YR::Model::Pressure', 'from', 'DateTime=HASH(0x355df10)', 'to', 'DateTime=HASH(0x355e0c0)', 'lang', 'nb', 'hPa', undef) called at /usr/local/share/perl/5.24.1/Weather/YR/LocationForecast.pm line 209
Weather::YR::LocationForecast::_build_datapoints('Weather::YR::LocationForecast=HASH(0x2c7b9f0)') called at reader Weather::YR::LocationForecast::datapoints (defined at /usr/local/share/perl/5.24.1/Weather/YR/LocationForecast.pm line 42) line 8
Weather::YR::LocationForecast::datapoints('Weather::YR::LocationForecast=HASH(0x2c7b9f0)') called at /usr/local/share/perl/5.24.1/Weather/YR/LocationForecast.pm line 251
Weather::YR::LocationForecast::_build_days('Weather::YR::LocationForecast=HASH(0x2c7b9f0)') called at reader Weather::YR::LocationForecast::days (defined at /usr/local/share/perl/5.24.1/Weather/YR/LocationForecast.pm line 43) line 8
Weather::YR::LocationForecast::days('Weather::YR::LocationForecast=HASH(0x2c7b9f0)') called at lib/get_weather.pm line 70
The API domain changed from api.yr.no to api.met.no. To save a HTTP redirect, the URL should be updated.
(Actually I'm just creating this issue to ping you about this project, it is great but has problems, see #3 I really hope you continue to work on this, don't let this go waste :/).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.