Author Topic: now what? (to do after installing templates)  (Read 4115 times)

0 Members and 1 Guest are viewing this topic.

Offline greg

  • Member
  • *
  • Posts: 18
now what? (to do after installing templates)
« on: January 16, 2012, 11:52:18 AM »
I did the following:
1)downloaded the usa template.zip
2)downloaded the wx software template - meteohub.zip
3)edited the settings.php file and settings-weather.php file
4)configured the meteohub software so proper data can be ftp'd to my website
5)uploaded all files/directories to a wxphp subdirectory on my web site (/wxphp)
6)now the questions. should the files from #5 be uploaded to my root directory?
what to do after that?

thanks
Greg

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9296
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: now what? (to do after installing templates)
« Reply #1 on: January 16, 2012, 12:55:06 PM »
Hi Greg,

You can keep the files in the wxphp directory if you like.  You'll need to change the ajaxMHwx.js file to have the script use /wxphp/clientraw.txt instead of /clientraw.txt if you want the AJAX updates.

What's the URL to your new site?

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 greg

  • Member
  • *
  • Posts: 18
Re: now what? (to do after installing templates)
« Reply #2 on: January 16, 2012, 01:33:25 PM »
my weather site is: weatherbygregdz.com

Offline greg

  • Member
  • *
  • Posts: 18
Re: now what? (to do after installing templates)
« Reply #3 on: January 16, 2012, 01:46:19 PM »
How do I start the site displaying weather data and graphs? (what file(s) to "engage" on my web site)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9296
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: now what? (to do after installing templates)
« Reply #4 on: January 16, 2012, 01:50:40 PM »
You need to upload all the template files/directories to your website. None of them appear to be there yet.

I do see the Meteohub upload of the tags file at http://weatherbygregdz.com/MHtags.php?sce=dump so that's a good start.
Now just upload all the other template files to your home directory on the website.

Best regards,
Ken
« Last Edit: January 16, 2012, 02:09:30 PM by saratogaWX »
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 greg

  • Member
  • *
  • Posts: 18
Re: now what? (to do after installing templates)
« Reply #5 on: January 17, 2012, 12:13:36 PM »
All of the php/ajax templates are on my root directory along with the files generated by the software from meteohub. What files do i select to get the data to display on the web site? (how to start)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9296
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: now what? (to do after installing templates)
« Reply #6 on: January 17, 2012, 12:48:25 PM »
Are you sure you have uploaded all the template files to the document root of your website?

I'm getting 404-Not Found on all the parts I've tried like:

http://weatherbygregdz.com/wxindex.php  (should show the default homepage)

http://weatherbygregdz.com/Settings.php (should show a blank page, but shows 404-Not Found)

http://weatherbygregdz.com/ajax-images/sct.jpg  (should show an image for partly-cloudy)

etc...

The response headers from your website show

Server: Nginx / Varnish

I'd not heard of a 'Varnish' webserver, but you may need additional configuration of it to allow it to serve your pages.

So.. double-check to make sure that the directory that has your MHtags.php uploaded by Meteohub is the same directory where all the template files (and subdirectories) reside.  The template set needs all that to work correctly.

Right now, only your Meteohub uploaded MHtags.php is visible in your document root at
http://weatherbygregdz.com/MHtags.php?sce=dump and NONE of the other files seem to be there.

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: 9296
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: now what? (to do after installing templates)
« Reply #7 on: January 17, 2012, 01:52:41 PM »
I did a bit more research and found that Nginx+Varnish are HTTP accelerators.  If you have an option, I'd suggest you turn them off as accelerators will serve cached HTML webpages, and will likely not serve up freshly-made weather content with the data from your Meteohub.  Best to use a standard Apache/PHP webserver and not use HTTP acceleration.
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 greg

  • Member
  • *
  • Posts: 18
Re: now what? (to do after installing templates)
« Reply #8 on: January 17, 2012, 04:12:05 PM »
I believe i have all the php/ajax templates in the proper place (root directory and subdirectories). Next?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9296
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: now what? (to do after installing templates)
« Reply #9 on: January 17, 2012, 04:30:22 PM »
Success... now your site at http://weatherbygregdz.com/wxindex.php is visible.

You need to continue customizing the Settings.php for your location.  You still have settings for Saratoga in your setup.

Code: [Select]
$SITE['fcsturlNWS'] = http://forecast.weather.gov/MapClick.php?CityName=Saratoga&state=CA&site=MTR&textField1=37.2639&textField2=-122.022&e=1&TextType=2';

$SITE['NWSforecasts'] = array(

'CAZ513|Saratoga|http://forecast.weather.gov/MapClick.php?CityName=Saratoga&state=CA&site=MTR&textField1=37.2639&textField2=-122.022&e=1&TextType=2',
'CAZ513|Los Gatos|http://forecast.weather.gov/MapClick.php?CityName=Los+Gatos&state=CA&site=MTR&textField1=37.2267&textField2=-121.974&e=0&TextType=2',
'CAZ513|Cupertino|http://forecast.weather.gov/MapClick.php?CityName=Cupertino&state=CA&site=MTR&textField1=37.3231&textField2=-122.031&e=0&TextType=2',
'CAZ513|Sunnyvale|http://forecast.weather.gov/MapClick.php?CityName=Sunnyvale&state=CA&site=MTR&textField1=37.3689&textField2=-122.035&e=0&TextType=2',
...
        );

$SITE['noaazone'] = 'CAZ513';

When you're ready to enable your site as the default page, just:

1) copy wxindex.php to index.php
2) edit flyout-menu.xml to replace 'wxindex.php' with 'index.php'
3) upload index.php and flyout-menu.xml

then the default page should be your new index.php page.

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 greg

  • Member
  • *
  • Posts: 18
Re: now what? (to do after installing templates)
« Reply #10 on: January 17, 2012, 04:54:44 PM »
Thanks for the help, Ken



Greg

 

anything