The leader in ASP .NET Web Hosting, Windows Dedicated Servers,  Linux Web Hosting and Linux Dedicated Servers.  
Search our Knowledge Base:
XIIO Object Library: Weather

XIIO Networks Object Library

The weather object is an easy way to display weather on your site or in your web application with just a few steps.

Currently, the weather object supports all major localities.

You can implement the weather on your web pages without the fear of slowing it down. This component utilizes very high-speed data fetching through XML.

This component also has error trapping to prevent script errors in the event weather data is unavailable.

Object Name: XIIO.Weather

Properties:

LocalityType ("ZIPCODE" or "OTHER")

When using ZIPCODE, Set the following properties:
LocalityType = "ZIPCODE"
ZipCode = "yourzip"

When using OTHER, Set the following properties:
LocalityType = "OTHER"
CountryCode = "XX" (2 character country code)
StateCode = "XX" (2 character state code)
City = "City" (Full name of city")

Functions:

Connect() - Connect using the above properties
CurrentConditions() - Retrieve current Temp and Conditions
ForecartToday() - Retrieve today's forecast
ForecastTommorow() - Retrieve tomorrow's forecast

Error Trapping:

ErrorCode = Error code 22 means the object could not retrieve weather because the location is incorrect or no data is available for that location.

[View Sample ASP (Vbscript) Code] [Download Code as Text File]

[Online Demo of above code]




 
We're here to help

XIIO Networks 24/7 Technical SupportNo matter what you need help with, we're here to answer your questions!

E-mail us or Call us at
1-(845) 467-6780.


RefreshLive Network Health: 6:54:20 PM EST
.NET Web HostingLive StatusConnected to Data Center...
Overall Network Health: 100%



WAN Connections: 4/4 Online
Latency Level: 10.538 ms
Routing/Critical Equip: OK
Switching/Aux. Equip: OK
Windows Server Pools: OK
Linux/BSD Server Pools: OK
Voice Switching Systems: OK
Data Center Temp: 68F
Current Power Supply: Normal on Mains
UPS/Battery Backup Systems: OK/READY
Diesel Generator Systems: OK/READY
[View all information using NetOps Live]