clientrawdriven page

I’m working on page you only have to put in the same folder as your clientraw files.It is in a pre-Alpha stadion but I sure will share it.
You can see it here: link removed

I am no programmer, just experimenting and putting things together I did find on the net

Joske

thanks to Brian humidity last 4 hours added
added some tags
correction of conversion of rain mm to inch (wrong function was used)
correction of warmest day and night of month and adding warmest and coldest day of year
layout tested for viewing in 800-600 1024-768 1280-1024
tested with FF (thank you administrator)

09/02/2006
change of layout(thanks again admin)
added a few things and included graphs (you need to do some work yourselves)

feedback is welcome

Wow, that’s a great start :smiley:

I’ve actually been thinking of turning the client raw on… and using AJAX to make the main page “live” but without using any third pary software (like Flash).

Unfortunately, it looks like June will be the earliest I’ll be able to play with it.

Interesting ideas though, eh?!

made some modifications (see first post) for those who are interested)

I think you’ve missed the semi-colon at the end of all the &nbsp’s!

thanks, will take a look at it #-o

done :slight_smile:

Hey! I’ve been looking for that compass point code for my abbreviated StormTrac report.

Thanks!

// figure out a text value for compass direction
switch (TRUE) {
case (($winddir >= 349) and ($winddir <= 360)):
$winddir = ‘N’;
break;
case (($winddir >= 0) and ($winddir <= 11)):
$winddir = ‘N’;
break;
case (($winddir > 11) and ($winddir <= 34)):
$winddir = ‘NNE’;
break;
case (($winddir > 34) and ($winddir <= 56)):
$winddir = ‘NE’;
break;
case (($winddir > 56) and ($winddir <= 78)):
$winddir = ‘ENE’;
break;
case (($winddir > 78) and ($winddir <= 101)):
$winddir = ‘E’;
break;
case (($winddir > 101) and ($winddir <= 124)):
$winddir = ‘ESE’;
break;
case (($winddir > 124) and ($winddir <= 146)):
$winddir = ‘SE’;
break;
case (($winddir > 146) and ($winddir <= 169)):
$winddir = ‘SSE’;
break;
case (($winddir > 169) and ($winddir <= 191)):
$winddir = ‘S’;
break;
case (($winddir > 191) and ($winddir <= 214)):
$winddir = ‘SSW’;
break;
case (($winddir > 214) and ($winddir <= 236)):
$winddir = ‘SW’;
break;
case (($winddir > 236) and ($winddir <= 259)):
$winddir = ‘WSW’;
break;
case (($winddir > 259) and ($winddir <= 281)):
$winddir = ‘W’;
break;
case (($winddir > 281) and ($winddir <= 304)):
$winddir = ‘WNW’;
break;
case (($winddir > 304) and ($winddir <= 326)):
$winddir = ‘NW’;
break;
case (($winddir > 326) and ($winddir <= 349)):
$winddir = ‘NNW’;
break;
case (($winddir > 360)):
$winddir = ‘’;
break;

I saw that in anole’s sticker-script, so all credits go to him

It’s much easier to read now, although I think there’s too much data presented on one page. It needs splitting across a number of pages and probably some graphics adding.

One minor point (which you probably know about)…the pressure values in the left hand column overlap the main body of page. That’s using FF1.51 if it makes a difference.

thank you for your comments, I did’t check it in FF(will do that), just IE

made a few changes and included graphs(you have to do some work yourselves)
check first post

feedback is welcome :slight_smile:

It’s looking good. I like the graphs. I’ve played with jpgraph before and it’s a very powerful package. I just wish I had enough free time to experiment with it some more!

Yep, great progress.

maybe this can give you a start ?

see attached file
You can see it working here(just wait more than one minute and watch the time behind the location)
http://www.joske-online.be/ajaxweather.html

it does work in IE and FF


ajaxweather.html.txt (1.31 KB)

OMG! I knew it was pretty simple but not -that- simple!

Now I need a couple of hours to build a page. Cool!

do not forget to check if the browser of your visitor is javascript-enabled

I imagine I’ll want to do something with PHP so visitors can either turn it on or off similar to the way Weather Underground does it.

Good idea though, for those with Javascript disabled, default to the non-Ajax page. 8)

I’m trying to display some kind of autorotating arrow like the one you posted in some other thread, but using javascript

What’s the clientraw have in it for wind direction?

Instantaneous direction at position 3 (counting from zero) and averaged direction at position 117. Both in degrees.