Skip to content

Commit 65f2b88

Browse files
authored
Use konradit/gopro-utils @v1.0.0 (#144)
* Use konradit/gopro-utils @v1.0.0 * Update workflows as well
1 parent 6189f66 commit 65f2b88

File tree

7 files changed

+45
-20
lines changed

7 files changed

+45
-20
lines changed

.github/workflows/build-artifacts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- run: git fetch --force --tags
1717
- uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.18
19+
go-version: 1.23
2020
cache: true
2121
- uses: goreleaser/goreleaser-action@v4 # run goreleaser
2222
with:

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v3
1414
with:
15-
go-version: 1.18
15+
go-version: 1.23
1616
- name: Build
1717
run: go build -v ./...

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/setup-go@v3
1313
with:
14-
go-version: 1.18
14+
go-version: 1.23
1515
- uses: actions/checkout@v3
1616
- name: golangci-lint
1717
uses: golangci/golangci-lint-action@v3

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v3
1414
with:
15-
go-version: 1.18
15+
go-version: 1.23
1616
- uses: FedericoCarboni/setup-ffmpeg@v2
1717
id: setup-ffmpeg
1818
- name: Test

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
module github.com/konradit/mmt
22

3-
go 1.18
3+
go 1.23.5
44

55
require (
66
github.com/abema/go-mp4 v0.9.0
77
github.com/codingsince1985/geo-golang v1.8.3
88
github.com/dustin/go-humanize v1.0.0
99
github.com/erdaltsksn/cui v0.6.0
1010
github.com/fatih/color v1.10.0
11+
github.com/hashicorp/go-retryablehttp v0.7.5
1112
github.com/k3a/html2text v1.0.7
1213
github.com/karrick/godirwalk v1.16.1
13-
github.com/konradit/gopro-utils v0.0.0-20221223164811-e440e8829226
14+
github.com/konradit/gopro-utils v1.0.0
1415
github.com/maja42/goval v1.3.1
1516
github.com/minio/minio v0.0.0-20210220233218-48b212dd8e96
1617
github.com/mitchellh/go-homedir v1.1.0
@@ -43,7 +44,6 @@ require (
4344
github.com/google/uuid v1.1.2 // indirect
4445
github.com/gookit/color v1.2.9 // indirect
4546
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
46-
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
4747
github.com/hashicorp/hcl v1.0.0 // indirect
4848
github.com/inconshreveable/mousetrap v1.0.0 // indirect
4949
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
@@ -56,8 +56,7 @@ require (
5656
github.com/mitchellh/mapstructure v1.1.2 // indirect
5757
github.com/montanaflynn/stats v0.5.0 // indirect
5858
github.com/ncw/directio v1.0.5 // indirect
59-
github.com/paulmach/go.geo v0.0.0-20180829195134-22b514266d33 // indirect
60-
github.com/paulmach/go.geojson v1.4.0 // indirect
59+
github.com/paulmach/orb v0.11.1 // indirect
6160
github.com/pelletier/go-buffruneio v0.2.0 // indirect
6261
github.com/pelletier/go-toml v1.2.0 // indirect
6362
github.com/pkg/errors v0.9.1 // indirect

go.sum

Lines changed: 35 additions & 9 deletions
Large diffs are not rendered by default.

pkg/gopro/location.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func fromMP4(videoPath string) (*utils.Location, error) {
4242
GPSNum := 0
4343
reader := bytes.NewReader(*data)
4444

45-
lastEvent := &telemetry.TELEM{}
45+
lastEvent := &telemetry.Telem{}
4646
coordinates := []utils.Location{}
4747

4848
GetLocation:
@@ -65,7 +65,7 @@ GetLocation:
6565
return nil, err
6666
}
6767

68-
telems := lastEvent.ShitJson()
68+
telems := lastEvent.Json()
6969
for _, telem := range telems {
7070
if telem.Altitude > gpsMaxAltitudeFromConfig() || telem.Latitude == 0 || telem.Longitude == 0 || uint(telem.GpsAccuracy) > gpsMinAccuracyFromConfig() {
7171
continue

0 commit comments

Comments
 (0)