jakematic Wrote: > Yep, I already have that. Its an awesome plugin and it is my "off" > screensaver. > > I want to pull the data from my own station though instead of > Weather.com . > > I looked at the code and thought I'd check to see if anyone else had > done it before I spent the time writing a shell script (I know shell > scripting very well) to convert this: > http://tinyurl.com/b3vr5 &PASSWORD= > > &dateutc=2005-12-08+01%3A51%3A00&winddir=302&windspeedmph=000&windgustmph=000&humidity=051&tempf=042.3&rainin=0.00&baromin=29.64&dewptf=25.399&weather=&clouds=&softwaretype=Weather%20View%2032%20v60&action=updateraw > > into a) the same format html as weather.com or b) rewrite the > gotWeather subroutine to read my data or c) a combination of both. > > The weather station software spits out that file once a minute, so I > figure I can grab it and pull it every 5 or so into the plugin and spit > my local (out in the back yard) data onto the SB display. Hey Jake- It looks like that URL just passes your weather station's data to wunderground.com to generate a nice looking web page with the data you pass to it.
I'm thinking the easiest way to accomplish what you want would be to modify the get/GotWeather SuperDateTime routines to parse the .txt file. If you have a web server running on the computer you have the weather station connected to you can make that file accessable through it. Then change the URL in SuperDateTime to use that file/URL instead. (If your slimserver and weather station are on the same computer you could also modify the code to directly access the file without a webserver, but that would probably require a lot more changes to the code.) Next, you'll need to modify the parsing code for each of the pieces of data you're pulling from your file. If you post an example of this file, I can probably help you with this. I believe I designed the plugin to function even if some of the data isn't found in your source data (such as long weather descriptions/forecasts/etc) so you should be okay. I'd recommend using the latest beta of the plugin (4.0 beta 5) as your initial source. -Greg -- GoCubs ------------------------------------------------------------------------ GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312 View this thread: http://forums.slimdevices.com/showthread.php?t=10274 _______________________________________________ Discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
