Skip to content

Use konradit/gopro-utils @v1.0.0 #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.23
cache: true
- uses: goreleaser/goreleaser-action@v4 # run goreleaser
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.23
- name: Build
run: go build -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.23
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.23
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
- name: Test
Expand Down
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module github.com/konradit/mmt

go 1.18
go 1.23.5

require (
github.com/abema/go-mp4 v0.9.0
github.com/codingsince1985/geo-golang v1.8.3
github.com/dustin/go-humanize v1.0.0
github.com/erdaltsksn/cui v0.6.0
github.com/fatih/color v1.10.0
github.com/hashicorp/go-retryablehttp v0.7.5
github.com/k3a/html2text v1.0.7
github.com/karrick/godirwalk v1.16.1
github.com/konradit/gopro-utils v0.0.0-20221223164811-e440e8829226
github.com/konradit/gopro-utils v1.0.0
github.com/maja42/goval v1.3.1
github.com/minio/minio v0.0.0-20210220233218-48b212dd8e96
github.com/mitchellh/go-homedir v1.1.0
Expand Down Expand Up @@ -43,7 +44,6 @@ require (
github.com/google/uuid v1.1.2 // indirect
github.com/gookit/color v1.2.9 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
Expand All @@ -56,8 +56,7 @@ require (
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/montanaflynn/stats v0.5.0 // indirect
github.com/ncw/directio v1.0.5 // indirect
github.com/paulmach/go.geo v0.0.0-20180829195134-22b514266d33 // indirect
github.com/paulmach/go.geojson v1.4.0 // indirect
github.com/paulmach/orb v0.11.1 // indirect
github.com/pelletier/go-buffruneio v0.2.0 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
Expand Down
44 changes: 35 additions & 9 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/gopro/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func fromMP4(videoPath string) (*utils.Location, error) {
GPSNum := 0
reader := bytes.NewReader(*data)

lastEvent := &telemetry.TELEM{}
lastEvent := &telemetry.Telem{}
coordinates := []utils.Location{}

GetLocation:
Expand All @@ -65,7 +65,7 @@ GetLocation:
return nil, err
}

telems := lastEvent.ShitJson()
telems := lastEvent.Json()
for _, telem := range telems {
if telem.Altitude > gpsMaxAltitudeFromConfig() || telem.Latitude == 0 || telem.Longitude == 0 || uint(telem.GpsAccuracy) > gpsMinAccuracyFromConfig() {
continue
Expand Down