Skip to content

F1 2022 遥测接收端, 基于grafana和Prometheus, go udp底层

License

Notifications You must be signed in to change notification settings

ShevonKuan/f1-2022-telemetry-win

Repository files navigation

F1 Game Telemetry Client in Go Made With Go

Telemetry client for F1 Game, written in Go. Supports the F1 UDP 2022 and previous formats.

f1-telemetry-client

Features

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

Install

# latest version (F1 2022)
go get -u github.com/shevonkuan/f1-telemetry-go@master

# for F1 2022
go get -u github.com/shevonkuan/f1-telemetry-go@v1.1.0

# for F1 2020
go get -u github.com/shevonkuan/f1-telemetry-go@v1.0.0

Quick Start

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

Or you can download the latest release file and run it.

Docs

If you need more information on the F1 UDP specifications, see the docs.

About

F1 2022 遥测接收端, 基于grafana和Prometheus, go udp底层

Resources

License

Stars

Watchers

Forks

Packages

No packages published