Marketplace > Web parts > Weather Web Part

Kentico CMS for ASP.NET - DevNet - Marketplace - Weather Web Part

Kentico Marketplace

Categories

Weather Web Part

by Dominik Pinter (Kentico)
Weather Web Part preview
Rating: (2 reviews)
License: free
Works with: 4.0, 4.1, 5.0, 5.5, 5.5R2
Current version: 1.0
Price: $0
Is eligible for Tested by Kentico stamp

Summary

Displays weather information on your web site using Yahoo or weather.com rss feed. This webpart supports custom transformation.

Description

This web part can be used to display weather information for specified location on your web site. Weather information can be loaded from yahoo weather channel or weather.com channel.

Weather web part use transformation to display weather information. You can easily change the web part design.

Once installed, this Web part is available in the Listings and Viewers category. You can find documentation in the Web Part Properties dialog by clicking the Documentation link in the upper right corner.
Version:
Total views: 5176 

You need to sign in if you wish to write a review.
kentico_dominikp
Hi,
this web part was not tested with version 6, it is compatible with versions 4.x and 5.x of Kentico CMS.

Property CMS.CMSHelper.CMSContext.BaseCacheKey was moved in version 6 to CMS.GlobalHelper.CacheHelper.BaseCacheKey. You need to change the code on the specified line (203) in order to solve this problem.
3/27/2012 2:37:27 AM

oli70it
I was installed weather web part on Kentico 6, but I have this error

[Error loading the WebPart 'Weather']
c:\inetpub\wwwroot\SITES\xxxxxxxxxxx\CMSWebParts\services\weather.ascx.cs(203): error CS0117: 'CMS.CMSHelper.CMSContext' does not contain a definition for 'BaseCacheKey'

Please Help how to resolve this problem
3/26/2012 9:05:14 AM

Dimitris Rakopoulos
Hello,

on the weather.ascx.cs there are 2 places that you have this code:
ds.ReadXml(YAHOO_URL + "?w=" + this.Location + "&u=" + temperatureUnit);

The w= was p= on your code. I guess that Yahoo changed this some time after you created the part. Now it works. So, you can change the code as well.

Dimitris
11/28/2011 10:33:00 AM

kentico_dominikp
Hi Dimitris,
what information do you enter there? Does it work with ID 94087 (Sunnyvale, CA)?
11/28/2011 10:19:57 AM

Dimitris Rakopoulos
Hello,

it seems that for some reason no matter which city I use for yahoo weather I get an error:
City not found.

Any ideas why?

Dimitris
11/21/2011 11:09:12 AM

kentico_dominikp
Hi, images are currently supported only for yahoo.com. We will definitely consider this in nexxt version of this web part.
3/8/2011 10:52:47 AM

liquidmagic
Hello,

does the webpart support the icon element of the weather.com feed? If no, it would be nice to include, since weather.com provides with lots of icons.

Dimitris
3/4/2011 11:00:24 AM

kentico_dominikp
I cannot do that because this web part was developed for version 4.0. If I made package for version 5.5 R2 instead this for 4.0 it wouldn't be able to import to the version 4.0. Importing package from newer to older version is not allowed.
1/11/2011 12:18:28 AM

martinagency
Thank you kentico_dominikp. Perhaps you can upload a newer version that does not throw a warning message during import. Thanks again.
1/10/2011 8:20:44 AM

kentico_dominikp
martinagency: I tested it briefly with version 5.5 R2 and everything worked fine. Answer is yes.
1/10/2011 12:15:02 AM

martinagency
Is this compatiable with 5.5r2?
1/7/2011 8:40:28 PM

kentico_dominikp
mark.scott-tevaneuro: Thank you for your suggestion. I will pass it on our project manager.

ilir.kovaci-dataprognet-ks: You must know zip code or yahoo weather ID of your location (if you using yahoo weather services). Yahoo weather ID for Pristina, Kosovo is 536151.
You can find out weather ID from Yahoo weather portal URL. For Pristina, Kosovo is URL: http://weather.yahoo.com/serbia/kosovo/pristina-536151/ and as you can see end of URL is weather ID.
3/11/2010 5:30:35 AM

ilir.kovaci-dataprognet-ks
How to configure for Pristina, Kosovo weather
12/3/2009 11:32:51 AM

mark.scott-tevaneuro
Thank you for this weather web part. Works great! If I may, I have one suggestion for a possible upgrade / new version. It would be helpful to allow a user to choose their location directly from the web part versus having to set it via CMSDesk. Not sure if it'd be best to store that Location ID / zipcode value in a cookie or custom table, but it would be good to allow selection by user... especially for intranets for companies that have multiple locations in different states (or even countries).
7/14/2009 12:03:36 PM

kentico_dominikp
Thank you for your review. I will pass your suggestion on our project manager.
6/2/2009 5:24:26 AM

BL Webkeeper
This is by far the most desired web part that is not a part of Kentico in my opinion. Thank you for adding this web part. I would recommend including this in the next release. I was able to customize the transformation perfectly into our intranet site. I used custom images for the weather in combination with <%# Eval("code") %>". Enjoy this web part.
6/1/2009 11:41:38 AM

kentico_dominikp
Unfortunately there was bug in caching of this webpart. I am apolologize for that. You have two options now:
1(Recommended) Bug has been already fixed so you can download fixed version (by using download link above).
2) You can disable caching of webpart or caching of content.
6/1/2009 3:29:05 AM

Heath
Again, I must say I love this web part. I tried to add it twice to one page and I used two different zip codes and the weather info displayed only one zip code twice in live mode, but in design mode I could see both zip code weather information. Any ideas?
5/29/2009 10:42:25 PM

kentico_dominikp
I think that transformation you using for getting image of current weather is best and only way to get it. Image fields refers to yahoo news logo. Unfornately neither yahoo.com nor weather.com doesn't support images directly.
5/29/2009 1:58:18 AM

Heath
If I am not mistaken I can use the following in the transformation, let me know if there is a better way <img src="http://l.yimg.com/a/i/us/we/52/<%# Eval("code") %>.gif" />.
5/28/2009 10:18:37 AM

Heath
Thank you. I figured this out last night once I decided to read the documentation. I am also reading the source info at Yahoo! Weather to get additional details. Is there a way to just get the image of the current weather? The description gives us the current weather and forecast. I tried the image elements but this only gives me the actual width and height. Thanks again for this wonderful web part.
5/28/2009 9:52:44 AM

kentico_dominikp
Thank you for your feedback. This webpart is based on repeater control so you can set up what you want to see in transformation (if you are unfamiliar with repeaters and transformations see Kentico CMS Developer's Guide for futher info). If you see only blank page you probably didn't create transformation for Weather.com service. Fields which you can evaluate in transformation are listed in webpart's documentation. Here is the example of transformation for Weather.com service:

City: <%# Eval("city") %> <br />
Time: <%# Eval("time") %> <br />
Temperature: <%# Eval("temperature") %> <%# Eval("temperatureUnits") %> <br />
5/28/2009 2:58:26 AM

Heath
I first tried the 3rd party version of this web part with no success. I was very happy to see a version created by a member of the Kentico staff. I downloaded the web part, imported it and I was up and running in minutes with no issues. I would like to see some documentation that identifies the difference between yahoo and weather.com in the dropdown list. I registered for the partner id here <a target="_blank" href="https://registration.weather.com/ursa/xmloap/">Weather.com</a> loaded the info and selected weather.com, but the weather is blank? I just opted for the Yahoo version which works perfectly!
5/27/2009 8:43:00 AM


Best Rated Items
Most Viewed Items
Latest Updated Items
Sitemap | Content Management System | E-commerce Software | Social Networking Software | Intranet | Online Marketing Solution | Copyright © 2004-2013 Kentico Software | Powered by Kentico CMS