Follow these steps to install this script on your wiki.
http://scripts.mindtouch.com/accuweather.xmlRelated Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.
This extension contains functions for embedding AccuWeather widgets. This script requires MindTouch Deki 1.8.3 or later.
Functions:
Embed the AccuWeather weather widget.
Parameters:
| Name | Type | Description |
| zipcode | str | (optional) Zipcode for location. (default: "92101") |
| celsius | bool | (optional) Show temperature in degrees Celsius. (default: false) |
<extension>
<title>AccuWeather Extension</title>
<label>AccuWeather</label>
<copyright>Copyright (c) 2007, 2008 MindTouch, Inc.</copyright>
<description>This extension contains functions for embedding AccuWeather widgets.</description>
<uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/AccuWeather</uri.help>
<uri.logo>http://scripts.mindtouch.com/logos/accuweather-logo.png</uri.logo>
<namespace>accuweather</namespace>
<function>
<name>weather</name>
<description>Embed the AccuWeather weather widget.</description>
<param name="zipcode" type="str" optional="true">Zipcode for location. (default: "92101")</param>
<param name="celsius" type="bool" optional="true">Show temperature in degrees Celsius. (default: false)</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<body>
<div style='width: 300px; height: 250px; background-image: url( http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/blue_300x250_bg.jpg ); background-repeat: no-repeat; background-color: #346797;' >
<div style='height: 238px;' >
<script eval:src='"http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2.asp?partner=netweather&tStyle=whteYell&logo=0&zipcode=" .. (args.zipcode ?? 92101) .. "&lang=eng&size=9&theme=&metric=" .. (args.celsius ? 1 : 0) .. "&target=_self"'></script>
</div>
<div style='text-align: center; font-family: arial, helvetica, verdana, sans-serif; font-size: 11px; line-height: 12px; color: FFFFFF;' >
<a style='color: #FFFFFF' href='http://www.accuweather.com/us/MA/CUMMINGTON/01026/city-weather-forecast.asp?partner=accuweather&traveler=0' >Weather Forecast</a> | <a style='color: #FFFFFF' href='http://www.accuweather.com/maps-satellite.asp' >Weather Maps</a> | <a style='color: #FFFFFF' href='http://www.accuweather.com/index-radar.asp' >Weather Radar</a>
</div>
</div>
</body>
</html>
</return>
</function>
</extension>
Thanks
AccuWeather seems to have international forecast as well. The link below will give weather forecast for London UK, maybe is just a matter of modifying the extension so it will work with it (just a suggestion as I don not know if this can be accomplished)
http://www.accuweather.com/world-index-forecast.asp?partner=ggfcast&traveler=0&loccode=EUR|UK|UK241|LONDON
Also the widget below looks good
http://www.yourminis.com/minis/yourminis/yourminis/mini:weather
Thanks edited 10:04, 22 Feb 2008
Any advice? Thanks for this great extension.