Weather::YR::LocationForecast::Day - Class that holds weather data for one day.
Don't use this class directly. Instead, access it via Weather::YR and Weather::YR::LocationForecast.
This class inherits all the methods from Weather::YR::Day and provides the following new methods:
Returns an array reference of all the Weather::YR::Model::Temperature data points for this day.
Returns the "most logical" Weather::YR::Model::Temperature data point for this day.
This works so that if you are working with "now", it will pick the data point closest to the current time. If you are working with any other days, including "today", it will return the data noon point, or the closest one after noon if there isn't one for noon.
Returns an array reference of all the Weather::YR::Model::Precipitation data points for this day.
Returns "the most logical" Weather::YR::Model::Precipitation data point for this day.
Returns an array reference of Weather::YR::Model::WindDirection data points for this day.
Returns "the most logical" Weather::YR::Model::WindDirection data point for this day.
Returns an array reference of Weather::YR::Model::WindSpeed data points for this day.
Returns "the most logical" Weather::YR::Model::WindSpeed data point for this day.
Returns "the most logical" Weather::YR::Model::Humidity data point for this day.
Returns an array reference of Weather::YR::Model::Pressure data points for this day.
Returns an array reference of Weather::YR::Model::Cloudiness data points for this day.
Returns "the most logical" Weather::YR::Model::Cloudiness data point for this day.
Returns an array reference of Weather::YR::Model::Fog data points for this day.
Returns "the most logical" Weather::YR::Model::Fog data point for this day.
Returns an array reference of Weather::YR::Model::DewPointTemperature data points for this day.
Returns "the most logical" Weather::YR::Model::DewPointTemperature data point for this day.
To install Weather::YR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::YR
CPAN shell
perl -MCPAN -e shell install Weather::YR
For more information on module installation, please visit the detailed CPAN module installation guide.