NOTES:
o The graphic is transparent and can be placed on any background (incl. black).
o You can set the tick mark color and the min/max temp text colors.
o Works for Fahrenheit and Celsius and tick marks are configurable.
o 6 styles to choose from … red, blue, gradient and old style.
o Option to put current temperature on bulb.
o Option to put unit-of-measure on bulb.
o Compatible with WD and VWS.
CREDITS: Please put the following snippet into your “wxabout.php” page:
Thermometer graphic courtesy of Bashewa Weather
(adapted from Saratoga Weather)
The markers on the left are your today max high and low values.
The color bar inside the tube indicates your current temperature just like a real thermometer would do.
Hi Windy,
I’ve got about 30 years programming experience.
Have been thru all of the programming languages that have been around
eg. Assembler, Fortran, Algol, Lisp, Cobol, Pascal, C++, PLM/86 and so on.
About 10 years ago I had +/-20 under my belt … don’t know how many it’s now.
Got about 15 years Delphi experience … started with Delphi 3.
The last 5 years I’ve been heavy into Web development (for myself).
[quote author=firewall link=topic=43750.msg358040#msg358040 date=1263864751]
Just to add to MTH’s work, the following will work if you use Meerkat’s UOM switching portion of the new ajaxWDwx files.
Set the gradients (or not) to your liking…
// settings for ranges -- adjust for your climate :-)
// Centigrade settings ... keep range from low to high at 50
Meerkat,
When the maximum temperature is 100 or more, the left portion of the 1 does not displays to the left of the thermometer for the max scale. It looks like a . instead of a 1.
If I adjust the width on line 316 of your script, it shows the complete number.