Help app works in simulator not on watch

Former Member
Former Member
I have a widget for my 920XT which pulls weather data from weather underground. It was working fine before the last update on the garmin. Now the widget works perfectly in the simulator, but seems to stall somewhere near the makeWebRequest call and never returns. I can't see an easy way to debug this on the watch and it works fine in the simulator.

Can anyone give me some guidance on how to go about finding the problem?

Thanks for any help,
Jason
  • Post the line where you make the request. Are you using makeWebRequest or makeJsonRequest? HTTP or HTTPS? (if it's makeWebRequest(), just change it to makeJsonRequest() )

    Though I don't support the 920, I do have a WU widget that works on most other devices (Just not the 920 or Epix), using both lat/lon or a station name to make calls, and I can try the exact call you use.
  • I did a quick update to the app store and added 920 support
    https://apps.garmin.com/en-US/apps/f509fc4e-7f1f-48a5-b337-ed86668c5f6c
    if you want to try it and see if it works on the 920, it's there.

    You have an API key already, and with this one, you configure it using settings on your phone or Garmin Express, and you can also set your current weather station and skip starting up GPS.

    I do conditions and astronomy data. Trying to do the forecast request required too much memory for the response on 1.x devices like the 920. Are you by any chance trying to get forecast info?
  • Former Member
    Former Member over 8 years ago
    That's it!

    OK, sometimes it's something so simple you don't see it. I was making two WU calls, and I had switched one to makeWebRequest, but the other was makeJsonRequest. Changing them both to makeJsonRequest fixed my problem.

    But I don't understand, because the documentation says that mskeJsonRequest is deprecated and that you should use makeWebRequest. Is that because SDK 1.3x still needs to use JsonRequest?

    Your app is very nice by the way! And I love that you've incorporated the settings screen to configure it. I built this only for myself, so I just hard-coded the config.
  • Former Member
    Former Member over 8 years ago
    Post the line where you make the request. Are you using makeWebRequest or makeJsonRequest? HTTP or HTTPS? (if it's makeWebRequest(), just change it to makeJsonRequest() )

    Though I don't support the 920, I do have a WU widget that works on most other devices (Just not the 920 or Epix), using both lat/lon or a station name to make calls, and I can try the exact call you use.




    That was it! I had mWR on one of my two calls and mJR on the other. So I changed them both to mJR and it now works. But I thought mJR was deprecated? Clearly you still need to use it on older 1.3x SDK devices?

    Your weather underground app is really nice by the way! I like how you incorporated the settings page. I just built mine for myself, so I hard-coded everything.

    Thanks so much for leading me in the right direction!