
| Vendor | MindTouch |
| Type | Script |
| Categories | Widget |
| Requires | MindTouch Core 1.8.3 or later |
| Status | Stable |
| License | Free/Open Source |
| Manifest | http://scripts.mindtouch.com/accuweather.xml |
Install Script
Table of Contents
This extension contains functions for embedding AccuWeather widgets.
See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.
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) 2006-2009 MindTouch Inc.</copyright>
<description>This extension contains functions for embedding AccuWeather widgets.</description>
<uri.help>http://developer.mindtouch.com/App_Catalog/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>
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| accuweather.png AccuWeather Logo | 34.74 kB | 22:30, 30 Jan 2008 | SteveB | Actions | ||
| Images 1 | ||
|---|---|---|
AccuWeather Logoaccuweather.png | ||
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.