Author Topic: WD + PHP + AJAX with Wunderground-style 'green flash'  (Read 18723 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #25 on: December 05, 2006, 01:40:17 AM »
It IS very cool.. I think your're the first VWS site to have AJAX 'green-flash' updates.

I will be packaging a VWS version of the script(s) around the VWS templates so html only sites should be able to use it (if they can upload the data.csv file often enough).

Thanks Chris for letting us play with the concept with your website.. the homepage looks great!

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline capeweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 1309
    • http://www.capeweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #26 on: December 05, 2006, 01:52:33 AM »
Thanks Ken! I had a ton of fun playing around too and implementing it into my site. It took some trial and error but it's great to know that other VWS users can have it on there site as well. I really think it's going to be a home run! Looking forward to seeing your script package that you will be putting together for this project. I would also mention that folks will need a 3rd party FTP app. to update the data.csv files since the built in uploader in VWS is a bit slow and probably will not be fast enough. I'm currently using webdrive which is a thousand times more reliable and faster than the standard built in VWS uploader incase anybody wants to konw. Also, I hope Ed at Ambient can figure out why the seconds don't update in the .csv file. Maybe he will reply tomorrow. If he does I will update.  :D

http://www.webdrive.com

Chris
Cape Coral, Florida
Website: http://www.capeweather.com
Website: http://www.fortmyersweather.net

Offline weatheroz

  • Senior Contributor
  • ****
  • Posts: 197
    • http://www.jimboombaweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #27 on: December 05, 2006, 04:16:37 AM »
Quote from: "capeweather"

http://www.webdrive.com


Great application.... I had to get it to get around some of my vws issues I was having before I changed over to WD.

Still use it now, as it makes it a whole lot easier to get stuff on to my website, as now I simply run as part of the dos batch file the command to copy the file/s to my website, rather than ftp 'ing there. :)
Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline FishDude

  • Member
  • *
  • Posts: 46
    • OFA Weather Web!
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #28 on: December 05, 2006, 05:53:42 AM »
Quote from: "capeweather"
Thanks Ken! I had a ton of fun playing around too  Also, I hope Ed at Ambient can figure out why the seconds don't update in the .csv file. Maybe he will reply tomorrow. If he does I will update.  :D

http://www.webdrive.com


I wouldn't hold my breathe! Seems like development stopped at the current V20. I guess he figured that was "good enough".

Offline weatheroz

  • Senior Contributor
  • ****
  • Posts: 197
    • http://www.jimboombaweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #29 on: December 05, 2006, 08:39:11 AM »
Quote from: "FishDude"
Quote from: "capeweather"
Thanks Ken! I had a ton of fun playing around too  Also, I hope Ed at Ambient can figure out why the seconds don't update in the .csv file. Maybe he will reply tomorrow. If he does I will update.  :D

http://www.webdrive.com


I wouldn't hold my breathe! Seems like development stopped at the current V20. I guess he figured that was "good enough".


So he's gone on another one of his 'sabbaticals' or something again ? :roll:

Sounds like nothing has changed, which really vindicates the decision of many to upgrade to Weather Display. :)

I'm glad that Ken was able to get this great script to work with vws though, as it gives the vws people something to brighten their day.
Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #30 on: December 05, 2006, 09:30:19 AM »
Since Webdrive came up... I visited their site and have some questions for those of you that use it...

The "synchronize" feature looks interesting, but even the pdf users guide has no info on it. The slide show had a bit...

I'm interested in the time granularity for synching. Can it monitor a folder, and when a new file shows up, FTP it somewhere? How frequently can it monitor for file change? Every x minutes?
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink

Offline anchorageweather

  • Forecaster
  • *****
  • Posts: 445
    • http://eetee.us/station/station.php
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #31 on: December 05, 2006, 11:37:44 AM »
Quote from: "kenmtrue"
It IS very cool.. I think your're the first VWS site to have AJAX 'green-flash' updates.

I will be packaging a VWS version of the script(s) around the VWS templates so html only sites should be able to use it (if they can upload the data.csv file often enough).

Thanks Chris for letting us play with the concept with your website.. the homepage looks great!

Best regards,
Ken


  (kickin dirt) us WeatherLink guys never have any fun....:cry:
South of the Tracks, Anchorage, KY

Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #32 on: December 05, 2006, 12:45:55 PM »
Weatherlink can generate a CSV file, if that's all that's needed...
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #33 on: December 05, 2006, 02:37:43 PM »
A CSV file, and a way to get it to your website fairly quickly.

I use WeatherLink too but it's FTP is kinda slow and seems to hog up the console.  After I make some VWS template adjustments for green-flash, I'll see what can be done with regular WeatherLink too (and the Current_VantagePro.htx template.

I wouldn't want you to miss out on the fun :-)

Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline anchorageweather

  • Forecaster
  • *****
  • Posts: 445
    • http://eetee.us/station/station.php
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #34 on: December 05, 2006, 02:45:59 PM »
Quote from: "kenmtrue"
After I make some VWS template adjustments for green-flash, I'll see what can be done with regular WeatherLink too (and the Current_VantagePro.htx template.

I wouldn't want you to miss out on the fun :-)

Ken


Ken; always taking care of the little guy! :D
South of the Tracks, Anchorage, KY

Offline capeweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 1309
    • http://www.capeweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #35 on: December 05, 2006, 02:51:17 PM »
Quote from: "ncpilot"
Since Webdrive came up... I visited their site and have some questions for those of you that use it...

The "synchronize" feature looks interesting, but even the pdf users guide has no info on it. The slide show had a bit...

I'm interested in the time granularity for synching. Can it monitor a folder, and when a new file shows up, FTP it somewhere? How frequently can it monitor for file change? Every x minutes?


I haven't really played with it much as far as the settings are concerned. I installed it and configured to my server and it started working the way I wanted to right out of the box. I didn't really think I needed to do much because whenever a file was updated it would automatically write it to the mapped network drive almost instantly.

Chris
Cape Coral, Florida
Website: http://www.capeweather.com
Website: http://www.fortmyersweather.net

Offline weatheroz

  • Senior Contributor
  • ****
  • Posts: 197
    • http://www.jimboombaweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #36 on: December 05, 2006, 07:21:33 PM »
Quote from: "ncpilot"
Since Webdrive came up... I visited their site and have some questions for those of you that use it...

The "synchronize" feature looks interesting, but even the pdf users guide has no info on it. The slide show had a bit...

I'm interested in the time granularity for synching. Can it monitor a folder, and when a new file shows up, FTP it somewhere? How frequently can it monitor for file change? Every x minutes?


I've just plugged in it, and changed the created file folder as being on w: drive, and it just uploads it automatically.

Never looked at it beyond that I'm afraid. :(

There is (or was) a demo version you could play with for a little while, perhaps you might like to give that a shot and see if does what you want ?
Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline SLOweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 3457
    • http://www.sloweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #37 on: December 05, 2006, 08:41:25 PM »
I don't have any experience with the synchronize feature either, but I've been wondering about it.

I just map the website ftp folder as a drive and have VWS save the jpgs there. It thinks it's a local drive.

This process does tend to freeze VWS during the upload process, and I've been wondering if folder sync would stop that.

As Oz noted, there is a 30 day (I think) trial of WebDrive. My experience is that the clock is only checked on WebDrive startup. I think I got got 6 or 7 weeks out of my trial.

Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #38 on: December 05, 2006, 09:49:18 PM »
I called the folks that sell Webdrive, and they told me that the program doesn't have a way of checking a local folder for a changed file, or new file, on any kind of short time frame (like every few minutes). It sounds like you could manually trigger something like that...

I was thinking that if you have a program that generates some kind of file, whether csv, or jpeg, or whatever, but doesn't itself have a way to FTP, maybe Webdrive could sense the new file and do the transfer.

Sounds like the drive mapping may be a way to do it, but what if you want a program to write a file locally, but you also want to FTP it somewhere?

I don't actually have a reason for doing this, yet anyway... it's more an academic exercise...
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink

Offline capeweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 1309
    • http://www.capeweather.com
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #39 on: December 05, 2006, 09:57:54 PM »
Webdrive will send the file based on whatever new file is being generated. Once a new file is created it will transfer the data to the mapped location you tell it to go. So if you're generating a file which in my case is the data.csv file every five seconds, webdrive will send it out every time it's created. This also holds true for all the graphics in VWS and the .htx conversions. It will spit out the data as fast as it created. Have you tried the trial yet? It's really cool once you start playing around wit it.

Chris
Cape Coral, Florida
Website: http://www.capeweather.com
Website: http://www.fortmyersweather.net

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WD + PHP + AJAX with Wunderground-style 'green flash'
« Reply #40 on: December 06, 2006, 02:37:59 AM »
So... Chris and I finished up this evening with the VWS-AJAX demo.. please continue discussion on this thread for the VWS-AJAX info.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP