Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weather monitor from local files
02-23-2004, 09:48 PM
Post: #1
 
I was wondering if it was possible to use the weather monitor to pull data from local files. I tried the <!-- m --><a class="postlink" href="file://..">file://..</a><!-- m -->. syntax to no avail.

Basically, I was writing some VBS scripts to gather data from several different websites and put them in a format for a single weather monitor to use.

Rick.
Find all posts by this user
Quote this message in a reply
02-23-2004, 10:02 PM
Post: #2
 
No, it isn't possible (yet!). If you have XP Pro, install Internet Information Server and run it off that.

Failing that, a quick Google on +free +windows +web +server +download has turned up a few good ones!

Back once again...
Find all posts by this user
Quote this message in a reply
02-23-2004, 11:38 PM
Post: #3
 
Thanks for the info. I found a workaround using Proxomitron, which I already was running. Smile

Rick.
Find all posts by this user
Quote this message in a reply
02-24-2004, 03:21 AM
Post: #4
 
You've coaxed Proxomitron into serving local files? I can see how it could be done, but would you care to share this nugget of knowledge with your TLB brothers and Sisters?

I'm sure a lot of people would be interested, especially those that don't have the means to host a local web server! Big Grin

Back once again...
Find all posts by this user
Quote this message in a reply
02-24-2004, 08:56 AM
Post: #5
 
Sure thing.

First, make sure your weather monitor is using the Proxomitron proxy (localhost, port 8080).

Then, in the URL, put something like:

http://cmd.file///C|/LoadMe.txt

Which would load the file C:\LoadMe.txt

Note the vertical bar | after the drive letter, which replaces the :

I'm also starting to write a VB script (which I run in Samurize) to decode METAR data to get current weather conditions. This would allow things like day/night icons (based on sunrise/sunset data), trends for temperature, barometer, etc, windchill, heat index, and maybe some other goodies. I'll keep you guys updated.

Enjoy!
Rick.
Find all posts by this user
Quote this message in a reply
02-24-2004, 09:06 AM
Post: #6
 
Really great sounding works, BlueHeaven!

HMSS Q Section
click here for 30+ ideas from a Special Plugin List
some examples=
UV Index Monitor, Allergy Monitor, TLB Version Monitor, Cinema Monitor
Visualise World Righteousness
Semper Ad Fundum
Working for the Secret Intelligence Service
Find all posts by this user
Quote this message in a reply
02-24-2004, 09:14 AM
Post: #7
 
BlueHeaven,

Am I correct in saying that this would solve the problems of having to use a lot of different providers for info? So, instead of using four different weather monitors because of 4 different providers, we could use one weather monitor that references the 4 providers. If this is so, that would greatly increase the ability of the weather monitor plugin. Big Grin
Visit this user's website Find all posts by this user
Quote this message in a reply
02-24-2004, 10:34 AM
Post: #8
 
bbfi,

Well, yes and no. ???

I am not a very good VB script programmer so I am not sure how universally applicable my scripts are or how "user friendly" they can be made. I am also not sure if VB scripts can be run through the task manager or something like that so they run on a schedule (or if Yuri can add the ability to run VB scripts into the plugins). I use Samurize to run the scripts.

I've attached Samurize with TLB below. The moon in the TLB bar uses information fetched by Samurize. The information shown is from 5 different sources but is gathered with one VBS script which saves the info to files that are used for display by Samurize and TLB. Hope this makes sense. Smile

Rick.

[Image: Clipboard01.jpg]
Find all posts by this user
Quote this message in a reply
02-24-2004, 10:50 AM
Post: #9
 
BlueHeaven - Fantastic!
Can you please share the instructions on exactly how to add this? BTW - which sites are you parsing?

HMSS Q Section
click here for 30+ ideas from a Special Plugin List
some examples=
UV Index Monitor, Allergy Monitor, TLB Version Monitor, Cinema Monitor
Visualise World Righteousness
Semper Ad Fundum
Working for the Secret Intelligence Service
Find all posts by this user
Quote this message in a reply
02-24-2004, 11:23 AM
Post: #10
 
I will put together a zip file with the Samurize VB Script, the Samurize config file and some instructions when I have time and upload it here.

As far as the weather sources:

Weather Alerts, Tomorrow, Almanac, Moon info, Air Quality forecast:
Weather Underground

Current weather/wind TLB plugins:
Weather.com XML feed (not part of the script yet)

RealFeel, UV Index:
AccuWeather

AQI:
Denver Air Pollution Control

UV Forecast and Air Quality Alert:
KMGH Weather Page (Local Denver Channel)

Respiratory Index and Pollen:
Weather.com

Rick.
Find all posts by this user
Quote this message in a reply
02-24-2004, 12:19 PM
Post: #11
 
Here are the files. Mainly for people who like to tweak around with code and such as it is very preliminary.

Since this was made for my needs it currently isn't very flexible, but if there is interest in something along these lines, I can work on making it more adaptable. It is just a starting point for now. Big Grin

Is there any possiblity of incorporating VB script execution into TLB? That, along with allowing local files in the URL of the weather plugin would make this system work without the need for any other programs.

Rick.
Find all posts by this user
Quote this message in a reply
02-24-2004, 05:46 PM
Post: #12
 
BlueHeaven yes scripts can be run through the task manager as a schedule
Here is an example to set up a script to run at 15 minute intervals
-----------------------------------------------------------------------
Open the Task Scheduler and add the wscript.exe task:

C:\WINDOWS\system32\wscript.exe "C:\Program Files\TrueLaunchBar\Plugins\weathermon\scripts\weather.vbs"

Run As: your login; Enabled is checked

Schedule Tab - Schedule: Daily; Start: 1AM; Every: 1 days; Multiple: unchecked

Advanced Button - Repeat Task: checked, Every 15 minutes; Duration: 24 hours

Settings Tab - Stop the task if it runs for 1 hour; nothing else checked on Settings page.

Hope this helps Wink
Find all posts by this user
Quote this message in a reply
02-24-2004, 08:52 PM
Post: #13
 
Thanks PsychoPops! I got it to work as you said. I figured it was something simple. Big Grin

SPOON!
Find all posts by this user
Quote this message in a reply
02-29-2004, 08:27 AM
Post: #14
 
Right On ! Glad I could Help. Big Grin
Find all posts by this user
Quote this message in a reply
03-02-2004, 07:06 PM
Post: #15
 
BlueHeaven Wrote:...I've attached Samurize with TLB below. The moon in the TLB bar uses information fetched by Samurize. The information shown is from 5 different sources but is gathered with one VBS script which saves the info to files that are used for display by Samurize and TLB.
Aww - just found this out -

HMSS Q Section
click here for 30+ ideas from a Special Plugin List
some examples=
UV Index Monitor, Allergy Monitor, TLB Version Monitor, Cinema Monitor
Visualise World Righteousness
Semper Ad Fundum
Working for the Secret Intelligence Service
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)