https://github.com/anilmisirlioglu/f1-telemetry-go
F1 Game Telemetry Client written in Go (no dependency)
https://github.com/anilmisirlioglu/f1-telemetry-go
f1-game formula-1 hacktoberfest telemetry-client
Last synced: 3 months ago
JSON representation
F1 Game Telemetry Client written in Go (no dependency)
- Host: GitHub
- URL: https://github.com/anilmisirlioglu/f1-telemetry-go
- Owner: anilmisirlioglu
- License: apache-2.0
- Created: 2021-05-28T17:52:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T07:11:05.000Z (over 2 years ago)
- Last Synced: 2025-02-27T05:55:57.333Z (3 months ago)
- Topics: f1-game, formula-1, hacktoberfest, telemetry-client
- Language: Go
- Homepage:
- Size: 183 KB
- Stars: 79
- Watchers: 3
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# F1 Game Telemetry Client in Go [](http://golang.org)
Telemetry client for F1 Game, written in Go. Supports the F1 UDP 2022 and previous formats.

## Features
- Event System
- Rich Env Constants
- UDP Stats (recv, err and packet per second rate),
- Vector3 support## Install
```bash
# latest version (F1 2022)
go get -u github.com/anilmisirlioglu/f1-telemetry-go@master# for F1 2022
go get -u github.com/anilmisirlioglu/[email protected]# for F1 2020
go get -u github.com/anilmisirlioglu/[email protected]
```## Quick Start
```go
func main() {
client, err := telemetry.NewClient()
if err != nil {
log.Fatal(err)
}client.OnEventPacket(func(packet *packets.PacketEventData) {
fmt.Printf("Code: %s\n", packet.EventCodeString())
})client.Run()
}
```## Specific Address & Port
```go
func main() {
client, err := telemetry.NewClientByCustomIpAddressAndPort("0.0.0.0", 20777)
if err != nil {
log.Fatal(err)
}client.OnCarDamagePacket(func(packet *packets.PacketCarDamageData) {
fmt.Printf("Code: %s\n", packet.EventCodeString())
})client.Run()
}
```## Docs
If you need more information on the F1 UDP specifications, see the [docs](/docs).