Skip to content

Commit

Permalink
Suunto Ocean, Coros Dura, SuuntoD4/D9, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Jun 24, 2024
1 parent 1eb16fe commit d489908
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Device/CorosDura.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 CorosDura extends AbstractDevice
{
use CorosDeviceTrait;

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

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

public function hasBarometer(): bool
{
return true;
}
}
4 changes: 4 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,10 @@ class DeviceProfile extends AbstractEnum
public const GARMIN_FORERUNNER_165_MUSIC = 673;
public const POLAR_H_7 = 674;
public const COROS_VERTIX_2_S = 675;
public const COROS_DURA = 676;
public const SUUNTO_OCEAN = 677;
public const SUUNTO_D_9 = 678;
public const SUUNTO_D_4 = 679;

public static function getSlugs(): array
{
Expand Down
5 changes: 5 additions & 0 deletions src/Device/GarminForerunner225SMusic.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public function getName(): string
{
return 'Forerunner 225S Music';
}

public function hasBarometer(): bool
{
return true;
}
}
27 changes: 27 additions & 0 deletions src/Device/SuuntoD4.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 SuuntoD4 extends AbstractDevice
{
use SuuntoDeviceTrait;

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

public function getName(): string
{
return 'D4';
}
}
27 changes: 27 additions & 0 deletions src/Device/SuuntoD9.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 SuuntoD9 extends AbstractDevice
{
use SuuntoDeviceTrait;

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

public function getName(): string
{
return 'D9';
}
}
32 changes: 32 additions & 0 deletions src/Device/SuuntoOcean.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 SuuntoOcean extends AbstractDevice
{
use SuuntoDeviceTrait;

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

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

public function hasBarometer(): bool
{
return true;
}
}
1 change: 1 addition & 0 deletions src/Distributor/Coros.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function getDeviceEnumList(): array
DeviceProfile::COROS_VERTIX,
DeviceProfile::COROS_VERTIX_2,
DeviceProfile::COROS_VERTIX_2_S,
DeviceProfile::COROS_DURA,
DeviceProfile::COROS_UNKNOWN,
];
}
Expand Down
3 changes: 3 additions & 0 deletions src/Distributor/Suunto.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function getDeviceEnumList(): array
DeviceProfile::SUUNTO_X_9,
DeviceProfile::SUUNTO_X_10,
DeviceProfile::SUUNTO_D_4_I,
DeviceProfile::SUUNTO_D_4,
DeviceProfile::SUUNTO_D_5,
DeviceProfile::SUUNTO_D_9,
DeviceProfile::SUUNTO_5_PEAK,
DeviceProfile::SUUNTO_7,
DeviceProfile::SUUNTO_9,
Expand All @@ -54,6 +56,7 @@ public function getDeviceEnumList(): array
DeviceProfile::SUUNTO_T_3_D,
DeviceProfile::SUUNTO_D_6_I,
DeviceProfile::SUUNTO_D_4_F,
DeviceProfile::SUUNTO_OCEAN,
DeviceProfile::SUUNTO_AMBIT,
DeviceProfile::SUUNTO_AMBIT_2,
DeviceProfile::SUUNTO_AMBIT_2_R,
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/CorosFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ protected function getMapping()
812 => DeviceProfile::COROS_APEX_2,
822 => DeviceProfile::COROS_APEX_2_PRO,
823 => DeviceProfile::KIPRUN_900,
851 => DeviceProfile::COROS_DURA,
];
/*
* Unknown:
Expand Down
2 changes: 2 additions & 0 deletions src/Mapping/SuuntoFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ protected function getMapping()
40 => DeviceProfile::SUUNTO_7,
41 => DeviceProfile::SUUNTO_EON_STEEL,
42 => DeviceProfile::SUUNTO_9_PEAK,
44 => DeviceProfile::SUUNT_D4,
45 => DeviceProfile::SUUNTO_D_4_F,
46 => DeviceProfile::SUUNTO_D_4_I,
48 => DeviceProfile::SUUNTO_D_6_I,
49 => DeviceProfile::SUUNTO_D_9,
52 => DeviceProfile::SUUNTO_VYPER_NOVO,
53 => DeviceProfile::SUUNTO_ZOOP_NOVO,
56 => DeviceProfile::SUUNTO_5_PEAK,
Expand Down

0 comments on commit d489908

Please sign in to comment.