Class: Toybox.ActivityMonitor.Info calories is not supported for FENIX 5S.

FENIX 5S  is the only watch that doesn"t support calories

Even the old EPIX support it

Very very curious, and why

Didier

  • How do you mean "not supported"?

    If you use ActivityMonitor.getInfo().calories is it just always 0, or do you get an error?

    If You have Activity Monitoring turned off on the device (System.getDeviceSettings().activityTrackingOn is false) you'll get 0 and it won't change

    (Settings>Activity Tracking in the sim)

    Having this off really doesn't seem that common, but it does happen, and it impacts other things like steps, the move bar, etc.  Basically everything in ActivityMonitor.

  • It's in a watch face.

    When you call this function

    function FctCalories(quoi)  {
                var TActivityMonitor=ActivityMonitor.getInfo();
               
                if (TActivityMonitor!=null) {           
                  
                                var calories=(TActivityMonitor.calories != null) ? TActivityMonitor.calories : 0 ;
                                        if (quoi==0) {     return calories; }
                                        else { 
                                            return GetUserProfil(calories,0); 

                                        }
                }
                else {return 0;}

    }

    Error: Symbol Not Found Error
    Details: Could not find symbol 'calories'
    Stack:
    - FctCalories() at C:\Users\Parents\workspace\WF4CONEW\source\GenView.mc:4078 0x10009560
    - AppelCalories() at C:\Users\Parents\workspace\WF4CONEW\source\GenView.mc:4097 0x100095e9

    --------------------------

    Now I check with this for F5s and all is good

     function FctCalories(quoi)  {
                var TActivityMonitor=ActivityMonitor.getInfo();
     
                if (TActivityMonitor!=null) {           
                        if (TActivityMonitor has :calories ) {
                                var calories=(TActivityMonitor.calories != null) ?  ActivityMonitor.getInfo().calories : 0 ;
                                        if (quoi==0) {     return calories; }
                                        else { 
                                            return GetUserProfil(calories,0); 

                                        }
                        }
                        else {return 0;}
                }
                else {return 0;}

    }
    --------------------------
    In documentation all watches are supported but not FENIX 5S

    var calories ⇒ Toybox.Lang.Number

    The calories burned so far for the current day in kilocalories (kCal). Value may be null.

    Since:

    1.0.0

    Supported Devices:

    [Hide devices]
    • Approach® S60
    • Approach® S62
    • Captain Marvel
    • D2Tm Air
    • D2Tm Bravo
    • D2Tm Bravo Titanium
    • D2Tm Charlie
    • D2Tm Delta
    • D2Tm Delta PX
    • D2Tm Delta S
    • Darth VaderTm
    • DescentTm Mk1
    • epixTm
    • fēnix® 3 / tactix® Bravo / quatix® 3
    • fēnix® 3 HR
    • fēnix® 5 / quatix® 5
    • fēnix® 5 Plus
    • fēnix® 5S Plus
    • fēnix® 5X / tactix® Charlie
    • fēnix® 5X Plus
    • fēnix® 6 / 6 Solar / 6 Dual Power
    • fēnix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6
    • fēnix® 6S / 6S Solar / 6S Dual Power
    • fēnix® 6S Pro / 6S Sapphire / 6S Pro Solar / 6S Pro Dual Power
    • fēnix® 6X Pro / 6X Sapphire / 6X Pro Solar / tactix® Delta Sapphire / Delta Solar / Delta Solar - Ballistics Edition / quatix® 6X / 6X Solar / 6X Dual Power
    • fēnix® Chronos
    • First Avenger
    • Forerunner® 230
    • Forerunner® 235
    • Forerunner® 245
    • Forerunner® 245 Music
    • Forerunner® 630
    • Forerunner® 645
    • Forerunner® 645 Music
    • Forerunner® 735xt
    • Forerunner® 745
    • Forerunner® 920XT
    • Forerunner® 935
    • Forerunner® 945
    • MARQTm Adventurer
    • MARQTm Athlete
    • MARQTm Aviator
    • MARQ® Captain / MARQ® Captain: American Magic Edition
    • MARQTm Commander
    • MARQTm Driver
    • MARQTm Expedition
    • MARQTm Golfer
    • ReyTm
    • VenuTm
    • VenuTm Mercedes-Benz® Collection
    • Venu® Sq
    • Venu® Sq. Music Edition
    • vívoactive®
    • vívoactive® 3
    • vívoactive® 3 Mercedes-Benz® Collection
    • vívoactive® 3 Music
    • vívoactive® 3 Music LTE
    • vívoactive® 4
    • vívoactive® 4S
    • vívoactive® HR
  • Sounds like a bug in the SDK or Devices.

    You want to do a bug report in the CIQ bug report forum.