Hi All
Looking for some help on this please, any help would be greatly appreciated.
I have a form with fields like: current temp, current cloud cover and humidity.
So we can record the current weather variables at the time the data is captured.
I would like to use a weather api to retrieve that data and auto populate those fields.
The api I have chosen is Weatherstack and the url looks like this:
http://api.weatherstack.com/current
? access_key = YOUR_ACCESS_KEY
& query = New York
My thinking is to create a php method and then an ajax event to trigger that php method and update the fields with the data retrieved from the weatherstack api.
I need assistance on the php method code to integrate the weatherstack url please.
I assume it would use a GET?