Weatherfox.com Homepage New Jersey Navesink Twin Light Towers Weather Tools
Weatherfox.com Weather Forecast Weatherfox.com Weather Forecast
Weatherfox.com Weather Forecast Network Forecast Beach Commuter Tools Community About Contact
Weatherfox.com Weather Forecast
 Tuesday, May 13, 2008
Homepage of Weatherfox.com Search Weatherfox.com E-Mail Weatherfox.com SiteMap of Weatherfox.com
. : Tools
Go Local »


: Weather Lore

The winds of the daytime wrestle and fight, longer and stronger than those of the night.

: Free PDF Report

WeatherPDF.com - Free PDF Weather Report Service
» WeatherPDF.com

 

.

: VWS AllTags Templates


VWS AllTags is a simple tagged solution to make all existing VWS tags available on any page of your web site. It includes a VWS template (.htx) that you add to your html settings list of VWS and publish (ftp) to your web server. Every VWS value is then available in ASP/PHP/JavaScript variables that you can easily included on any web page of your site. Your benefit is that you have to upload only one file instead of creating and uploading single htx files for every web page you need your VWS data on. Not to mention that in VWS only 15 htx files are possible to convert.
In addition, VWS AllTags converts all Imperial values in Metric values if applicable
(e.g. 67°F --> 19.5°C, or 12mph --> 19.3km/h, or 6/22/03 --> 22.6.03, or 4:15pm --> 16:15) and provides additional values like month, year, yesterday's date, and VWS AllTags Version.

Here is how it works in ASP, PHP, JavaScript:

ASP Supported Server - VWS AllTags ASP Version 1.2

» Download VWS AllTags Template [zip]
» Download Imperial Only Template [zip]
» Download Metric Only Template [zip]

Preparing your Virtual Weather Station software to publish the ASP AllTags file:

1. Download and unzip the vwsalltags.htx file of your choice.

2. Copy the vwsalltags.htx file to your /vws/templates folder.

3. Open your VWS program and go to [Internet][HTML Settings] from the menu bar.

4. Click [Browse] on an empty Template row and select the vwsalltags.htx file in your /vws/templates folder.

5. Click [Browse] on the HTML Filename row next to the selected vwsalltags.htx template file and select your web server upload folder and create a new file called vwsalltags.asp. If you don't have an upload folder already, simply publish the file anywhere you want and set FTP Sent (Upload) File accordingly. Make sure the created vwsalltags.asp file will be uploaded to your web server.

Preparing your web pages to show the published data of the ASP AllTags file:

6. All your web pages you like to include the AllTags file have to be ASP pages with .asp extension. Open your ASP page in any html editor or text editor and add the following line of code at the top of your page to include the vwsalltags.asp file (replace [path] with your path to this file, e.g. /folder/subfolder or delete if the file is in your root):

<!--#include virtual="[path]/vwsalltags.asp"-->

7. Depending which VWS AllTags template you use (Imperial, Metric, both) you can add the following variables (tags) to your ASP page to view the according VWS value. Replace xxXXX with the corresponding VWS vxxXXX tag without leading v. Add a leading z for Imperial values or a leading c for Metric values. Have a look into the vwsalltags.htx template for a tag reference:

For Imperial values: <%=zxxXXX%>
For Metric values: <%=cxxXXX%>

Example:

<p>Temperature: <%=zxv007%>&deg;F (<%=cxv007%>&deg;C)<br>
Wind Speed: <%=zxv002%>mph (<%=cxv002%>km/h)</p>

PHP Supported Server - VWS AllTags PHP Version 1.2

» Download VWS AllTags Template [zip]
» Download Imperial Only Template [zip]
» Download Metric Only Template [zip]

Preparing your Virtual Weather Station software to publish the PHP AllTags file:

1. Download and unzip the vwsalltags.htx file of your choice.

2. Copy the vwsalltags.htx file to your /vws/templates folder.

3. Open your VWS program and go to [Internet][HTML Settings] from the menu bar.

4. Click [Browse] on an empty Template row and select the vwsalltags.htx file in your /vws/templates folder.

5. Click [Browse] on the HTML Filename row next to the selected vwsalltags.htx template file and select your web server upload folder and create a new file called vwsalltags.php. If you don't have an upload folder already, simply publish the file anywhere you want and set FTP Sent (Upload) File accordingly. Make sure the created vwsalltags.php file will be uploaded to your web server.

Preparing your web pages to show the published data of the PHP AllTags file:

6. All your web pages you like to include the AllTags file have to be PHP pages with .php extension. Open your PHP page in any html editor or text editor and add the following line of code at the top of your page to include the vwsalltags.php file (replace [path] with your path to this file, e.g. /folder/subfolder or delete if the file is in your root):

<? include "[path]/vwsalltags.php"; ?>

7. Depending which VWS AllTags template you use (Imperial, Metric, both) you can add the following variables (tags) to your PHP page to view the according VWS value. Replace xxXXX with the corresponding VWS vxxXXX tag without leading v. Add a leading z for Imperial values or a leading c for Metric values. Have a look into the vwsalltags.htx template for a tag reference:

For Imperial values: <?=$zxxXXX;?>
For Metric values: <?=$cxxXXX;?>

Example:

<p>Temperature: <?=$zxv007;?>&deg;F (<?=$cxv007;?>&deg;C)<br>
Wind Speed: <?=$zxv002;?>mph (<?=$cxv002;?>km/h)</p>

JavaScript HTML - VWS AllTags JS Version 1.2
No server side scripting required!

» Download VWS AllTags Template [zip]
» Download Imperial Only Template [zip]
» Download Metric Only Template [zip]
» Download VWS AllTags Bandwidth Saver Templates [zip]

Preparing your Virtual Weather Station software to publish the JS AllTags file:

1. Download and unzip the vwsalltags.htx file of your choice.

2. Copy the vwsalltags.htx file to your /vws/templates folder.

3. Open your VWS program and go to [Internet][HTML Settings] from the menu bar.

4. Click [Browse] on an empty Template row and select the vwsalltags.htx file in your /vws/templates folder.

5. Click [Browse] on the HTML Filename row next to the selected vwsalltags.htx template file and select your web server upload folder and create a new file called vwsalltags.js. If you don't have an upload folder already, simply publish the file anywhere you want and set FTP Sent (Upload) File accordingly. Make sure the created vwsalltags.js file will be uploaded to your web server.

Preparing your web pages to show the published data of the JS AllTags file:

6. Open your web page in any html editor or text editor and add the following line of code in the html header (between the <head>...</head> tags) of your page to include the vwsalltags.js file (replace [path] with your path to this file, e.g. /folder/subfolder or delete if the file is in your root):

<script language="JavaScript" src="[path]/vwsalltags.js"></script>

7. Depending which VWS AllTags template you use (Imperial, Metric, both) you can add the following variables (tags) to your html page (between the <body>...</body> tags) to view the according VWS value. Replace xxXXX with the corresponding VWS vxxXXX tag without leading v. Add a leading z for Imperial values or a leading c for Metric values. Have a look into the vwsalltags.htx template for a tag reference:

For Imperial values: <script>document.write(zxxXXX)</script>
For Metric values: <script>document.write(cxxXXX)</script>

Example:

<p>Temperature: <script>document.write(zxv007)</script>&deg;F (<script>document.write(cxv007)</script>&deg;C)<br>
Wind Speed: <script>document.write(zxv002)</script>mph (<script>document.write(cxv002)</script>km/h)</p>

8. To keep the bandwidth and download time to a minimum I recommend using the Bandwidth Saver version of JS AllTags. You have to inlcude both files (will be faster than one big one) like #6.

 

 

Weatherfox.com Weather Forecast
    Home | Network | Forecast | Beach | Commuter | Tools | Community | About | Contact | SiteMap | ^Top