gareth / live-f1

Formula 1 live timing library
14 stars 3 forks source link

Generating log files #1

Closed psychemedia closed 12 years ago

psychemedia commented 12 years ago

Is there an easy way of generating log files for replay after the race?

gareth commented 12 years ago

Hi Tony,

I seriously refactored the code between the Abu Dhabi GP and when I put this project into Git, so the logging I originally had isn't in there any more. I think that would need to be re-added in a couple of places in the StreamParser::Source::Live class, basically I had an open file that I was streaming into every time bytes were read from the stream. I'll take a look at this soon (definitely in time for the season start)

gareth commented 12 years ago

Note that these logs are pure binary logs of the stream - which can be replayed using the library - but they aren't event logs that you could immediately parse for analysis purposes.

psychemedia commented 12 years ago

@gareth thanks for that... I will see if I can unpick the other bits of your code to generate human readable timing files from the raw logs. Last year, I was waiting for FIA media to publish timing data, which I then had to scrape in order to generate visual reports (eg f1datajunkie.posterous.com, f1datajunkie.blogspot.com), but I was thinking it would be nice to be able to have a go at some realtime dashboards this year...;-)