Author Topic: Weather-Display Carterlake-style AJAX/PHP website templates available  (Read 62214 times)

0 Members and 1 Guest are viewing this topic.

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #75 on: October 07, 2008, 10:59:20 PM »
Hello all.

I was reading this thread as I too was having the problem of my ajax php templates not using the data from the clientraw.txt file.

The clientraw.txt file is updated every few seconds and the testtags.php and trends-inc.html every five minutes.
These three files are in the same directory as the templates.
The weather data is being updated every five minutes, I assume from the testtags.php?

I have tried all of the infomation in this thread and I still can't get the darn thing to work.

So if anyone would like to take a look and give me some well needed advice, I would appreciate it greatly.

The site is http://www.bayview-idaho.com/weather/index.php

Thanks
Bob


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #76 on: October 07, 2008, 11:43:28 PM »
If what you have not working is the AJAX update, then you just need to change ajaxWDwx.js to have
Code: [Select]
var clientrawFile = '/weather/clientraw.txt'; // location of clientraw.txt relative to this page on website
I've found that installations in other than the document root directory of the website need the absolute URL path for clientraw.txt in the javascript.

Your testtags.php and trends-inc.html are both uploading fine AFAIK.

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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #77 on: October 07, 2008, 11:50:26 PM »
You'll need to change your Settings.php from
Code: [Select]
$SITE['fcsturlNWS'] = 'http://www.wrh.noaa.gov/forecast/MapClick.php?site=mtr&smap=1&textField1=37.26389&textField2=-122.02194&TextType=2'; to
Code: [Select]
$SITE['fcsturlNWS'] = 'http://forecast.weather.gov/MapClick.php?site=mtr&smap=1&textField1=37.26389&textField2=-122.02194&TextType=2'; in order to get your Point-printable forecast back.. the WRH website was recently change to redirect to the forecast.weather.gov site for the details.

Also, you should run WU-radar-testpage.php?show=loc and do a position reset on the area maps (reset the $CityLocN values) for $CityLoc4 through $CityLoc9 .. Bayview appears in the Pacific Ocean :)

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

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #78 on: October 08, 2008, 09:18:15 AM »
I made two of the  changes. I had tried the absolute path for clientraw.txt but is still doesn't work. :(

I will fix the radar postion reset tonight.
Any other ideas?

http://www.bayview-idaho.com/weather/index.php

Thanks again,
Bob

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #79 on: October 08, 2008, 10:43:33 AM »
Last change.. in ajaxWDwx.js change
Code: [Select]
var ajaxLoaderInBody = true; // set to true if you have <body onload="ajaxLoader(..." to
Code: [Select]
var ajaxLoaderInBody = false; // set to true if you have <body onload="ajaxLoader(..."
The template set doesn't use <body onload="ajaxloader... so the script is never started with the ajaxLoaderInBody=true

Leave the
Code: [Select]
var clientrawFile = '/weather/clientraw.txt'; // location of clientraw.txt relative to this page on website
in place .. it will ensure the clientraw.txt file will be found :)

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

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #80 on: October 08, 2008, 11:35:50 AM »
Right on, Red Rider!

I changed that to true while I was messing around and forgot to changed it back :( I hate myself sometimes )

Of course now the the clientraw path is right and that is set back to false and everything works like it is supposed to.!

Now I can customize ( after making all the backups of course! )

Thanks a bunch.
You the Man!

Bob

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #81 on: October 08, 2008, 02:43:08 PM »
You're welcome Bob!

I'll add your site to the list of template sites :)

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

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #82 on: October 09, 2008, 12:37:10 AM »
You'll need to change your Settings.php from
Code: [Select]
$SITE['fcsturlNWS'] = 'http://www.wrh.noaa.gov/forecast/MapClick.php?site=mtr&amp;smap=1&amp;textField1=37.26389&amp;textField2=-122.02194&amp;TextType=2'; to
Code: [Select]
$SITE['fcsturlNWS'] = 'http://forecast.weather.gov/MapClick.php?site=mtr&amp;smap=1&amp;textField1=37.26389&amp;textField2=-122.02194&amp;TextType=2'; in order to get your Point-printable forecast back.. the WRH website was recently change to redirect to the forecast.weather.gov site for the details.


Best regards,
Ken


Now I get no weather forecast at all. I thought it was working before.

?
Bob

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #83 on: October 09, 2008, 01:10:12 AM »
Actually, the URL was for MY site, not yours in Bayview, ID

Try
Code: [Select]
$SITE['fcsturlNWS'] = 'http://forecast.weather.gov/MapClick.php?CityName=Bayview&state=ID&site=OTX&textField1=47.9803&textField2=-116.559&e=0&TextType=2'; to replace the one that's in your Settings.php

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

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #84 on: October 09, 2008, 10:15:36 AM »
That did the trick!
Thanks, once again.

Bob

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #85 on: October 09, 2008, 10:30:43 PM »
You'll need to change your Settings.php from
Code: [Select]
$SITE['fcsturlNWS'] = 'http://www.wrh.noaa.gov/forecast/MapClick.php?site=mtr&amp;smap=1&amp;textField1=37.26389&amp;textField2=-122.02194&amp;TextType=2'; to
Code: [Select]
$SITE['fcsturlNWS'] = 'http://forecast.weather.gov/MapClick.php?site=mtr&amp;smap=1&amp;textField1=37.26389&amp;textField2=-122.02194&amp;TextType=2'; in order to get your Point-printable forecast back.. the WRH website was recently change to redirect to the forecast.weather.gov site for the details.

Also, you should run WU-radar-testpage.php?show=loc and do a position reset on the area maps (reset the $CityLocN values) for $CityLoc4 through $CityLoc9 .. Bayview appears in the Pacific Ocean :)

Best regards,
Ken


I have done the position reset on $CityLoc4 -9.

How can I do the same for $CityLoc1 -3 ? It puts me off about 30 or 40 miles lol

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #86 on: October 10, 2008, 01:20:27 PM »
Use the same method (edit WU-radar-inc.php while viewing WU-radar-testpage.php?show=loc )

Just click the links for $CityLoc1 through $CityLoc3 and copy the new values into WU-radar-inc.php

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

Offline BayviewBob

  • Member
  • *
  • Posts: 23
    • Bayview-Idaho.com
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #87 on: October 10, 2008, 01:43:06 PM »
I tried that and it doesn't work.

I get a black screen with the words "Radar down for maintenance" every time.

Bob

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #88 on: October 10, 2008, 04:54:07 PM »
I think the issue is you have
Code: [Select]
$RDR  = 'TOX';  // last 3 characters of NOAA Radar Site Name in WU-radar-inc.php and should have
Code: [Select]
$RDR  = 'OTX';  // last 3 characters of NOAA Radar Site Name since your $MesoURL and $CityURL use 'OTX' as the site. 
Code: [Select]
// $CityPos1 - for City Level radar/animation
$CityPos1  =  'left: 389px; top: -254px;';
$CityColor1 = '#FFFFFF';  // color of legend display
// see instructions above to set  $CityURL value
$CityURL = 'http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=OTX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=1.000&noclutter=1&t=1223606190&lat=47.98235321&lon=-116.56307220&label=Bayview%2C+ID&showstorms=0&map.x=400&map.y=240&centerx=400&centery=240&transx=0&transy=0&showlabels=0&severe=0&rainsnow=0&lightning=1&smooth=0';

// $CityPos2 - for Metro Level radar/animation
$CityPos2  =  'left: 394px; top: -260px;';
$CityColor2 = '#FFFFFF';  // color of legend display
// see instructions above to set  $MetroURL value
$MetroURL = 'http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=OTX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=1.000&noclutter=1&t=1223606190&lat=47.98235321&lon=-116.56307220&label=Bayview%2C+ID&showstorms=0&map.x=400&map.y=240&centerx=400&centery=240&transx=0&transy=0&showlabels=0&severe=0&rainsnow=0&lightning=1&smooth=0';


// $CityPos3 - for unzoomed radar/animation
$CityPos3  =  'left: 386px; top: -262px;';
$CityColor3 = '#FFFFFF';  // color of legend display


When you use WU-radar-testpage.php?show=loc to do the adjustments, none of the settings inside of Settings.php are used .. the script is 'standalone' and needs to be configured, and when finished, copy the corresponding settings values back into Settings.php.  Correct the $RDR setting in WU-radar-inc.php and I think you'll have better luck with the configuration for $CityLoc1 ... $CityLoc3 :)

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

rikostan

  • Guest
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #89 on: November 01, 2008, 02:09:38 PM »
Afternoon all. I am having an issue here. I bet it is something I did, but I can't figure out what it is.
http://rikostan.com/weather/wxindex.php
The time is way off. It is showing data from 6 o clock this morning. and doesn't change. yesterday it showed the date as the 31 of December, 1969. As least the date is right today.
For the TZ setting I used
 $SITE['tz']          = 'America/New_York';  Is that correct? I didn't really understand the ourTZ TZ instructions.

I am just getting going with this, but the work already done by you guys (especially you Ken) is simply awesome. It really lets us hit the ground running.




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #90 on: November 01, 2008, 02:38:24 PM »
I think the issue is with your WD setting for the date format .. it looks like it's set for the Euro format of dd/mm/yyyy instead of the USA format of mm/dd/yyyy.   Your Settings.php has
Code: [Select]
$SITE['WDdateMDY'] = true; so it's expecting to see (and process the dates in mm/dd/yyyy format).   Change your WD, Units and Other Settings TAB to have Web Page Settings of Date Format month/day/year (instead of your current day/month/year).

Your timezone setting should work fine with the specification you showed above.

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

rikostan

  • Guest
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #91 on: November 01, 2008, 05:43:54 PM »
Arrrgh. I KNEW it was going to be something silly.

What is the proper path  in the ajaxWDwx.js file for the clientraw.txt file? They are both in the located in the same folder.
They are in ./weather/ .

Is it just ./clientraw.txt ? if I change it in the ajax file, should I also change it in the settings.file?

Thanks for the help!

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #92 on: November 01, 2008, 06:11:32 PM »
In the AJAX script (ajaxWDwx.js) you should have the
Code: [Select]
var clientrawFile = '/weather/clientraw.txt'; // location of clientraw.txt relative to this page on website .. the JavaScript uses the absolute URL path to find the clientraw.txt file.  The Settings.php
Code: [Select]
$SITE['clientrawfile'] = './clientraw.txt';  // relative FILE location of clientraw.txt works just fine as long as you're uploading clientraw.txt to the same directory as the template set.  It uses relative path FILE addressing for PHP (as PHP really only knows about the filesystem on the webserver, while JavaScript only knows about the URL paths on the webserver).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

rikostan

  • Guest
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #93 on: November 01, 2008, 07:12:20 PM »
All set! Thanks to you, the bones are in place, now I can start working on making it mine.

Thanks for your help and the awesome work you did on the script.
« Last Edit: November 01, 2008, 07:22:20 PM by rikostan »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #94 on: November 01, 2008, 07:18:01 PM »
You're very welcome!  I hope you enjoy the customization and presentation on your weather website.

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

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #95 on: November 02, 2008, 09:01:31 AM »
All set! Thanks to you, the bones are in place, now I can start working on making it mine.

Thanks for your help and the awesome work you did on the script.

Didnt realize you're up in prime Lake Effect country. Not sure, but
I may pass through there on my way to Clarkson to see the daughter.
Tony




rikostan

  • Guest
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #96 on: November 02, 2008, 09:09:48 AM »
We are right on the edge of that plateau that gets smacked every year. So we do get hit heavier than most other places, but starting 15 miles north east of us is the second snowiest spot in the lower 48.

We just bought a house on east bay though... should be a pretty interesting spot! :) We are two houses from the bay and 4 houses from lake Ontario.

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #97 on: November 04, 2008, 04:53:18 PM »
I'll see if I can give you a run for your money this season.
Lakes are kinda warm for this time of year I believe, and
you know what that means, right? LOL
« Last Edit: November 04, 2008, 07:19:09 PM by CNYWeather »
Tony




rikostan

  • Guest
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #98 on: November 04, 2008, 06:06:16 PM »
Oh yeah...snow baby!

Good thing I have 4wd. My wife quits her job in Rochester at the end of the year too, hopefully the heavy stuff holds off until mid-January or so. I hate to think of her driving that 45 miles to work on 104. I used to work up there too. When we drove together it wasn't so bad, but her being alone bothers me.

Offline Gregal

  • Member
  • *
  • Posts: 13
    • Hilltop Inspiration
Re: Weather-Display Carterlake-style AJAX/PHP website templates available
« Reply #99 on: December 14, 2008, 09:05:01 PM »
I am trying to set up the flyout-menu on my web pages

I have enabled the $SITE['flyoutmenu'] = true; in the settings file
I have uploaded the new image folder
I have uploaded the the 3 flyout-menu files
I can see the flyout-menu.php file fine at http://www.allshouse.net/flyout-menu.php
When I go to my main website http://www.allshouse.net/wx.php the flyout menu is not present

Any ideas what I might have wrong?

 

anything