Gathering detailed insights and metrics for racing-data-converter
Gathering detailed insights and metrics for racing-data-converter
Gathering detailed insights and metrics for racing-data-converter
Gathering detailed insights and metrics for racing-data-converter
Converts data into popular motorsport analysis formats
npm install racing-data-converter
Typescript
Module System
Node Version
NPM Version
75.3
Supply Chain
99
Quality
75.4
Maintenance
100
Vulnerability
81.3
License
TypeScript (97.95%)
JavaScript (2.05%)
Total Downloads
782
Last Day
1
Last Week
4
Last Month
36
Last Year
322
GPL-2.0 License
7 Stars
74 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jun 11, 2025
Minified
Minified + Gzipped
Latest Version
1.4.0
Package Id
racing-data-converter@1.4.0
Unpacked Size
195.21 kB
Size
45.71 kB
File Count
241
NPM Version
8.5.5
Node Version
16.14.0
Published on
May 09, 2024
Cumulative downloads
Total Downloads
3
6
Converts time series data into popular motorsport Data Logger formats.
This library was developed at B'Energy Racing, a Formula SAE Electric Team from the Facens University Center.
Format | Extension | Software | Support |
---|---|---|---|
Pro Tune | .dlf | Pro Tune Analyzer | Writer |
EFI Analytics ASCII | .msl | MegaLogViewer | Writer |
EFI Analytics Binary MLG (MLVLG) | .mlg | MegaLogViewer | Writer |
MoTeC CSV | .csv | MoTeC i2 | Writer |
Pi ASCII | .txt | Cosworth Pi Toolbox | Writer |
BOSCH Darab ASCII | .txt | Bosch WinDarab | Writer |
RacePak ASCII | .txt | RacePak DataLink II | Writer |
Excel CSV | .csv | Microsoft Excel | Writer |
CSV | .csv, .tsv | - | Reader/Writer |
B'Energy Meteor Log | .met | - | Reader/Writer |
JSON (raw data frames) | .json | - | Reader/Writer |
The CLI allows converting without writing a single line of code.
By default, it reads CSV files and outputs any format. The CSV file must have the first column as the timestamp in seconds. Columns can follow the format Name (unit)
or Name (unit) [key]
.
You need NodeJS (16+ is recommended) installed first. Then, run the following command:
1npm install -g racing-data-converter
Run racing-data-converter --help
for a list of options.
1racing-data-converter ./input.csv ./output.dlf --output-format protune
This command will convert an input CSV file named input.csv
to a Pro Tune's log file named output.dlf
.
DataFrameStream
or read from a CsvReader
, MeteorReader
or a JsonReader
.CsvWriter
, MeteorWriter
, ExcelCsvWriter
, MslWriter
, MlgWriter
, MotecCsvWriter
, PiToolboxAsciiWriter
, ProtuneWriter
, RacePakWriter
, WinDarabWriter
or a JsonWriter
.1npm install racing-data-converter
1import { DataFrameStream, ProtuneWriter, SensorChannel } from 'racing-data-converter'; 2import * as fs from 'node:fs'; 3 4// Creates a plain data frame stream. This will be the input 5const dataFrameStream = new DataFrameStream(); 6 7// Creates a Protune writer with two channels 8const writer = new ProtuneWriter({ 9 channels: [ 10 { 11 key: SensorChannel.GPS_SPEED, 12 name: 'Speed', 13 unit: 'Km/h', 14 }, 15 { 16 key: 'happy-sensor', 17 name: 'Happy Sensor', 18 unit: 'm', 19 decimalPlaces: 2, 20 } 21 ] 22}); 23 24// Creates a Protune stream using the data frame stream as the input 25const protuneStream = writer.createStream(dataFrameStream); 26 27// Pipes the Protune stream into the output file 28protuneStream.pipe(fs.createWriteStream('sample-output.dlf')); 29 30// Writes a few data frames 31dataFrameStream.write({ 32 channel: SensorChannel.GPS_SPEED, 33 value: 53, 34 timestamp: 10, 35}); 36 37dataFrameStream.write({ 38 channel: 'happy-sensor', 39 value: 3925, 40 timestamp: 15, 41}); 42 43dataFrameStream.write({ 44 channel: SensorChannel.GPS_SPEED, 45 value: 59, 46 timestamp: 20, 47}); 48 49// Finishes writing 50dataFrameStream.end();
There are more samples available.
No vulnerabilities found.
No security vulnerabilities found.
Last Day
0%
1
Compared to previous day
Last Week
0%
4
Compared to previous week
Last Month
-2.7%
36
Compared to previous month
Last Year
-30%
322
Compared to previous year