Author Topic: My Weather Website  (Read 3022 times)

0 Members and 1 Guest are viewing this topic.

Offline Koolkid1935

  • Member
  • *
  • Posts: 30
    • Powell Wyoming Local Weather
My Weather Website
« on: December 14, 2008, 11:24:37 PM »
I have a Davis 6162C Cabled Vantage Pro2 Plus with a dedicated Windows XP Home machine running VWS 14.  My website is located at http://powellwyweather.com.  The current homepage is just a modified version of VWS' template.  Someday I hope to get around to making a complete site from scratch...but for now I am happy with it.

I am currently in the process of trying to get AJAX working right, but it is proving to be a little more difficult than I initially thought it would be (of course Murphy's law is always going to be there).  My current 'test/scratch' page is at http://powellwyweather.com/ajax.htm.  The biggest problem I am having is that I have no idea where it is getting the values from.  I suspect it is something I am doing wrong rather than something the software is doing wrong...I just have to find it.  I just started working on the upgrade last night, so it will probably be awhile until I complete it.  It seems that whenever I get time to work on it it is late at night so that might play a factor in it to since I can't think straight at night #-o
Davis 6162C Cabled Vantage Pro2 Plus
VWS14

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: My Weather Website
« Reply #1 on: December 14, 2008, 11:38:45 PM »

KoolKid:

Welcome to the forum!

You're using VWS, so to get Ajax to work on your website you must also use an add-on program called WeatherFlash. Do you have WeatherFlash? The Ajax scripts were designed to work with:

   1) Weather Display, or
   2) VWS Internet edition plus WeatherFlash.

So without WeatherFlash the Ajax scripts won't work. (Ajax reads the weather data from a data file uploaded by WeatherFlash.)

WeatherFlash costs more $$$, of course. If you're interested you can find it described at ambientweather.com under Software. You can check my site (click my banner below) if you want to see WeatherFlash in action.

Regards,

Kevin...
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline Koolkid1935

  • Member
  • *
  • Posts: 30
    • Powell Wyoming Local Weather
Re: My Weather Website
« Reply #2 on: December 15, 2008, 12:17:58 AM »
I am using the demo version of WeatherFlash right now since according to the site I am going off of it should work in demo mode.  The instructions I am trying to go off of are on this page: http://saratoga-weather.org/scripts-VWS-AJAX.php

I have it uploading or is supposed to be uploading via the active server page option, but I think I am getting something wrong where AJAX tries to read the data files.  I am not entirely sure if that is where the problem is or not, it could also be that it isn't actually uploading.
Davis 6162C Cabled Vantage Pro2 Plus
VWS14

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: My Weather Website
« Reply #3 on: December 15, 2008, 12:27:34 AM »
I am using the demo version of WeatherFlash right now since according to the site I am going off of it should work in demo mode.  The instructions I am trying to go off of are on this page: http://saratoga-weather.org/scripts-VWS-AJAX.php

I have it uploading or is supposed to be uploading via the active server page option, but I think I am getting something wrong where AJAX tries to read the data files.  I am not entirely sure if that is where the problem is or not, it could also be that it isn't actually uploading.

I guess the first thing we need to do is determine whether VWS is uploading the wflash data files. Can you tell us what box(es) you have checked and what you typed under Active Server Page?

Regards,

Kevin...
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: My Weather Website
« Reply #4 on: December 15, 2008, 12:35:29 AM »
Just to add..

The Demo WF version will work fine.  That's what I'm using.  I've run uploads both using ftp and php but not asp.  You might try switching to ftp for a test.  You won't be able to upload as frequent but if it works that would tell you the problem lies in the asp uploads (either on your end or how your host is handling the asp). 

Edit: Oh, and also be sure your file permissions are set correctly at your host.  That issue gave me several hours of head scratching when I changed from ftp over to php uploads.
« Last Edit: December 15, 2008, 12:42:40 AM by Mark / Ohio »
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline Koolkid1935

  • Member
  • *
  • Posts: 30
    • Powell Wyoming Local Weather
Re: My Weather Website
« Reply #5 on: December 15, 2008, 12:43:47 AM »
This is what the WeatherFlash config looks like:


Here is where it is uploading to:
http://powellwyweather.com/WxFlash/scripts/submit.asp?

I am pretty sure ASP works from what I can tell on the test page: http://powellwyweather.com/test/apacheasp/test.html

I also tried reconfiguring it in the site.txt file for PHP use but that also didn't seem to work even though I am sure PHP works as well: http://powellwyweather.com/test/php/test.html
Davis 6162C Cabled Vantage Pro2 Plus
VWS14

Offline Koolkid1935

  • Member
  • *
  • Posts: 30
    • Powell Wyoming Local Weather
Re: My Weather Website
« Reply #6 on: December 15, 2008, 01:16:30 AM »
I just went through the server logs and this appears every two seconds (same as when it should be uploading):
Code: [Select]
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 3, near ""no-cache" <--> Response" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before Response?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 4, near "1 <--> Response" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before Response?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 6, near ""DEMO" then" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before then?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 9, near """ then" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before then?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 11, near ") <--> TempStr" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before TempStr?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 12, near ") <--> TempStr2" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before TempStr2?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 13, near ") <--> f" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before f?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Operator or semicolon missing before &TempStr2 at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 13. <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Ambiguous use of & resolved as operator & at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 13. <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 16, near ") <--> TempStr" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before TempStr?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 17, near ") <--> TempStr2" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before TempStr2?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 18, near ") <--> f" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before f?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Operator or semicolon missing before &TempStr2 at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 18. <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Ambiguous use of & resolved as operator & at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 18. <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] Bareword found where operator expected at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 19, near ") <--> end" <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [debug] \t(Missing operator before end?) <-->
[Sun Dec 14 23:00:46 2008] [error] [asp] [9975] [error] error compiling submit.asp: syntax error at /var/www/vhosts/POWELLWYWEATHER.COM/httpdocs/WxFlash/scripts/submit.asp line 3, near ""no-cache" <--> Response" <--> , /usr/lib/perl5/vendor_perl/5.8.8/Apache/ASP.pm line 1468
« Last Edit: December 15, 2008, 03:42:05 AM by Koolkid1935 »
Davis 6162C Cabled Vantage Pro2 Plus
VWS14

Offline Koolkid1935

  • Member
  • *
  • Posts: 30
    • Powell Wyoming Local Weather
Re: My Weather Website
« Reply #7 on: December 15, 2008, 01:48:29 AM »
Edit: Oh, and also be sure your file permissions are set correctly at your host.  That issue gave me several hours of head scratching when I changed from ftp over to php uploads.

Why oh why does it have to be the easiest fix that brings down a whole project?  That was exactly the problem, or at least with the PHP script.  I changed the upload to PHP from ASP and I noticed several "permission denied" messages in the logs.  So, I changed the permissions on the files and sure enough, that fixed it!

Thanks a whole bunch guys!  Now to start tweaking the site a bit and hopefully I will transition over to the new AJAX site soon.
Davis 6162C Cabled Vantage Pro2 Plus
VWS14

Offline Koolkid1935

  • Member
  • *
  • Posts: 30
    • Powell Wyoming Local Weather
Re: My Weather Website
« Reply #8 on: December 15, 2008, 03:36:51 AM »
I have transitioned the main page over to the AJAX script.  I hope to get the other pages transitioned over soon.

Again, thanks for your help, the file permissions would have been the last place I would have ever looked!
Davis 6162C Cabled Vantage Pro2 Plus
VWS14

Offline Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: My Weather Website
« Reply #9 on: December 15, 2008, 11:27:26 PM »
Glad to hear you got it working!   UU

Wee bit frosty tonight out in your neck of the woods I see.  Feel free to send a little of the cold my way.  I'd rather have snow without the freezing rain and sleet mixed in tomorrow.  ;)
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


 

anything