I miss the onscreen weather gadget that was included in Windows 7, but not in Windows 10, so I made a similar application. It gets the current weather and the forecast from the Weather Underground web site. Initially I tried to use OpenWeatherMap and its API but the temperatures were off for an hour or two, meaning the current temperature that I got from the API call was the actual temperature 1-2 hours ago.
Both Weather Underground and OpenWeatherMap offer free API calls and you need to register in order to get an API key. Using that key, you can retrieve the weather. No key – no weather forecast.

So, first go to WU web site, register and get a key.
If you want to get the source, make sure that you have JSON from Netwtonsoft in your project reference. See their web page for install.

git clone https://www.github.com/klimenta/WUnderK

If you want the EXE, you’ll have to install it because the EXE comes with the Json.dll.
Download it from here.

NOTE: The WU API returns JSON which can be parsed and validated on this web site for accuracy. The output was deserialized directly to C# classes and the conversion was possible because of this site.

This is how the gadget (app) looks like expanded with the details and forecast panes. You can hide them if you want, so only the temperature and the city is shown.

Capture

This is the options screen.

Untitled

And this is how it looks like on the screen.

Capture


More Posts


#87 FreeBSD: Expand drive size
April 5, 2016

#87 FreeBSD: Expand drive size

#86 Visual C#: CPU monitoring gadget
April 1, 2016

#86 Visual C#: CPU monitoring gadget

#84 Visual C#: TCP/ICMP monitoring program – kmon
March 17, 2016

#84 Visual C#: TCP/ICMP monitoring program – kmon

#83 Visual C#: k9pad – notepad clone with 9 tabs
February 25, 2016

#83 Visual C#: k9pad – notepad clone with 9 tabs