Weather.getCurrentConditions() on D2 Deltas

Hi - I have put together a watchface that uses Weather.getCurrentConditions() and shows related weather info like temp, wind direction/speed - works just fine on the MARQ sim (on both SDK 3.1 and 3.2). However, the highest SDK I can choose in the Manifest xml to serve the D2 Deltas is 3.1, When I do that and run my watchface, the compilation chokes on Weather.getCurrentConditions(), saying:

Error: Symbol Not Found Error
Details: Failed invoking <symbol>
Stack:
- onUpdate() at [...]\View.mc:47 0x1000010a

That line is where I invoke Weather.getCurrentConditions() - again, it works on Marq, but not on any D2 (except on the new D2 Air, of course).

Of course it's also only now that I realize that the whole Weather class is actually marked as "since 3.2"..?
Garmin cannot seriously have excluded watches they still sell from displaying weather information, or what am I missing here..??

  • Try using

    if(Toybox has :Weather)

    to see if weather is available.

    You can do this once in initialize and set a Boolean, and later on just check the Boolean.

  • Thanks, that'll sure do the trick to prevent runtime errors from runtime errors - but so is that weather class really that new that it's not supported by e.g. the entire D2 series (except the new D2 Air)..? I'm pretty sure I had watch faces (both Garmin's and third party devs) that showed some weather bits and pieces. 

  • Prior to 3.2, CIQ watch faces got weather data by doing a makeWebRequest to something like Open Weather Maps.

    The Weather module is only available on devices that run CIQ 3.2.  The D@ devices are running CIQ 3.1, with the new D2 Air being the exception (it's also amoled like the Venu, where you have to prevent burnin for an always on display)

  • I see, thanks! I'm definitely surprised that it took Garmin 3+ major SDKs to make such basic stuff (from end users' perspective) available to developers. I'm looking forward to that upcoming developer conference... hopefully they surprise us with a new SDK and OS updates across the board with support for it... that would be a nice welcome for a newbie like me :)