Welcome to MSDN Blogs Sign in | Join | Help

Announcing the CKS: World Clock and Weather web part

In February, we published a KB article about the discontinuation of the MSNBC web parts in the online Web Part gallery. Of these web parts, the one that displayed weather information was one of the most popular. Bamboo Solutions, a SharePoint ISV partner since 2001, has graciously donated to the Community Kit for SharePoint project an enhanced version of the weather web part that fetches data from the MSN Weather service and displays the current time of the location. It can also accommodate multiple locations as shown below.

clip_image002

The web part and its source code are available at http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=CKS&ReleaseId=7649.

 

<Lawrence />

Published Thursday, October 11, 2007 2:29 AM by sptblog

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Techy News Blog &raquo; Announcing the CKS: World Clock and Weather web part

# re: Announcing the CKS: World Clock and Weather web part

Cool - but is there any sort of 'world time' only web part available? That might be useful - but the weather in McMurdo is probably less relevant

Friday, October 12, 2007 7:14 AM by Andy

# re: Announcing the CKS: World Clock and Weather web part

How about better icons?

For exmaple, see - http://www.codeproject.com/useritems/weathercontrolVB.asp

Thursday, October 18, 2007 11:41 AM by Victor

# SharePoint Kaffeetasse 25

HotFix Security Hotfix MS07-059 Artikel zum Lesen Why SharePoint Server is Terrible Dazu der Kommentar

Monday, October 22, 2007 6:41 AM by SharePoint, SharePoint and stuff

# re: Announcing the CKS: World Clock and Weather web part

Yippee!!  The clock display makes this a must have for us!

Friday, October 26, 2007 4:58 PM by Marty

# re: Announcing the CKS: World Clock and Weather web part

Great kit.

I'll definitely try to use it in our sites.

Keep the good work.

Sunday, October 28, 2007 2:50 PM by Sharepoin WebPart

# WSS 3.0 & MOSS: Recopilación de enlaces interesantes (IX)

Después de algún tiempo sin postear el habitual recopilatorio de recursos interesantes de WSS 3.0 &amp;

Tuesday, October 30, 2007 11:52 AM by Blog del CIIN

# re: Announcing the CKS: World Clock and Weather web part

I might have found a bug.  I noticed an error when I was browsing anonymously on a web part page with this web part on it.  The error was within the OnPreRender event and it gave the old "Object reference not set to an instance of an object" error message.  After I debugged it, I traced it to the LocalizeDateAndTime method.  The if statement is assuming the user is logged in.  

IE: "if (SPContext.Current.Web.CurrentUser.RegionalSettings != null)"

So I added an additional condition,

IE: "if (SPContext.Current.Web.CurrentUser != null && SPContext.Current.Web.CurrentUser.RegionalSettings != null)"

This seemed to fix it.

Friday, January 11, 2008 8:18 AM by Randy

# re: Announcing the CKS: World Clock and Weather web part

The anonymous access bug can also be fixed by modifying the LocalizeDateAndTime method as shown below.

 if (SPContext.Current.Web.RegionalSettings != null)

           {

               int iCultureId = Convert.ToInt32(SPContext.Current.Web.RegionalSettings.LocaleId);

               localizedDateTime = dateTime.ToString(dateTimeFormatingString, new System.Globalization.CultureInfo(iCultureId));

           }

Friday, February 01, 2008 4:25 PM by Assefa

# re: Announcing the CKS: World Clock and Weather web part

I am encountering the anonymous access bug as well, but I'm not sure how to make the modifications you are suggesting.  Can you either explain further or upload the modified file so I can update my installation.  Thanks!

Monday, February 04, 2008 5:18 PM by Daniel

# re: Announcing the CKS: World Clock and Weather web part

Is it possible that someone can post on how to exactly fix this... what file and what to do...

Thank You

Sunday, February 10, 2008 1:52 AM by Joey@Flynnsters.com

# re: Announcing the CKS: World Clock and Weather web part

We provided CKS with the anonymous access and other bug fixes. You guys can download the latest install and source code files.

Thanks,

Tuesday, March 04, 2008 10:57 AM by Assefa

# re: Announcing the CKS: World Clock and Weather web part

Hi Assefa..when will be available for download?

Thanks!

Tuesday, March 04, 2008 5:00 PM by Daniel

# re: Announcing the CKS: World Clock and Weather web part

After installing and adding to a page we received this error:

WebPart Error :: Method Name - OnPreRender :: [MESSAGE] - Unable to connect to the remote server

The issues ended up being with our proxy server.  We added the defaultproxy to the web.config and the issue went away.

<system.net>

<defaultProxy>

<proxy usesystemdefault = "false" proxyaddress="http://YOURPROXYSERVERHERE:YOURPORTHERE" bypassonlocal="true" />

</defaultProxy>

</system.net>

Thursday, March 13, 2008 11:12 AM by Stacey

# re: Announcing the CKS: World Clock and Weather web part

I get an error when adding this web part to the home page of my MOSS implementation...

WebPart Error :: Method Name - OnInit :: [MESSAGE] - The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Anyone seen this error before?

Monday, April 28, 2008 10:04 PM by stu

# re: Announcing the CKS: World Clock and Weather web part

Stacey,

Thank you _very_ much for your fix. That solved our issues, as well.

Thursday, May 01, 2008 2:13 PM by Dan

# re: Announcing the CKS: World Clock and Weather web part

Proxy is set correctly in the web.config

Im also getting the following error:

WebPart Error :: Method Name - OnInit :: [MESSAGE] - The system cannot find the file specified. (Exception from HRESULT: 0x80070002)  

Any ideas please?

Thursday, June 26, 2008 9:19 AM by Hannah

# re: Announcing the CKS: World Clock and Weather web part

Hi, I'm triying to setup the proxy but I dont know which web.config should I modify.

What is the paht? I have a lot of web.config

Thanxs

Tuesday, July 08, 2008 12:24 PM by Carlos Sanchiz

# World Clock and Weather web part

Several requests have come in to display both Fahrenheit and Celsius.  Is this planned?

Wednesday, August 20, 2008 3:36 PM by konnie mccauley

# re: Announcing the CKS: World Clock and Weather web part

is there a way to localize weather condition strings retrieved via web service?

Wednesday, October 08, 2008 9:58 AM by Dragan Panjkov

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker