diff --git a/CHANGELOG.md b/CHANGELOG.md index a815031..b285d66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,37 +4,32 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Version 1.5.2 +## Version 1.6 ### Added -- SDK5 support +- Added active zone minutes -### Changed -- Updated workflows +## Version 1.5 -## Version 1.5.1 +### Added +- Added color settings +- SDK5 support ### Changed - Updated fonts and SDK version +- Updated workflows -## Version 1.5.0 +## Version 1.4 ### Added -- Added color settings - -## Version 1.4.1 +- Activity info settings +- Colored icons ### Changed - Added touch event to hide appointment - Deactivated timer for activity update - Updated documentation -## Version 1.4.0 - -### Added -- Activity info settings -- Colored icons - ## Version 1.3 ### Added diff --git a/README.md b/README.md index 79063f4..bea0f1a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![](https://img.shields.io/badge/Fitbit%20App%20Gallery-%2300B0B9?style=flat&logo=fitbit&logoColor=white)](https://gallery.fitbit.com/details/ae441b73-2660-407f-b796-a98d1d0583a0) ![languages](https://img.shields.io/badge/languages-JavaScript%20|%20CSS-blue) ![platform](https://img.shields.io/badge/platforms-Ionic%20|%20Versa%20|%20Versa%202%20|%20Versa%20Lite%20|%20Versa%203%20|%20Sense-silver) -[![version](https://img.shields.io/badge/version-%201.5.2-blue)](https://github.com/smirko-dev/fitbit-clockface/blob/master/CHANGELOG.md) +[![version](https://img.shields.io/badge/version-%201.6-blue)](https://github.com/smirko-dev/fitbit-clockface/blob/master/CHANGELOG.md) [![](https://img.shields.io/badge/license-MIT-blue)](https://github.com/smirko-dev/fitbit-clockface/blob/master/LICENSE) [![FitbitBuild Actions Status](https://github.com/smirko-dev/fitbit-clockface/workflows/FitbitBuild/badge.svg)](https://github.com/smirko-dev/fitbit-clockface/actions) [![CodeQL Actions Status](https://github.com/smirko-dev/fitbit-clockface/workflows/CodeQL/badge.svg)](https://github.com/smirko-dev/fitbit-clockface/actions) diff --git a/app/index.js b/app/index.js index 27644cb..38acb15 100644 --- a/app/index.js +++ b/app/index.js @@ -159,6 +159,9 @@ function updateActivity() { else if (settings.activity === 'calories') { activityLabel.text = today.adjusted.calories; } + else if (settings.activity === 'azm') { + activityLabel.text = today.adjusted.activeZoneMinutes.total || 0; + } else { activityLabel.text = today.adjusted.steps; } diff --git a/package.sdk4.json b/package.sdk4.json index 900f7ff..4408618 100644 --- a/package.sdk4.json +++ b/package.sdk4.json @@ -1,6 +1,6 @@ { "name": "compactclock", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "devDependencies": { "@fitbit/sdk": "~4.3.0", diff --git a/package.sdk5.json b/package.sdk5.json index bff0e8b..6d4f91f 100644 --- a/package.sdk5.json +++ b/package.sdk5.json @@ -1,6 +1,6 @@ { "name": "compactclock", - "version": "1.5.2", + "version": "1.6.1", "license": "MIT", "devDependencies": { "@fitbit/sdk": "~5.0.0", diff --git a/resources/azm.png b/resources/azm.png new file mode 100644 index 0000000..d93ceea --- /dev/null +++ b/resources/azm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51d4b1825b8d36b79077970e8fba10bc5d8bf7981007011782b62ba57a8119c3 +size 7106 diff --git a/settings/i18n/de-DE.po b/settings/i18n/de-DE.po index 957f850..bf6dc7b 100644 --- a/settings/i18n/de-DE.po +++ b/settings/i18n/de-DE.po @@ -5,7 +5,7 @@ msgstr "Aktivitäts-Info" msgid "steps" msgstr "Schritte" -msgid "cal" +msgid "calories" msgstr "Kalorien" msgid "dist" @@ -13,3 +13,6 @@ msgstr "Distanz" msgid "floors" msgstr "Etagen" + +msgid "azm" +msgstr "Active Zone Minutes" diff --git a/settings/i18n/en-US.po b/settings/i18n/en-US.po index 2e0e706..1dfb1a9 100644 --- a/settings/i18n/en-US.po +++ b/settings/i18n/en-US.po @@ -5,7 +5,7 @@ msgstr "Activity info" msgid "steps" msgstr "Steps" -msgid "cal" +msgid "calories" msgstr "Calories" msgid "dist" @@ -13,3 +13,6 @@ msgstr "Distance" msgid "floors" msgstr "Floors" + +msgid "azm" +msgstr "Active Zone Minutes" diff --git a/settings/i18n/ru-RU.po b/settings/i18n/ru-RU.po index 5dbc05d..892edde 100644 --- a/settings/i18n/ru-RU.po +++ b/settings/i18n/ru-RU.po @@ -5,7 +5,7 @@ msgstr "Инфо о деятельности" msgid "steps" msgstr "Шаги" -msgid "cal" +msgid "calories" msgstr "Калорий" msgid "dist" @@ -13,3 +13,6 @@ msgstr "Расстояние" msgid "floors" msgstr "Полы" + +msgid "azm" +msgstr "Active Zone Minutes" diff --git a/settings/index.jsx b/settings/index.jsx index 691e4f5..0383aef 100644 --- a/settings/index.jsx +++ b/settings/index.jsx @@ -6,7 +6,8 @@ function settingsFunc(props) { let steps = gettext("steps"); let dist = gettext("dist"); let floors = gettext("floors"); - let cal = gettext("cal"); + let calories = gettext("calories"); + let azm = gettext("azm"); return (
@@ -17,7 +18,8 @@ function settingsFunc(props) { { name: `${steps}`, value: 'steps' }, { name: `${dist}`, value: 'distance' }, { name: `${floors}`, value: 'floors' }, - { name: `${cal}`, value: 'calories' } + { name: `${calories}`, value: 'calories' }, + { name: `${azm}`, value: 'azm' }, ]} onSelection={(value) => console.log(value)} />