Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion lib/forecast.io.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -495,4 +524,4 @@ function getSunset($format = null)

}

}
}