Weather Application
Description:
For my final project I had wanted to make a fully functioning weather
app that would display visual dating pulled from a server and parse through it
using processing’s XML. To get XML data from a server it some degree of
research for websites that allowed public access to their weather data free of
charge. i had found a few candidates for servers, with weather.gov, NOAA,
and yahoo weather to name a few. Once I found the server of my liking i got
to work and began sorting through the data and parsing through it as
efficiently as possible, with a little more research I had what I needed.
I learned a lot from this project which was very satisfying. i found a lot
of ways to do things like converting string xml data and splitting into integers
and useable text but i found that what I was doing wasn’t very efficient so
after I made proof of concept I worked on efficiency of concept. for example i
was tracking the mouse position and comparing it to the perimeter of a circle
so I could track when it left that perimeter. I had made an array of points and
used trigonometry to compare the angle of the mouse in radians to the sin
and cosin of the angle of a line from the circle to the mouse, which was
incredibly tedious and inefficient. While sitting on the toilet I figured a much
simpler way of tracking collision with the mouse and circle by using vector
math to create a start line from the circles origin to the mouse position and
track the distance of that line, if it exceeded the radius of the circle i know the
mouse was outside, if it was less than the radius i knew it was inside.
There were a lot of things that i wanted to do with this project like
comparing multiple regions weather and making a series of graphs to create
a visual comparison with these regions data but unfortunately like most
students during finals i ran out of time. Overall this project was a lot of fun and
i learned a lot more than i expected which I was incredibly excited about
Code: Soure Code