Permalink
Browse files

Power mode

  • Loading branch information...
simonmacmullen committed Apr 27, 2015
1 parent 0350997 commit a29752cd314164452131658e2da2b13d282ee88c
Showing with 35 additions and 0 deletions.
  1. +18 −0 modes/power/manifest.xml
  2. +14 −0 modes/power/mode.mc
  3. +3 −0 modes/power/strings.xml
View
@@ -0,0 +1,18 @@
<iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="1">
<iq:application entry="ChartDataFieldApp" id="758b0ae7f7d944aeb1fed7b1f0e03347" launcherIcon="LauncherIcon" name="AppName" type="datafield">
<iq:products>
<iq:product id="fenix3"/>
<iq:product id="vivoactive"/>
<iq:product id="fr920xt"/>
<iq:product id="epix"/>
</iq:products>
<iq:permissions>
</iq:permissions>
<iq:languages>
</iq:languages>
</iq:application>
</iq:manifest>
View
@@ -0,0 +1,14 @@
// -*- mode: Javascript;-*-
class Mode extends BaseMode {
function configure() {
// label, color, min vertical range, ignore SD
return ["POWER", Graphics.COLOR_ORANGE, 30, null];
}
function compute(activityInfo) {
return activityInfo.currentPower;
}
}
var mode = new Mode();
View
@@ -0,0 +1,3 @@
<resources>
<string id="AppName">Power Chart</string>
</resources>

0 comments on commit a29752c

Please sign in to comment.