So to continue with the whole RESTful API theme. I’ve been working on creating a weather app with the next 5 days worth of forecast info. I’m using OpenWeatherMap.org because they have a very nice API with a lot of info, and of course more importantly its free.
The main functionality is more or less done, but I definitely need to style it properly…or maybe I won’t and just call it “minimalist”. If you want it to work on your end you need to “Allow Location” so that it can get your current lat and long based on your IP.
EDIT: So initially I resolved to use the openweathermap.org API but after closer investigation of the JSON response that you get from the free 5 day forecast I saw a huge problem.
There 5 day forecast sends the weather for the next 5 days in 3 hour increments.
Although you can get the current temperature from this response the Max and Min temps of the day don’t come through. You only get the max and min temps for the 3 hour increment.
Even though each day is split into 8 3-hr increments there is an issue with the increments of the current day. The increments that have gone are removed from the JSON array, so the number of index positions held by the current day changes as the day goes by, so the current day can have from 1 to 8 indexes of data.
With the above problem with the inability to determine the end point of the current day in the JSON array it becomes difficult to determine the start and end of the subsequent days.
It might be possible to determine proper max mins for the day and find the proper range of indexes for the days using a search and locate index function, but that seems like trying to kill a mosquito with a cannon.
Having encountered these nonsensical problems, I’ve just resolved to use another different API which has the info more readily available in the response. BTW, the paid 10 day forecast from openweathermap.org has the info in a more friendly, but I’m not gonna shell out any number of bucks for a simple portfolio piece.
The weatherunderground.com has a much better set of icons as well I think, although ultimately I will replace the icons with better vector sets as I style it more.
This is a fun little project I did, just to demonstrate how to use an open API to extract and display data. Its based on the “Internet Chuck Norris Database” and I’ve just replaced his name with my own. You can also tweet the quote out to your twitter account if you like
One of the very first projects I did in Toronto was this label for a Sauce maker. This husband-wife team from Trinidad had gotten the opportunity to show off their product to some bigwigs in the grocery industry and they needed a new label for their creation. So the guy asked me to make something like (or exactly) like the popular Classico sauce label.
Being the IT jack-of-all-trades that I am, I also did a few screencast tutorials during my time at Harris Broadcast. Most of them were for internal use and I can’t put them online but this one is for public viewing so I guess it’s fine to put it up. and yes that is my voice.
This is a Flash website we did for a sample iPhone App called SousChef. I did this with a designer called Michael Inglese. I did all the AS3 coding. The basic idea was to be able to give a user the look and feel of the app. The phone is clickable and there left nav bar slides smoothly in relation with the phone.
I used to be a huge fan of Flash and ActionScript. Infact I loved ActionScript, but even back then I knew that it was a dying technology. But I had a ton of fun doing animation with flash.
Here is a small animated clip I did in flash. Its stupid and its silly, but I’m kinda proud of it. I just wish I had better sound, i was just working on a cheap web-cam mic. Alas. I especially love the lip sync work I did. It was painful but I think the pay-off was worth it. Its not Pixar but its MINE.