deformed-offering

Free Weather Website Templates

They're free, but use at your own risk

The scripts referenced here are used in the operation of this weather station, and may be freely copied and used to support your station. Please note that you use these scripts at your own risk. No warranty is expressed or implied. I accept no liability for any damages that may ensue from their use.
You will need to configure them for your own particular weather station website.
RSS feed for Scripts Updates A RSS Feed is available to help keep you informed on updates to the scripts.

Many of these scripts are now available on GitHub at https://github.com/ktrue

Buy Me A Coffee If you find one or more of the scripts useful to you, please consider making a donation to help offset the routine expenses of operation of this website.
Thanks for your kind support!

A Version History is available -- check back from time to time to see if there are updates to scripts you have downloaded earlier. Announcements of version updates and new scripts are made on WXForum.net and Weather-Watch forums and saratogaWXPHP Twitter account as they become available.

Note: Twitter widget has been disabled 3-Jul-2023 since it no longer displays the recent update Tweets.

This page was updated Sunday, 08-Jul-2012 10:15

PHP/AJAX Website Template Set - wview Setup

Overview

There is one setup required in wview for the proper operation of your template set. Please follow the setup instructions in the section below to have wview upload your WVtags.php file. Your existing setup will upload the weekly graphics files needed for display.

Note: because wview does not currently have a native FTP upload with a frequency of less than one minute, there is no AJAX update capability currently provided. All the weather tags needed are contained in the WVtags.php file.

Setup to FTP upload WVtags.php

Copy WVtags.phpx from the WV-plugin.zip ./Website-template-files/ directory to your /etc/wview/html directory.

Edit your /etc/wview/html-templates.conf file and add lines:

# tags file for Saratoga-Weather V3 template set
WVtags.phpx

and save the file. Then kill -HUP the htmlgend process to have the html configuration reloaded.

Use your local wview management console (in http://localhost/wviewmgmt/file_generation.php ) to make sure your settings are as desired.

WV File Generation

Press Save Changes if you make any alterations to the settings displayed. Navigate to the FTP screen via the link at the top of the page.

WV FTP setup

Make sure your FTP Host, FTP Userid, FTP password are set for your public website and the interval is set at 5 minutes.
Press Save Changes to remember these settings. Navigate to the System Status screen via the link at the top of the page.

WV Status

Make sure that the wview, html and ftp processes are running normally.

Alternative: use local Apache server on your wview system and no FTP

If you would like to use the local HTTP server on your system running wview, you can simply install your template set in the /var/www/weather directory and skip the FTP setup above. Note that your HTTP server must have PHP5+ and PHP-GD installed to use the template set.

Copy WVtags.phpx from the WV-plugin.zip ./Website-template-files/ directory to your /etc/wview/html directory.

Edit your /etc/wview/html-templates.conf file and add lines:

# tags file for Saratoga-Weather V3 template set
WVtags.phpx

and save the file. Then kill -HUP the htmlgend process to have the html configuration reloaded.

Then you can view the uploaded tags (after a wview upload cycle) on your website as:

http://www.yourwebsite.com/WVtags.php?sce=view (see the raw source after processing by wview)

http://www.yourwebsite.com/WVtags.php?sce=dump (see the contents of the resulting $WX[] array with wview tag names and data values

Note: if you experience issues with your website showing PHP error messages like "unexpected end in WVtags.php", it may be due to a slow FTP connection such that your browser is accessing the website as wview is uploading the WVtags.php, and has not yet finished.
To remedy this issue, you can upload your tags file to WVtags-new.php, make sure that WVtags.php is writable by PHP, and the V1.04 of top.php will automatically copy WVtags-new.php to WVtags.php to ensure you have a complete/fresh copy when your website is accessed.

Files processed by wview used by templates

The following are the only files that need to be regularly processed by wview and uploaded to your template website. To save FTP bandwidth, you can edit the /etc/wview/html-templates.conf file and the /etc/wview/images.conf file to comment out other entries as they are not used by the template as distributed.

WVtags.php
NOAA/NOAA-yyyy.txt
NOAA/NOAA-yyyy-mm.txt
temp*comp.png
heatchil*comp.png
humid*.png
barom*.png
wspeed*comp.png
wdir*.png
rain*.png

Optional(if you have these sensors and have enabled creation in /etc/wview/images.conf):

radiation*.png
UV*.png

Additional setup may be required...

The ./cache/ directory from the document root of your website needs to be writable by PHP. Run http://your.website.com/check-fetch-times.php to check for Error: messages. If you see the messages, set the permissions on the ./cache/ directory to 666 or 777 to enable writing. Retest using the check-fetch-times.php script.

deformed-offering