Skip to content

Commit 8961e66

Browse files
committed
Remove support for Edge 530 and vívoactive HR
1 parent b8c27ed commit 8961e66

File tree

9 files changed

+18
-33
lines changed

9 files changed

+18
-33
lines changed

Source/SmartBikeLights

Submodule SmartBikeLights updated 30 files

Source/manifest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<iq:product id="edge1030bontrager"/>
1313
<iq:product id="edge1030plus"/>
1414
<iq:product id="edge520plus"/>
15-
<iq:product id="edge530"/>
1615
<iq:product id="edge820"/>
1716
<iq:product id="edge830"/>
1817
<iq:product id="edge_1000"/>
@@ -60,7 +59,6 @@
6059
<iq:product id="vivoactive3mlte"/>
6160
<iq:product id="vivoactive4"/>
6261
<iq:product id="vivoactive4s"/>
63-
<iq:product id="vivoactive_hr"/>
6462
</iq:products>
6563
<iq:permissions>
6664
<iq:uses-permission id="Positioning"/>

Source/monkey.jungle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project.manifest = manifest.xml
2-
#excludeBase=deviceNetwork;polygons;dataField
3-
excludeBase=testNetwork;polygons;dataField
2+
#excludeBase=deviceNetwork;polygons;dataField;monochromeScreen
3+
excludeBase=testNetwork;polygons;dataField;monochromeScreen
44

55
base.sourcePath = source;SmartBikeLights/Source/SmartBikeLights/source-common
66

@@ -16,6 +16,5 @@ base.excludeAnnotations = $(rectangle.excludeAnnotations)
1616
# Rectangle non touch screen devices
1717
edge_520.excludeAnnotations = $(rectangleNonTouchScreen)
1818
edge520plus.excludeAnnotations = $(rectangleNonTouchScreen)
19-
edge530.excludeAnnotations = $(rectangleNonTouchScreen)
2019
venusq.excludeAnnotations = $(rectangleNonTouchScreen)
2120
venusqm.excludeAnnotations = $(rectangleNonTouchScreen)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<resources>
2-
<!-- Format [[:colorScreen:, :titleFont:, :titleFontTopPadding:, :displayOffsetX:]
3-
:colorScreen: = true / false
2+
<!-- Format [[:separatorWidth:, :titleFont:, :titleFontTopPadding:, :displayOffsetX:]
3+
:separatorWidth: = Number
44
:titleFont: = 0-8
55
:titleFontTopPadding: = Number
66
:displayOffsetX: = Number
77
-->
8-
<jsonData id="Settings">[true, 2, 0, 0]</jsonData>
8+
<jsonData id="Settings">[2, 2, 0, 0]</jsonData>
99
<!-- Simulator -->
1010
<jsonData id="FontTopPaddings">[290495474803212675]</jsonData>
1111
</resources>

Source/resources-rectangle-240x400/data.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<resources>
2-
<!-- Format [[:colorScreen:, :titleFont:, :titleFontTopPadding:]
3-
:colorScreen: = true / false
2+
<!-- Format [[:separatorWidth:, :titleFont:, :titleFontTopPadding:]
3+
:separatorWidth: = Number
44
:titleFont: = 0-8
55
:titleFontTopPadding: = Number
66
:displayOffsetX: = Number
77
-->
8-
<jsonData id="Settings">[true, 2, 2, 0]</jsonData>
8+
<jsonData id="Settings">[2, 2, 2, 0]</jsonData>
99
<!-- Simulator
1010
<jsonData id="FontTopPaddings">[290495474803212675]</jsonData> -->
1111
<!-- Device -->

Source/resources-rectangle-246x322/data.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<resources>
2-
<!-- Format [[:colorScreen:, :titleFont:, :titleFontTopPadding:, :displayOffsetX:]
3-
:colorScreen: = true / false
2+
<!-- Format [[:separatorWidth:, :titleFont:, :titleFontTopPadding:, :displayOffsetX:]
3+
:separatorWidth: = Number
44
:titleFont: = 0-8
55
:titleFontTopPadding: = Number
66
:displayOffsetX: = Number
77
-->
8-
<jsonData id="Settings">[true, 2, 5, 0]</jsonData>
8+
<jsonData id="Settings">[2, 2, 5, 0]</jsonData>
99
<!-- Simulator -->
1010
<jsonData id="FontTopPaddings">[434610663688585732]</jsonData>
1111
</resources>

Source/resources/data.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<resources>
2-
<!-- Format [[:colorScreen:, :titleFont:, :titleFontTopPadding:]
3-
:colorScreen: = true / false
2+
<!-- Format [[:separatorWidth:, :titleFont:, :titleFontTopPadding:]
3+
:separatorWidth: = Number
44
:titleFont: = 0-8
55
:titleFontTopPadding: = Number
66
:displayOffsetX: = Number
77
-->
8-
<jsonData id="Settings">[true, 2, 0, 0]</jsonData>
8+
<jsonData id="Settings">[2, 2, 0, 0]</jsonData>
99
<jsonData id="FontTopPaddings">[0]</jsonData>
1010
</resources>

Source/source/BikeLightsControlView.mc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ class BikeLightsControlView extends BikeLightsView {
6767
function onPosition(info) {
6868
var position = info.position.toDegrees();
6969
var time = Gregorian.utcInfo(Time.now(), Time.FORMAT_SHORT);
70-
var jd = getJD(time.year, time.month, time.day);
71-
_sunriseTime = getSunriseSet(true, jd, position);
72-
_sunsetTime = getSunriseSet(false, jd, position);
70+
_sunriseTime = getSunriseSet(true, time, position);
71+
_sunsetTime = getSunriseSet(false, time, position);
7372
WatchUi.requestUpdate();
7473
}
7574

@@ -237,7 +236,7 @@ class BikeLightsControlView extends BikeLightsView {
237236
protected function preCalculate(dc, width, height) {
238237
var padding = 3;
239238
var settings = WatchUi.loadResource(Rez.JsonData.Settings);
240-
_monochrome = !settings[0];
239+
_separatorWidth = settings[0];
241240
_titleFont = settings[1];
242241
_titleTopPadding = settings[2];
243242
_offsetX = 0;

0 commit comments

Comments
 (0)