Widget: Sunrise Sunset

Former Member
Former Member
https://apps.garmin.com/en-US/apps/97352d10-5316-4e9c-8399-288228d3dcb2

Just uploaded and approved. Only tested in simulator so far, if anyone wants to test on a real device I'd be happy to hear how it looks and works.

The code is also available, with sunrise equation based on wikipedia

https://github.com/tradespoke/SunriseSunset/blob/master/source/SunriseEquation.mc
  • Former Member
    Former Member over 10 years ago
    Good morning can make the same thing for tides?
  • Hi Only just got my Vivoactive and it's not yet currently set as my activity tracker (don't want to lose my steps from my vivosmart into GC for the day). Unsure if this is the cause but I just get the time with red text underneath saying "No Activity"
  • Former Member
    Former Member over 10 years ago
    Hi Only just got my Vivoactive and it's not yet currently set as my activity tracker (don't want to lose my steps from my vivosmart into GC for the day). Unsure if this is the cause but I just get the time with red text underneath saying "No Activity"


    Thanks for trying the widget. As the API works now there need to be an ongoing activity to base the sunrise/sunrise calculation on. If it says "No Activity" in red it means just that. I hope to find a better solution to this in the future.
  • Thanks for trying the widget. As the API works now there need to be an ongoing activity to base the sunrise/sunrise calculation on.

    What is it that requires an active activity? AFAICT, you can't access widgets while an activity is in progress.
  • Don't know about the F3 but the 920 has sunrise/sunset data fields

    Tides is really a tough one as there so location based , In my area Long Island Sound there different by hours in a distance of 30 miles

    My high end Marine GPS has thousands of tide and current locations
  • Former Member
    Former Member over 10 years ago
    I would think to get tidal data that makes sense you'd need to connect to a tidal station or other service? It cant be calculated by a location input
  • Former Member
    Former Member over 10 years ago
    What is it that requires an active activity? AFAICT, you can't access widgets while an activity is in progress.



    I also read that somewhere here but it might change in later versions. SDK 1.1 has a method to update a device location list with a special permission, no method to read position unless the POSITIONING permission is set today.
  • The VA has sunrise/sunset fields available whilst in an activity, so I don't need them then, but when just in normal watch mode it would be useful.
  • This seemed a great idea and I just installed onto my 920 but
    (a) The display seems way off for a 920. I can see "No activity" at bottom and what appears to the time of day half on the screen and half off at the top
    (b) When I was outside I got a GPS fix but nothing seemed to happen. I pressed back button and the watch did a power cycle crash. Did this several times.
    (c) As stated you can't access a Widget during an activity - well at least on a 920 so not sure how you ever hope this will work?
  • Former Member
    Former Member over 10 years ago
    This seemed a great idea and I just installed onto my 920 but


    Thanks for testing. I do apologize for the power cycle crash, perhaps I should have added a clearer warning "use at own risk on actual device". Some of the issues will be worked out in the next version.