Module: LiveF1
- Defined in:
- lib/live_f1.rb,
lib/live_f1/enum.rb,
lib/live_f1/debug.rb,
lib/live_f1/event.rb,
lib/live_f1/packet.rb,
lib/live_f1/source.rb,
lib/live_f1/version.rb,
lib/live_f1/packet/car.rb,
lib/live_f1/packet/sys.rb,
lib/live_f1/source/log.rb,
lib/live_f1/source/live.rb,
lib/live_f1/packet/header.rb,
lib/live_f1/packet/car/gap.rb,
lib/live_f1/source/session.rb,
lib/live_f1/source/keyframe.rb,
lib/live_f1/packet/sys/reset.rb,
lib/live_f1/packet/sys/speed.rb,
lib/live_f1/packet/car/driver.rb,
lib/live_f1/packet/car/number.rb,
lib/live_f1/packet/sys/notice.rb,
lib/live_f1/packet/decryptable.rb,
lib/live_f1/packet/sector_time.rb,
lib/live_f1/packet/sys/weather.rb,
lib/live_f1/packet/car/interval.rb,
lib/live_f1/packet/car/lap_time.rb,
lib/live_f1/packet/car/num_pits.rb,
lib/live_f1/packet/car/period_1.rb,
lib/live_f1/packet/car/period_2.rb,
lib/live_f1/packet/car/period_3.rb,
lib/live_f1/packet/car/position.rb,
lib/live_f1/packet/car/sector_1.rb,
lib/live_f1/packet/car/sector_2.rb,
lib/live_f1/packet/car/sector_3.rb,
lib/live_f1/packet/car/lap_count.rb,
lib/live_f1/packet/car/pit_count.rb,
lib/live_f1/packet/car/pit_lap_1.rb,
lib/live_f1/packet/car/pit_lap_2.rb,
lib/live_f1/packet/car/pit_lap_3.rb,
lib/live_f1/packet/sys/copyright.rb,
lib/live_f1/packet/sys/key_frame.rb,
lib/live_f1/packet/sys/timestamp.rb,
lib/live_f1/packet/sys/commentary.rb,
lib/live_f1/packet/sys/track_status.rb,
lib/live_f1/packet/car/best_lap_time.rb,
lib/live_f1/packet/sys/session_start.rb,
lib/live_f1/packet/car/position_update.rb,
lib/live_f1/packet/car/position_history.rb
Overview
Formula 1 live timing
The LiveF1 library allows realtime parsing of data from the F1 live timing stream. It connects to the binary stream and turns it into a series of objects describing the stream
Basics
The live timing service is primarily used to control the live timing Java applet at www.formula1.com/live_timing. However, the richness of the data it provides means that the stream could be used to provide a much deeper view of a session than the applet itself provides. This library provides the very basic toolkit allowing such an application to be built using Ruby, but when using it it’s important to remember the service was built around this one visual use.
The stream generates packets from the start of every practice, qualifying and race session. However anyone connecting to the stream after the start of a session doesn’t get sent the entire packet history. Instead, keyframes containing the current live timing state are regularly generated throughout a session, and new connections are given the latest keyframe followed by the packets generated since that keyframe.
Usage
See bin/live-f1 for usage examples
Defined Under Namespace
Modules: Enum Classes: Event, Packet, Source
Constant Summary collapse
- VERSION =
'0.0.2'
Class Attribute Summary collapse
-
.debug ⇒ Object
Returns the value of attribute debug.
Class Attribute Details
.debug ⇒ Object
Returns the value of attribute debug.
4 5 6 |
# File 'lib/live_f1/debug.rb', line 4 def debug @debug end |