Property | Type | Description | |
---|---|---|---|
$isLocationReliable | boolean | True if the last fetched location was reliable |
Method | Description | |
---|---|---|
getWeatherData ( string $location ) : array | Retrieve TWCi Content | |
getWeatherLocation ( string $location ) : string | boolean | Tries to find the api-readable id of the given location returns the location if found, false if not found | |
onCommandWeather ( string $location ) : void | Returns a weather report for a specified location. | |
onLoad ( ) : void | Checks for dependencies. |
Method | Description | |
---|---|---|
getWeatherReport ( string $location ) : void | Generates a weather report for a specified location |
public getWeatherData ( string $location ) : array | ||
$location | string | place to retrieve weather data for |
return | array | weather conditions |
protected getWeatherReport ( string $location ) : void | ||
$location | string | |
return | void |
public onCommandWeather ( string $location ) : void | ||
$location | string | Zip code or city/state/country specification |
return | void |
protected bool $isLocationReliable | ||
return | boolean |