This code works for wind speeds of up to 5bft, I don't know the code for values of 6bft and more yet.
September 14, 2005 ·
version 1.0 Bernhard
Ok, just asI thought: this widget doesn't work when the wind speed is 4bft or higher - the old value (e.g. 3bft) is not updated any longer and stays at the lower value. which makes the widget useless at the moment (since we are all waiting for winds above 4bft).
I think the match expression should be like this: color="#......"
But I have no experience with regexp.
September 14, 2005 ·
version 1.0 Bernhard
Just had a look at the code. I'm not quite sure about this, but you match the wind speed by a font tag with a color value in it. As I recall, as soon as the wind gets over 4bft, the color changes to green. And over 7bft the color changes to red, I guess.
So could it be that you would miss those values by your match? Unfortunately, those are the wind speeds that we are waiting for...
But maybe I'm wrong - I'll find out today evening or maybe tomorrow (if the forecast is correct).
Bye,
Bernhard
September 14, 2005 ·
version 1.0 Bernhard
Great widget! At last I have wind info at my fingertips... I always wanted to create a widget like this, but haven't had any time yet.
One suggestion: It would be really nice to get an audible an visual alarm (like the one on the digital clock widget, for example). If I find some spare time, I'll give it a try improving your widget (if you're not faster...)