Skip to content

Commit

Permalink
add more unknown devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Oct 31, 2024
1 parent 285d1fc commit b9c143e
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,10 @@ class DeviceProfile extends AbstractEnum
public const GARMIN_LILY_2 = 690;
public const GARMIN_EDGE_1050 = 691;
public const SIGMA_SPORT_ROX_70_GPS = 692;

public const COROS_PACE_PRO = 693;
public const GARMIN_LILY_2_ACTIVE = 694;
public const SIGMA_SPORT_ROX_121_EVO = 695;
public const GARMIN_ETREX_SOLAR = 696;

public static function getSlugs(): array
{
Expand Down
27 changes: 27 additions & 0 deletions src/Device/GarminEtrexSolar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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 GarminEtrexSolar extends AbstractDevice
{
use GarminDeviceTrait;

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

public function getName(): string
{
return 'eTrex Solar';
}
}
27 changes: 27 additions & 0 deletions src/Device/GarminLily2Active.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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 GarminLily2Active extends AbstractDevice
{
use GarminDeviceTrait;

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

public function getName(): string
{
return 'Lily 2 Active';
}
}
27 changes: 27 additions & 0 deletions src/Device/SigmaSportRox121Evo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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 SigmaSportRox121Evo extends AbstractDevice
{
use SigmaDeviceTrait;

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

public function getName(): string
{
return 'ROX 12.1 Evo';
}
}
2 changes: 2 additions & 0 deletions src/Distributor/Garmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ public function getDeviceEnumList(): array
DeviceProfile::GARMIN_APPROACH_S_12,
DeviceProfile::GARMIN_EDGE_1050,
DeviceProfile::GARMIN_LILY_2,
DeviceProfile::GARMIN_LILY_2_ACTIVE,
DeviceProfile::GARMIN_ETREX_SOLAR
];
}
}
1 change: 1 addition & 0 deletions src/Distributor/Sigma.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function getDeviceEnumList(): array
DeviceProfile::SIGMA_SPORT_ROX_111_EVO,
DeviceProfile::SIGMA_SPORT_ROX_40,
DeviceProfile::SIGMA_SPORT_ROX_70_GPS,
DeviceProfile::SIGMA_SPORT_ROX_121_EVO,
DeviceProfile::SIGMA_UNKNOWN,
];
}
Expand Down
2 changes: 2 additions & 0 deletions src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ protected function getMapping()
4314 => DeviceProfile::GARMIN_EPIX_PRO,
2140 => DeviceProfile::GARMIN_ETREX_TOUCH,
4201 => DeviceProfile::GARMIN_ETREX_S_E,
4202 => DeviceProfile::GARMIN_ETREX_SOLAR,
1551 => DeviceProfile::GARMIN_FENIX,
1967 => DeviceProfile::GARMIN_FENIX_2,
2050 => DeviceProfile::GARMIN_FENIX_3,
Expand Down Expand Up @@ -410,6 +411,7 @@ protected function getMapping()
3823 => DeviceProfile::GARMIN_APPROACH_S_12,
3537 => DeviceProfile::GARMIN_LEGACY_HERO_SAGA_REY,
4380 => DeviceProfile::GARMIN_LILY_2,
4477 => DeviceProfile::GARMIN_LILY_2_ACTIVE,
];
}

Expand Down
1 change: 1 addition & 0 deletions src/Mapping/SigmaSportFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected function getMapping()
46 => DeviceProfile::SIGMA_SPORT_ID_TRI,
49 => DeviceProfile::SIGMA_SPORT_ROX_111_EVO,
52 => DeviceProfile::SIGMA_SPORT_ROX_40,
54 => DeviceProfile::SIGMA_SPORT_ROX_121_EVO,
];
/*
* Unknown:
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/SuuntoFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ protected function getMapping()
60 => DeviceProfile::SUUNTO_RACE,
61 => DeviceProfile::SUUNTO_RACE_S,
62 => DeviceProfile::SUUNTO_OCEAN,
200 => DeviceProfile::SUUNTO_AMBIT_2,
];
}

Expand Down

0 comments on commit b9c143e

Please sign in to comment.