For example, the icon on the gadget now is showing Rain, but it is actually a completely clear sky with no rain in sight. That is going to change, and we have a 40% chance of rain coming, but someone looking at the gadget would assume that it is or has rained recently.
Now that I have a metar collection script that will be combined with my webtags system, I am going to give this a rework by creating on the fly a gadget collect file that a reworked gadget can get to get exactly what it needs, rather than pulling from the realtime.txt file.
Something like:
gadgetfeed.php
Which when called outputs a similarily formatted space delimited file like realtime.txt but with only the fields I really need like:
Code: Select all
Date
Time
Timezone
Temp
Temp Diff
Wind chill
Dewpt
Humidty
Rainfall day
Rain Rate
Rainfall month
Rainfall year
Wind Speed
Wind Dir
Pressure
Pressure Diff
Uv
SolarRad
Current Cond icon code
Forecast icon code
visability
temp units
wind units
rain units
pressure units
Daylight Flag
Then I will have exactly the data needed to provide the a gadget with current conditions showing instead of forecast. Could even set it up so that it switches or can be switched to show more detail, like rain data.
Each time the script is called, it will use the webtags along with the metar data to fill in the current conditions etc...
The ultimate goal would be to create a fixed configured gadget that visitors can download and use which only obtains info from the weather station it was designed for. Kind of like a public service to the area.
The configuration would be fixed with the URL of the station with the getgadge.php script, a fixed time interval like perhaps once every 3 or 5 minutes, and perhaps a selection to choose between a full sized gadget like it is now, or a smaller compressed one like Brad is talking about.
The long update times are because I can imagine a number of these running forever once they are setup and over time that could start taking a toll.
Also, as a php script, I could control who uses the data, and what data they can see... a possible bonus service type thing.
The graphics used can be customized for just the station as well giving it a custom look.
Hmmmm... network just dropped. How cool... NOT!..
Must be the pissed off Groundhog chewing on the cables again.
For a change the business side is not effected... normally it is the other way around.