hrm - autotranslate strings
parent
db38c19701
commit
fb721b00a7
|
|
@ -8,3 +8,4 @@
|
||||||
0.08: Don't force backlight on/watch unlocked on Bangle 2
|
0.08: Don't force backlight on/watch unlocked on Bangle 2
|
||||||
0.09: Grey out BPM until confidence is over 50%
|
0.09: Grey out BPM until confidence is over 50%
|
||||||
0.10: Autoscale raw graph to maximum value seen
|
0.10: Autoscale raw graph to maximum value seen
|
||||||
|
0.11: Automatic translation of strings.
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ function updateHrm(){
|
||||||
var px = g.getWidth()/2;
|
var px = g.getWidth()/2;
|
||||||
g.setFontAlign(0,-1);
|
g.setFontAlign(0,-1);
|
||||||
g.clearRect(0,24,g.getWidth(),80);
|
g.clearRect(0,24,g.getWidth(),80);
|
||||||
g.setFont("6x8").drawString("Confidence "+(hrmInfo.confidence || "--")+"%", px, 70);
|
g.setFont("6x8").drawString(/*LANG*/"Confidence "+(hrmInfo.confidence || "--")+"%", px, 70);
|
||||||
|
|
||||||
updateScale();
|
updateScale();
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@ function updateHrm(){
|
||||||
g.setFontVector(40).setColor(hrmInfo.confidence > 50 ? g.theme.fg : "#888").drawString(str,px,45);
|
g.setFontVector(40).setColor(hrmInfo.confidence > 50 ? g.theme.fg : "#888").drawString(str,px,45);
|
||||||
px += g.stringWidth(str)/2;
|
px += g.stringWidth(str)/2;
|
||||||
g.setFont("6x8").setColor(g.theme.fg);
|
g.setFont("6x8").setColor(g.theme.fg);
|
||||||
g.drawString("BPM",px+15,45);
|
g.drawString(/*LANG*/"BPM",px+15,45);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateScale(){
|
function updateScale(){
|
||||||
|
|
@ -101,7 +101,7 @@ Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
g.setColor(g.theme.fg);
|
g.setColor(g.theme.fg);
|
||||||
g.reset().setFont("6x8",2).setFontAlign(0,-1);
|
g.reset().setFont("6x8",2).setFontAlign(0,-1);
|
||||||
g.drawString("Please wait...",g.getWidth()/2,g.getHeight()/2 - 16);
|
g.drawString(/*LANG*/"Please wait...",g.getWidth()/2,g.getHeight()/2 - 16);
|
||||||
countDown();
|
countDown();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "hrm",
|
"id": "hrm",
|
||||||
"name": "Heart Rate Monitor",
|
"name": "Heart Rate Monitor",
|
||||||
"version": "0.10",
|
"version": "0.11",
|
||||||
"description": "Measure your heart rate and see live sensor data",
|
"description": "Measure your heart rate and see live sensor data",
|
||||||
"icon": "heartrate.png",
|
"icon": "heartrate.png",
|
||||||
"tags": "health",
|
"tags": "health",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue