This API is free for 1000 calls per day, then has costs for subsequent calls. So, would need to create different accounts per project to avoid reaching the quota quick.
current->temp_c;
$condition = strtolower($weather->current->condition->text);
$type = 'cloudy';
if( strpos( $condition, 'rain' ) ) {
$type = 'rainy';
} else if( $condition == 'sunny' ) {
$type = 'sunny';
}
echo '';
echo ''. $location .'';
echo ''. $temp .'';
echo '';
Select your desired option below to share a direct link to this page.
Your friends or family will thank you later.