This is London

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:

This entry was posted in Arduino and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>