Skip to content

Commit

Permalink
add new devices& mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pohl committed Oct 12, 2023
1 parent 314256f commit bc124e5
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,11 @@ class DeviceProfile extends AbstractEnum
const APPLE_IPHONE_15_PRO = 646;
const APPLE_IPHONE_15_PRO_MAX = 647;
const APPLE_IPHONE_15_PLUS = 648;
const POLAR_VANTAGE_V_3 = 649;
const GARMIN_TACTIX_7_AMOLED = 650;
const GARMIN_MARQ_COMMANDER_2_CARBON = 651;
const GARMIN_VENU_3_S = 652;
const GARMIN_VIVO_MOVE_TREND = 653;

public static function getSlugs(): array
{
Expand Down
32 changes: 32 additions & 0 deletions src/Device/GarminMarqCommander2Carbon.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminMarqCommander2Carbon extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::GARMIN_MARQ_COMMANDER_2_CARBON;
}

public function getName(): string
{
return 'MARQ Commander (Gen 2) Carbon';
}

public function hasBarometer(): bool
{
return true;
}
}
32 changes: 32 additions & 0 deletions src/Device/GarminTactix7Amoled.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminTactix7Amoled extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::GARMIN_TACTIX_7_AMOLED;
}

public function getName(): string
{
return 'Tactix 7 Amoled';
}

public function hasBarometer(): bool
{
return true;
}
}
2 changes: 1 addition & 1 deletion src/Device/GarminVenu3.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getEnum(): int

public function getName(): string
{
return 'Venu 3(S)';
return 'Venu 3';
}

public function hasBarometer(): bool
Expand Down
32 changes: 32 additions & 0 deletions src/Device/GarminVenu3S.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminVenu3S extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::GARMIN_VENU_3_S;
}

public function getName(): string
{
return 'Venu 3 S';
}

public function hasBarometer(): bool
{
return true;
}
}
32 changes: 32 additions & 0 deletions src/Device/GarminVivoMoveTrend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminVivoMoveTrend extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::GARMIN_VIVO_MOVE_TREND;
}

public function getName(): string
{
return 'vívomove Trend';
}

public function hasBarometer(): bool
{
return true;
}
}
32 changes: 32 additions & 0 deletions src/Device/PolarVantageV3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class PolarVantageV3 extends AbstractDevice
{
use PolarDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::POLAR_VANTAGE_V_3;
}

public function getName(): string
{
return 'Vantage V3';
}

public function hasBarometer(): bool
{
return true;
}
}
4 changes: 4 additions & 0 deletions src/Distributor/Garmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ public function getDeviceEnumList(): array
DeviceProfile::GARMIN_ETREX_32_X,
DeviceProfile::GARMIN_APPROACH_S_70,
DeviceProfile::GARMIN_EPIX_PRO,
DeviceProfile::GARMIN_TACTIX_7_AMOLED,
DeviceProfile::GARMIN_MARQ_COMMANDER_2_CARBON,
DeviceProfile::GARMIN_VENU_3_S,
DeviceProfile::GARMIN_VIVO_MOVE_TREND
];
}
}
1 change: 1 addition & 0 deletions src/Distributor/Polar.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function getDeviceEnumList(): array
DeviceProfile::POLAR_A_370,
DeviceProfile::POLAR_O_H_1,
DeviceProfile::POLAR_VANTAGE_V_2,
DeviceProfile::POLAR_VANTAGE_V_3,
DeviceProfile::POLAR_UNITE,
DeviceProfile::POLAR_VERITY_SENSE,
DeviceProfile::POLAR_GRIT_X_PRO,
Expand Down
7 changes: 7 additions & 0 deletions src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ protected function getMapping()
3700 => DeviceProfile::GARMIN_APPROACH_S_62,
3393 => DeviceProfile::GARMIN_APPROACH_S_62,
4234 => DeviceProfile::GARMIN_APPROACH_S_70,
4233 => DeviceProfile::GARMIN_APPROACH_S_70,
2859 => DeviceProfile::GARMIN_DESCENT_MK_1,
2991 => DeviceProfile::GARMIN_DESCENT_MK_1,
3542 => DeviceProfile::GARMIN_DESCENT_MK_2_S,
Expand Down Expand Up @@ -303,6 +304,7 @@ protected function getMapping()
3448 => DeviceProfile::GARMIN_MARQ_CAPTAIN,
3249 => DeviceProfile::GARMIN_MARQ_COMMANDER,
3449 => DeviceProfile::GARMIN_MARQ_COMMANDER,
4472 => DeviceProfile::GARMIN_MARQ_COMMANDER_2_CARBON,
3250 => DeviceProfile::GARMIN_MARQ_ADVENTURER,
3251 => DeviceProfile::GARMIN_MARQ_ATHLETE,
3451 => DeviceProfile::GARMIN_MARQ_ATHLETE,
Expand All @@ -312,6 +314,7 @@ protected function getMapping()
3739 => DeviceProfile::GARMIN_MARQ_GOLFER,
4105 => DeviceProfile::GARMIN_MARQ_GOLFER_2,
3459 => DeviceProfile::GARMIN_MONTANA_700,
4542 => DeviceProfile::GARMIN_TACTIX_7_AMOLED,
3500 => DeviceProfile::GARMIN_LEGACY_HERO_CAPTAIN_MARVEL,
3501 => DeviceProfile::GARMIN_LEGACY_HERO_FIRST_AVENGER,
3536 => DeviceProfile::GARMIN_LEGACY_HERO_FIRST_AVENGER,
Expand All @@ -334,6 +337,8 @@ protected function getMapping()
3703 => DeviceProfile::GARMIN_VENU_2,
3704 => DeviceProfile::GARMIN_VENU_2,
3949 => DeviceProfile::GARMIN_VENU_2,
4260 => DeviceProfile::GARMIN_VENU_3,
4261 => DeviceProfile::GARMIN_VENU_3_S,
1907 => DeviceProfile::GARMIN_VIVO_ACTIVE,
2160 => DeviceProfile::GARMIN_VIVO_ACTIVE,
2337 => DeviceProfile::GARMIN_VIVO_ACTIVE_H_R,
Expand All @@ -350,6 +355,7 @@ protected function getMapping()
3389 => DeviceProfile::GARMIN_VIVO_ACTIVE_4,
3224 => DeviceProfile::GARMIN_VIVO_ACTIVE_4_S,
3387 => DeviceProfile::GARMIN_VIVO_ACTIVE_4_S,
4426 => DeviceProfile::GARMIN_VIVO_ACTIVE_5,
1837 => DeviceProfile::GARMIN_VIVO_FIT,
2606 => DeviceProfile::GARMIN_VIVO_FIT_JR,
2150 => DeviceProfile::GARMIN_VIVO_FIT_2,
Expand All @@ -361,6 +367,7 @@ protected function getMapping()
3378 => DeviceProfile::GARMIN_VIVO_MOVE_3_S,
3308 => DeviceProfile::GARMIN_VIVO_MOVE_LUXE,
3982 => DeviceProfile::GARMIN_VIVO_MOVE_SPORT,
3983 => DeviceProfile::GARMIN_VIVO_MOVE_TREND,
3572 => DeviceProfile::GARMIN_VIVO_LUXE,
2623 => DeviceProfile::GARMIN_VIVO_SPORT,
2832 => DeviceProfile::GARMIN_VIVO_SPORT,
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/NameMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ protected function getMapping()
'coros apex pro' => DeviceProfile::COROS_APEX_PRO,
'coros apex' => DeviceProfile::COROS_APEX,
'coros pace 2' => DeviceProfile::COROS_PACE_2,
'coros pace 3' => DeviceProfile::COROS_PACE_3,
'coros pace' => DeviceProfile::COROS_PACE,
'coros vertix 2' => DeviceProfile::COROS_VERTIX_2,
'coros vertix' => DeviceProfile::COROS_VERTIX,
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/PolarFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected function getMapping()
217 => DeviceProfile::POLAR_GRIT_X,
225 => DeviceProfile::POLAR_UNITE,
230 => DeviceProfile::POLAR_VANTAGE_V_2,
263 => DeviceProfile::POLAR_VANTAGE_V_2,
235 => DeviceProfile::POLAR_VERITY_SENSE,
236 => DeviceProfile::POLAR_VANTAGE_M_2,
241 => DeviceProfile::POLAR_IGNITE_2,
Expand Down

0 comments on commit bc124e5

Please sign in to comment.