• I have tested a bit:

    • Seems to work fine on dark theme, light theme needs dark fonts and light background arc for the zones.
    • On my daily driver bangle the pulse number jumped to the top left and number stacked on each other. That must have been something other installed, on my other bangle that was not the case.
    • I still get an error when there are no settings:

      Uncaught Error: Cannot read property 'min' of undefined
      at line 3 col 292 in run_karvonnen
      ...or",20);}let minhr=hrmSettings.min;let maxhr=hrmSettings.max;function calc...
                                              ^
      in function "show" called from line 38 col 216 in run.app.js
      ...(settings.HRM,exs.stats.bpm);}
      
  • Thanks, shouldn't the HRM key added to line 23 below have taken care of missing hrm settings?

    let settings = Object.assign({ 
       record: true, 
       B1: "dist", 
       B2: "time", 
       B3: "pacea", 
       B4: "bpm", 
       B5: "step", 
       B6: "caden", 
       paceLength: 1000, 
       notify: { 
         dist: { 
           value: 0, 
           notifications: [], 
         }, 
         step: { 
           value: 0, 
           notifications: [], 
         }, 
         time: { 
           value: 0, 
           notifications: [], 
         }, 
         HRM: { 
           min: 65, 
           max: 170, 
         } 
       }, 
     }, require("Storage").readJSON("run.json­", 1) || {});
    

    (https://github.com/thyttan/BangleApps/bl­ob/karvonnen/apps/run/app.js)

    The other stuff I should be able to sort out tomorrow.

About

Avatar for Ganblejs @Ganblejs started