Skip to content

adding in extra things to get from forecast data #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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)

}

}
}