Skip to content

Commit

Permalink
Modified for SDK 4.2. Fixed date string width issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoosee committed Mar 16, 2021
1 parent 90b9c91 commit 51af6f5
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 15 deletions.
10 changes: 5 additions & 5 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { units, locale, preferences } from "user-settings";
import { display } from "display";

import * as util from "../common/utils";
import * as myActivity from "components/activity";
import * as myClock from "components/clock";
import * as myHRM from "components/hrm";
import * as mySettings from "components/device-settings";
import * as myWeather from "components/weather"
import * as myActivity from "./components/activity";
import * as myClock from "./components/clock";
import * as myHRM from "./components/hrm";
import * as mySettings from "./components/device-settings";
import * as myWeather from "./components/weather"

/* -------- UI Components --------- */

Expand Down
2 changes: 1 addition & 1 deletion companion/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as mySettings from "companion-settings";
import * as mySettings from "./companion-settings";
import Weather from '../common/weather/companion';

let weather = new Weather;
Expand Down
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{
"devDependencies": {
"@fitbit/sdk": "~4.2.0"
},
"fitbit": {
"appUUID": "1faf9a7a-9edd-4998-b047-57c93dbd6a62",
"appType": "clockface",
"appDisplayName": "Obsidian",
"iconFile": "resources/icon.png",
"wipeColor": "#607d8b",
"wipeColor": "",
"requestedPermissions": [
"access_activity",
"access_user_profile",
"access_heart_rate",
"access_location",
"run_background",
"access_user_profile",
"access_internet"
"access_internet",
"run_background"
],
"buildTargets": [
"meson"
"meson",
"mira",
"gemini"
],
"i18n": {
"en": {
"en-US": {
"name": "Obsidian"
}
}
},
"defaultLanguage": "en-US"
}
}
28 changes: 28 additions & 0 deletions package.old.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"devDependencies": {
"@fitbit/sdk": "~4.2.0"
},
"fitbit": {
"appUUID": "1faf9a7a-9edd-4998-b047-57c93dbd6a62",
"appType": "clockface",
"appDisplayName": "Obsidian",
"iconFile": "resources/icon.png",
"wipeColor": "#607d8b",
"requestedPermissions": [
"access_activity",
"access_heart_rate",
"access_location",
"run_background",
"access_user_profile",
"access_internet"
],
"buildTargets": [
],
"i18n": {
"en-US": {
"name": "Obsidian"
}
},
"defaultLanguage": "en-US"
}
}
5 changes: 3 additions & 2 deletions resources/index.gui
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@
</use>
</svg>


<!-- Day of Week and Date -->
<text id="dateStr" x="77%" y="53%" font-size="24" font-family="Tungsten-Medium" class="dateText"
text-anchor="middle" text-length="6">-</text>
<text id="dateStr" x="77%" y="53%" font-size="25" font-family="Tungsten-Medium" class="dateText"
text-anchor="middle" text-length="8">-</text>

<!-- Clock hands mins, hours and seconds -->
<g id="mins" pointer-events="visible" transform="translate(50%,50%)">
Expand Down

0 comments on commit 51af6f5

Please sign in to comment.