Widget: UV-Index

This thread is for questions regarding my widget UV-Index



Please post any issues, questions and / or suggestions here and I will try to assist as best I can.
  • App Settings

    UV-Index widget offers app settings. There you can enable coloring of UV-values. A thread showing how to configure settings can be found here.

    There seems to be a bug in GCM iOS currently, that causes settings to be reset when you update any app/widget/watchface to a new version using GCM on iOS. If you use GCM android or Garmin Express, you should be ok. If you update with GCM iOS you need to redo your settings - that's not so great. Sorry for that. I hope that the GCM iOS team will address this issue soon.
  • Frequently Times Out

    Really like the idea of this widget. My current problem is that it frequently times out when trying to retrieve UV-index. I've tried a dozen times over the past two days, but was only able to get it to work once. Is there some trick to get it to work more reliably? (My phone is always on my persons when trying out the widget.)
  • Really like the idea of this widget. My current problem is that it frequently times out when trying to retrieve UV-index. I've tried a dozen times over the past two days, but was only able to get it to work once. Is there some trick to get it to work more reliably? (My phone is always on my persons when trying out the widget.)


    Thanks for your feedback. Which device are you using?
    Please be aware that UV-Index widget relies on a GPS-fix. Until you get a fix with a good enough position, you will see the message "Retrieving ...". If it takes too long to get a fix, your watch OS will automatically unload the widget before it has a chance to query the UVI-data. That could be one reason. The second reason could be a poor internet connection. If this would be the case, you should see the message "Error: ..." before the widget dies.
  • Which device are you using?


    I'm using a Forerunner 920XT.

    I just tried it again. I went to the run activity to make sure there was a good GPS signal (I had 5 green bars). I then went to UV-Index, where I had to toggle the backlight twice so that the watch wouldn't unload the widget, but did eventually get the "Error..." message. I then without moving tried it a a second time and it worked immediately. My phone had ~3 bars of WiFi.

    I don't know if it's possible or if you would be willing, but is it possible to maybe cache the UV information? I'm thinking of the use case where I'm still in the roughly same geographic area (as determined by GPS), but maybe the data connection isn't reliable, then the widget could show the UV-index it had cached.
  • I don't know if it's possible or if you would be willing, but is it possible to maybe cache the UV information? I'm thinking of the use case where I'm still in the roughly same geographic area (as determined by GPS), but maybe the data connection isn't reliable, then the widget could show the UV-index it had cached.


    That looks to me as you have instabilities with your internet connection. Regarding caching, I got already request from other users and it's on my list. However, it requires some UI rework so that users understand what they see. Stay tuned and thanks for using my widget.
  • Former Member
    Former Member over 7 years ago
    Does this work with Windows 10 Mobile

    As you might be away the phone to watch connection using Window 10 Mobile is very unreliable. That said, I can get (at times) all other widgets to retrieve data from the phone except for this one. On the store site under "requirements" it lists a companion app (iOS and Android only). Is this required for the widget to work (it is not made clear)? If not, can anyone else confirm if they have this working using W10M?
  • As you might be away the phone to watch connection using Window 10 Mobile is very unreliable. That said, I can get (at times) all other widgets to retrieve data from the phone except for this one. On the store site under "requirements" it lists a companion app (iOS and Android only). Is this required for the widget to work (it is not made clear)? If not, can anyone else confirm if they have this working using W10M?


    UV-Index uses Garmin Connect Mobile as a proxy to the web. A JSON call is sent using the API-function makeWebRequest(), thus GCM is required on the phone as companion app.
  • Former Member
    Former Member over 7 years ago
    UV-Index uses Garmin Connect Mobile as a proxy to the web. A JSON call is sent using the API-function makeWebRequest(), thus GCM is required on the phone as companion app.


    Wooops. I did not click on the Companion App links to Play Store or Apple Store to see it was talking about CGM, I did click on the link (http://uvimate.herokuapp.com/uvindex-api) on the Widget's store page which shows another app. I assume this is not needed to function.
  • Former Member
    Former Member over 6 years ago
    Could you also add in the watch Widget (Fenix 5s) the possibility to Show the current Ozon?
  • Could you also add in the watch Widget (Fenix 5s) the possibility to Show the current Ozon?



    The ozone layer thickness is used by the app to calculate the UVI. It’s a major factor for the UVI and can cause changes by more than 20% from day to day with same weather and same location. However, this value has nothing to do with the ozon value measured at the earth surface In contrast to the ozon layer thickness I do not have high quality global data for ground level ozon. Thus it’s difficult as of now to implement your requirement.