Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

advforecast2.php Question

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
acatalano
Posts: 92
Joined: Tue 16 Jun 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

advforecast2.php Question

Post by acatalano »

I'm finally getting around to updating to the latest version of advforecast2.php and have downloaded the php file and the 3 iconsetV2 and iconset update files.

Before proceeding with the update I have a sort of "belts and suspenders" question about the distribution of the updates into the website folders. The php file is obvious; it goes in the "root" directory.

This question refers to the icon sets. For V2 of the icons the instructions call for them to be uploaded to the "forcast/images" directory. However when I unzipped this file it created both a "forecast" and "ajax-images" directory in addition to a Dualimage.php file. If I take the instructions literally, this would mean that the resulting file structure would have a "forecast" and "ajax-images" WITHIN the "images" folder beneath the forecast folder.

My perception was that the intent was to update the contents of the forecast and ajax-images folders with the contents of the respective unzipped file, rather than a new nested structure being created.

Likewise, then where does the Dualimage.php file go..in root?

Sorry to be a dunce about this...i just want to be absolutely certain before proceeding. :bash: :bash:
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: advforecast2.php Question

Post by saratogaWX »

Were you using the Template Update Tool to obtain your .zip file?

If so, the ajax-images directory goes in the document root (as it is in the .zip), the forecast/ directory also goes in the root (and will include a forecast/icon-templates/ and forecast/images/ updates. The DualImage.php does go in the document root.

Usually, the update .zip is placed in the document root, then unzipped from there -- that preserves the internal directory structure and results in updating all the parts in their correct places.
acatalano
Posts: 92
Joined: Tue 16 Jun 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

Re: advforecast2.php Question

Post by acatalano »

Yes I used the update zip file, and what you say is just what I expected. I was thrown off by the mention of sending the icon files to the forecast/images directory. unzipping it there would duplicate the folder structure above, which doesn't seem right (and isn't) Just wanted to be absolutely certain. Many thanks for confirming what I know seems obvious.
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965
Post Reply