diff --git a/README.md b/README.md index 4a2ee7a..0e7747b 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,7 @@ Find out more information on the ## License This example is licensed under the [MIT License](./LICENSE). + + +icon Location From: +https://upload.wikimedia.org/wikipedia/commons/thumb/9/90/Noun_project_1841.svg/1000px-Noun_project_1841.svg.png \ No newline at end of file diff --git a/app/index.js b/app/index.js index dd75ab3..f170403 100755 --- a/app/index.js +++ b/app/index.js @@ -8,14 +8,14 @@ var altitudeLabel = document.getElementById("altitude"); var pressureLabel = document.getElementById("pressure"); // Initialize the UI with some values -altitudeLabel.innerText = "-"; +altitudeLabel.text = "-"; // Create a new instance of the Barometer var bar = new Barometer(); bar.onreading = function() { - altitudeLabel.innerText = altitudeFromPressure(bar.pressure / 100) + " ft"; - pressureLabel.innerText = Math.round(bar.pressure / 100) + " hPa"; + altitudeLabel.text = Math.round(altitudeFromPressure(bar.pressure / 100)*100)/100 + " ft"; + pressureLabel.text = Math.round(bar.pressure / 100) + " hPa"; } // Begin monitoring the sensor diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..7af8682 --- /dev/null +++ b/manifest.json @@ -0,0 +1 @@ +{"appManifestVersion":1,"main":"app/index.js","svgMain":"resources/index.gui","svgWidgets":"resources/widgets.gui","appType":"app","i18n":{"en":{"name":"Altimeter"}},"buildId":"0x0ab90f121979b2ad","uuid":"0cb04f31-513b-4afe-9bea-3c6eb955f583","name":"Altimeter","bundleDate":"2018-01-01T17:01:16.275Z","requestedPermissions":[],"wipeColor":"#03a9f4"} \ No newline at end of file diff --git a/package.json b/package.json index 8593459..56f1131 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,15 @@ { "fitbit": { + "appUUID": "0cb04f31-513b-4afe-9bea-3c6eb955f583", "appType": "app", "appDisplayName": "Altimeter", - "wipeColor": "#03a9f4" + "iconFile": "resources/icon.png", + "wipeColor": "#03a9f4", + "requestedPermissions": [], + "i18n": { + "en": { + "name": "Altimeter" + } + } } } \ No newline at end of file diff --git a/resources/icon.png b/resources/icon.png new file mode 100644 index 0000000..2d8ff4b Binary files /dev/null and b/resources/icon.png differ diff --git a/resources/index.gui b/resources/index.gui index 267cb24..23032e8 100755 --- a/resources/index.gui +++ b/resources/index.gui @@ -1,4 +1,6 @@ - altitude - pressure + Pressure altitude + - + Pressure + - \ No newline at end of file diff --git a/resources/styles.css b/resources/styles.css index 842d2bb..deaecde 100755 --- a/resources/styles.css +++ b/resources/styles.css @@ -4,16 +4,25 @@ svg { .large-value { font-family: Seville-Book; - font-size: 120; + font-size: 64; fill: fb-blue; width: 100%; text-anchor: middle; + text-length: 32; + } .small-value { font-family: Seville-Book; - font-size: 64; + font-size: 44; fill: fb-white; width: 100%; text-anchor: middle; + text-length: 32; } + +.label { + font-family: System-Regular; + fill: white; + text-anchor: middle; +} \ No newline at end of file