Let me make the app first, then we'll go further.
BTW ,calculations of sunrise/sunset times are easy. I have it done in Javascript. Might be rather easy to do in C++. All you need is latitude and longitude.