Weather Web Part

by Dominik Pinter (Kentico)
Weather Web Part preview

Price

$0

Details

Licence:
free
Works with:
4.0, 4.1, 5.0, 5.5, 5.5R2
Version:

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.

Comments


DanielaK commented on

Hi mazdazero, I am afraid but this web part is very old, it was created about 6 years ago for Kentico 4.0 and it is not supported any more. If you would like to display weather on your site I would recommend you to use for example this web part: "https://devnet.kentico.com/marketplace/web-parts/open-weather" which works with Kentico 8.0 and newer.

mazdazero-gmail commented on

nice wabsite info n shering

mazdazero commented on

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.

kentico_dominikp commented on

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.

oli70it commented on

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

Dimitris Rakopoulos commented on

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

kentico_dominikp commented on

Hi Dimitris,
what information do you enter there? Does it work with ID 94087 (Sunnyvale, CA)?

Dimitris Rakopoulos commented on

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

kentico_dominikp commented on

Hi, images are currently supported only for yahoo.com. We will definitely consider this in nexxt version of this web part.

liquidmagic commented on

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

kentico_dominikp commented on

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.

martinagency commented on

Thank you kentico_dominikp. Perhaps you can upload a newer version that does not throw a warning message during import. Thanks again.

kentico_dominikp commented on

martinagency: I tested it briefly with version 5.5 R2 and everything worked fine. Answer is yes.

martinagency commented on

Is this compatiable with 5.5r2?

kentico_dominikp commented on

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.

ilir.kovaci-dataprognet-ks commented on

How to configure for Pristina, Kosovo weather

mark.scott-tevaneuro commented on

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).

kentico_dominikp commented on

Thank you for your review. I will pass your suggestion on our project manager.

BL Webkeeper commented on

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.

kentico_dominikp commented on

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.

Heath commented on

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?

kentico_dominikp commented on

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.

Heath commented on

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" />.

Heath commented on

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.

kentico_dominikp commented on

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 />

Heath commented on

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!