This repository holds the code for Bedside Clock Windows Phone App
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Properties
Screenshots
SubmissionInfo
external
moon
packages
unittests
weather
.gitignore
App.xaml
App.xaml.cs
LICENSE.txt
LocalisedStrings.cs
MainPage.xaml
MainPage.xaml.cs
MoonPhase.cs
Settings.xaml
Settings.xaml.cs
SplashScreenImage.jpg
StringResources.Designer.cs
StringResources.de-DE.resx
StringResources.es-ES.resx
StringResources.fr-FR.resx
StringResources.it-IT.resx
StringResources.nl-NL.resx
StringResources.resx
SunriseAndSunset.cs
UserSettings.cs
YahooLocationServices.cs
YahooWeather.cs
appbar.feature.settings.rest.png
appicon.png
bedsideclock.csproj
bedsideclock.sln
blank.png
buildresources.bat
largetile.png
packages.config
readme.md
smalltile.png
translations.txt

readme.md

Code for Bedside Clock Windows Phone App

This repository holds the code for Bedside Clock Windows Phone App.

This was originally a project just for me to learn about developing for Windows Phone, and to replace the better built-in clock I was missing from my Android phone. You can probably tell this with some of the slightly gratuitous features I added (phase of the moon calculations anyone?)

It's done reasonably well at the App Store with around 13,000 downloads as of February 2013. However, I'm getting rid of my Windows Phone so I thought I'd donate the code to the community in case anyone was interested in developing further.

The Code

Hopefully the code is pretty self-explanatory, and should be able to be built out of the box using Visual Studio 2012 with the appropriate Windows Phone 8 SDKs installed.

There are some xUnit.net unit tests I added, so obviously to run those you'll need to install the appropriate test runner executables.

Configuration

Somewhat painfully, it's not very easy to hold config values in a Windows Phone app (why no support for app.config?), so there is one setting hard-coded into the code that should bechanged if you adapt the code.

The value is the yahooApiKey used in YahooLocationServices.cs that does the address lookup. If reusing this code, please use your own API key from http://developer.apps.yahoo.com/. Thanks!

Screenshots and icons

The icons and images used on the app store are all in the /Screenshots directory. As you can see, I am definitely no artist, and the app icon is particularly ugly. Anyone who would like to improve this, feel free!

Credits