diff --git a/lib/forecast.io.php b/lib/forecast.io.php index 2337cd9..24ae797 100644 --- a/lib/forecast.io.php +++ b/lib/forecast.io.php @@ -433,6 +433,35 @@ function getPrecipitationProbability() return $this->raw_data->precipProbability; } + /** + * Get the Max precipitation (in inches per hour) + * Only available in the daily datapoint + * @return type + */ + function getPrecipitationIntensityMax() + { + return $this->raw_data->precipIntensityMax; + } + + /** + * Get the time at which the max precipitation will occur + * Only available in the daily datapoint + * @return type + */ + function getPrecipitationIntensityMaxTime() + { + return $this->raw_data->precipIntensityMaxTime; + } + + /** + * Get precipitation amount in inches per hour + * + * @return type + */ + function getPrecipitationIntensity() + { + return $this->raw_data->precipIntensity; + } /** * Get the cloud cover @@ -495,4 +524,4 @@ function getSunset($format = null) } -} \ No newline at end of file +}