fit-php
fit-php copied to clipboard
A PHP class to encode and decode Garmin .FIT files.
Using PHP8.1.2 I get the following warnings and errors. I'm not sure how to correct this as I don't use interfaces often. ``` PHP Warning: Private methods cannot be final...
Hello there, I'have an array "stepsData": ``` {"0":{"power":112.5,"hr":99.75,"cadence":90},"660":{"power":175,"hr":142.5,"cadence":90},"990":{"power":175,"hr":142.5,"cadence":90},"2550":{"power":225,"hr":161.5,"cadence":90},"3150":{"power":175,"hr":142.5,"cadence":90},"3750":{"power":350,"hr":185.25,"cadence":90},"3780":{"power":175,"hr":161.5,"cadence":90},"3810":{"power":350,"hr":185.25,"cadence":90},"3840":{"power":175,"hr":161.5,"cadence":90},"3870":{"power":350,"hr":185.25,"cadence":90},"3900":{"power":175,"hr":161.5,"cadence":90},"3930":{"power":350,"hr":185.25,"cadence":90},"3960":{"power":175,"hr":161.5,"cadence":90},"3990":{"power":350,"hr":185.25,"cadence":90},"4020":{"power":175,"hr":161.5,"cadence":90},"4050":{"power":350,"hr":185.25,"cadence":90},"4080":{"power":175,"hr":161.5,"cadence":90},"4110":{"power":175,"hr":142.5,"cadence":90},"4950":{"power":800,"hr":142.5,"cadence":125},"4960":{"power":112.5,"hr":142.5,"cadence":90},"5010":{"power":800,"hr":142.5,"cadence":125},"5020":{"power":112.5,"hr":142.5,"cadence":90},"5070":{"power":800,"hr":142.5,"cadence":125},"5080":{"power":112.5,"hr":142.5,"cadence":90},"5130":{"power":800,"hr":142.5,"cadence":125},"5140":{"power":112.5,"hr":142.5,"cadence":90},"5190":{"power":800,"hr":142.5,"cadence":125},"5200":{"power":112.5,"hr":142.5,"cadence":90},"5250":{"power":175,"hr":142.5,"cadence":90},"6810": {"power":112.5,"hr":99.75,"cadence":90}} ``` And I use this fork https://github.com/johnnye/fit-php like this ``` public function generateWahooWorkoutFit($trainingpplansession,$stepsData,$fitpath){ $time = time() - mktime(0,0,0,12,31,1989); $data = new...
Hi guys - Is anyone using this code? I tried the posted example, and it generates a FIT file, but none of the applications used to read FIT files can...
I see that there are subfields to `workout_step` like `duration_step` and `duration_power` and etc. Could you please hint how can I add it to protocol? More precisely, I am in...
I'm trying to parse my day records exported from the Garmin Connect website. But the records show binary data: ``` [3] => Array ( [no:0] => Array ( [value] =>...