Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spaghettifunk/f1-telemetry-go

F1 Game Telemetry Client written in Go (no dependency)
https://github.com/spaghettifunk/f1-telemetry-go

Last synced: 1 day ago
JSON representation

F1 Game Telemetry Client written in Go (no dependency)

Awesome Lists containing this project

README

        

# F1 Game Telemetry Client in Go [![Made With Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg?color=007EC6)](http://golang.org)

Telemetry client for F1 Game, written in Go. Currently, supported only the UDP 2020 format.

![f1-telemetry-client](https://user-images.githubusercontent.com/20264712/121112897-ccc2fb00-c819-11eb-9739-91ccddcbcdc4.png)

## Features

- Event System
- Rich Env Constants
- UDP Stats (recv, err and packet per second rate),
- Vector3 support

## Install

```bash
go get -u github.com/anilmisirlioglu/f1-telemetry-go
```

## 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()
}
```

## Docs

If you need more information on the F1 UDP specifications, see the [docs](/docs).