Archive for 27 April 2005

Wednesday
27 Apr 2005
7:52 pm

On my way

In my last post, I said that I was working on a class to parse the XML feed from the NWS. Well … that is done. It’s not very fancy, but it works.

Tonite, I’ve created my own database connection class. I still want to work on it some more and maybe create a recordset class as well, but for now, the connection class is working great. I’m very proud of myself for that. I did find a little help online, but I modified what I found to work the way I want it to.

I’ve also managed to successfully set up a cron job that takes my xml parsing class and parses the weather XML feed and stores it to my database. Woohoo … dancin That’s the first time I’ve ever created a cron job. It wasn’t too hard to do in cPanel.

Now I’m working on the weather class. I’m going to use it to grab the data from the database and display it how I want to. The feed from the NWS only has the current conditions, not the forecast. I’m going to dig around to see if I can find a forecast one. Hopefully I can. If not, I might try to see if I can find something elsewhere … like weather.com or somewhere else. Don’t know yet. I’d rather use the data from the NWS … I trust them. It’s their job. (I should know … I was trying to get a job with them before I fell into web design.)

Well … I’m going to get back to my weather class. I’d like to get at least a little something done before I go to bed tonite. I should get off the computer at 9pm and watch CSI: NY (I’m going to watch it whether I’m on the computer or not … I’m hooked on those CSI shows) … I think being on the computer all day at work and then all nite at home is preventing me from getting a good nite’s sleep. I just haven’t been sleeping very good lately. But when I get started on a project, it’s hard to put it away.

:: EDIT (9:34pm) :: I’ve got my weather class working. Woohoo!!! Here’s a sample of what it’s doing so far. Just displaying the data … nothing fancy. I need to work in the icons for the weather conditions. I already know how I want to do that … I just need to actually do it. But I’ll save that for another nite.

Mood: workingworking
Posted under weather, web design | Comments Off