I managed to get my FridgeGizmo prototype to display the weather in London! Ok, it’s in Fahrenheit, but it’s London weather! Lahhhhhvery!
Where I was going wrong was by not realising that of course the US zip codes were stored as numerical variables, whereas international Yahoo weather city codes contain letters. So I changed the zip code for Nashville, to UKXX0085 for London – with added quote marks.
// Weather $zipcode = "UKXX0085"; $title = "London UK WX.";
I then added a couple of quote marks to the YQL query, either side of $zipcode, escaping them with backslash characters:
from%20weather.forecast%20where%20location%3D\"".$zipcode."\"&format=json