Services_Weather
Table of Contents
- Class Summary
Services_Weather — PEAR::Services_Weather
- Services_Weather::apiVersion — For your convenience, when I come up with changes in the API...
- Services_Weather::isError — Checks for an error object, same as in PEAR
- Services_Weather::service — Factory for creating the services-objects
- Class Summary
Services_Weather_Common — PEAR::Services_Weather_Common
- Services_Weather_Common::calculateDewPoint — Calculate dewpoint from temperature and humidity This is only an
approximation, there is no exact formula, this one here is called
Magnus-Formula
- Services_Weather_Common::calculateHumidity — Calculate humidity from temperature and dewpoint This is only an
approximation, there is no exact formula, this one here is called
Magnus-Formula
- Services_Weather_Common::calculateWindChill — Calculate windchill from temperature and windspeed (enhanced formula)
- Services_Weather_Common::convertDistance — Convert distance between km, ft and sm
- Services_Weather_Common::convertPressure — Convert pressure between in, hpa, mb, mm and atm
- Services_Weather_Common::convertSpeed — Convert speed between mph, kmh, kt, mps and fps
- Services_Weather_Common::convertTemperature — Convert temperature between f and c
- Services_Weather_Common::getUnitsFormat — Returns the selected units format
- Services_Weather_Common::polar2cartesian — Convert polar coordinates to cartesian coordinates
- Services_Weather_Common::setCache — Enables caching the data, usage strongly recommended
- Services_Weather_Common::setDateTimeFormat — Changes the representation of time and dates (see http://www.php.net/date)
- Services_Weather_Common::setHttpTimeout — Sets the timeout in seconds for HTTP requests
- Services_Weather_Common::setUnitsFormat — Changes the representation of the units (standard/metric)
- Class Summary
Services_Weather_Ejse — PEAR::Services_Weather_Ejse
- Services_Weather_Ejse::getForecast — Get the forecast for the next days
- Services_Weather_Ejse::getLocation — Returns the data for the location belonging to the ID
- Services_Weather_Ejse::getUnits — Returns the units for the current query
- Services_Weather_Ejse::getWeather — Returns the weather-data for the supplied location
- Services_Weather_Ejse::searchLocation — EJSE offers no search function to date, so this function is disabled.
- Services_Weather_Ejse::searchLocationByCountry — EJSE offers no search function to date, so this function is disabled.
- Class Summary
Services_Weather_Globalweather — PEAR::Services_Weather_Globalweather
- Services_Weather_Globalweather::getForecast — GlobalWeather has no forecast per se, so this function is just for
compatibility purposes.
- Services_Weather_Globalweather::getLocation — Returns the data for the location belonging to the ID
- Services_Weather_Globalweather::getUnits — Returns the units for the current query
- Services_Weather_Globalweather::getWeather — Returns the weather-data for the supplied location
- Services_Weather_Globalweather::searchLocation — Searches IDs for given location, returns array of possible locations or
single ID
- Services_Weather_Globalweather::searchLocationByCountry — Returns IDs with location-name for a given country or all available
countries, if no value was given
- Class Summary
Services_Weather_Metar — PEAR::Services_Weather_Metar
- Services_Weather_Metar::getForecast — METAR has no forecast per se, so this function is just for compatibility
purposes.
- Services_Weather_Metar::getLocation — Returns the data for the location belonging to the ID
- Services_Weather_Metar::getUnits — Returns the units for the current query
- Services_Weather_Metar::getWeather — Returns the weather-data for the supplied location
- Services_Weather_Metar::searchAirport — Searches the nearest airport(s) for given coordinates, returns array of IDs
or single ID
- Services_Weather_Metar::searchLocation — Searches IDs for given location, returns array of possible locations or
single ID
- Services_Weather_Metar::searchLocationByCountry — Returns IDs with location-name for a given country or all available
countries, if no value was given
- Services_Weather_Metar::setMetarDB — Sets the parameters needed for connecting to the DB, where the location-
search is fetching its data from. You need to build a DB with the external
tool buildMetarDB first, it fetches the locations and airports from a
NOAA-website.
- Services_Weather_Metar::setMetarSource — Sets the source, where the class tries to locate the METAR data
- Class Summary
Services_Weather_Weatherdotcom — PEAR::Services_Weather_Weatherdotcom
- Services_Weather_Weatherdotcom::getForecast — Get the forecast for the next days
- Services_Weather_Weatherdotcom::getLocation — Returns the data for the location belonging to the ID
- Services_Weather_Weatherdotcom::getUnits — Returns the units for the current query
- Services_Weather_Weatherdotcom::getWeather — Returns the weather-data for the supplied location
- Services_Weather_Weatherdotcom::searchLocation — Searches IDs for given location, returns array of possible locations or
single ID
- Services_Weather_Weatherdotcom::searchLocationByCountry — Returns only false, as weather.com offers no country listing via its XML
services
- Services_Weather_Weatherdotcom::setAccountData — Sets the necessary account-information for weather.com, you'll
receive them after registering for the XML-stream
- Package Services_Weather Constants — Constants defined in and used by Services_Weather