Archive for August, 2008

Chuck and Bonnie’s Wedding No Comments Yet

Pics from their big day on 24 August 2008. Read more »

LWC Templates 2 Comments

Edit: I’ve created another template that presents more data than this one. I called it WXImproved since it’s an improvement over this one.

I’ve made a template for LWC that validates as XHTML strict and is fully CSS based. I’ve put in the webtags that I use most often, but of course you’re free to modify it as necessary to suit your tastes. You can see the template in action here.

The template consists of 4 files:

  • wx.html: This is the main file that lists the current conditions, graphs, etc.
  • wxhistoric.html: This is the historic weather data from your station that is produced using the STA1$ tag.
  • wx.css: The css you’ll want to modify should you wish to change colors, alignments, sizes, etc. *
  • wximages.html: This is just needed to make LWC prepare the images so that they can be called from wx.html. Unfortunately, LWC doesn’t output XHTML valid markup for images at this time. I’m only showing graphs on my site so if you want to make use of the other images that LWC provides, then you’ll need to add those tags to this file so they get created and uploaded.Update: As of LWC version 0.8.1, this file is no longer necessary.

* Note that I’m using the Yahoo User Interface (YUI) library to ensure a that everything looks consistent across a number of platforms. If you want to change the font sizes or font types, I’d strongly encourage you to adhere to the YUI guidelines. The reason is that they’ve done A LOT of work to figure out how to make the fonts look the same in multiple browsers and platforms. Refer to http://developer.yahoo.com/yui/fonts/ for information about how to change font sizes and styles.