Weather monitor from local files
Started by BlueHeaven


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


15 posts in this topic
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-23-2004, 09:48 PM -
#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.
HorusUK
Senior Member
****


0
458 posts 40 threads Joined: Dec 2003
02-23-2004, 10:02 PM -
#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...
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-23-2004, 11:38 PM -
#3
Thanks for the info. I found a workaround using Proxomitron, which I already was running. Smile

Rick.
HorusUK
Senior Member
****


0
458 posts 40 threads Joined: Dec 2003
02-24-2004, 03:21 AM -
#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...
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-24-2004, 08:56 AM -
#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.
Q Section
Weapons Я Us
*****


0
899 posts 100 threads Joined: Feb 2003
02-24-2004, 09:06 AM -
#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
bbfi
Member
***


0
132 posts 4 threads Joined: Feb 2003
02-24-2004, 09:14 AM -
#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
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-24-2004, 10:34 AM -
#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]
Q Section
Weapons Я Us
*****


0
899 posts 100 threads Joined: Feb 2003
02-24-2004, 10:50 AM -
#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
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-24-2004, 11:23 AM -
#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.
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-24-2004, 12:19 PM -
#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.
PsychoPops
Junior Member
**


0
23 posts 6 threads Joined: Aug 2001
02-24-2004, 05:46 PM -
#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
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-24-2004, 08:52 PM -
#13
Thanks PsychoPops! I got it to work as you said. I figured it was something simple. Big Grin

SPOON!
PsychoPops
Junior Member
**


0
23 posts 6 threads Joined: Aug 2001
02-29-2004, 08:27 AM -
#14
Right On ! Glad I could Help. Big Grin
Q Section
Weapons Я Us
*****


0
899 posts 100 threads Joined: Feb 2003
03-02-2004, 07:06 PM -
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)