Telemetry data from the ets2-sdk-plugin
Download and install the ets2-sdk-plugin by nlhans
npm i trucksim-telemetry
Load up the game and profit?
const telemetry = require('trucksim-telemetry')
const data = telemetry.getAll()
console.log(data)
Check out example.json for data structure
telemetry.getBuffer() // -> Original memory buffer from the plugin
telemetry.getRaw() // -> Raw data
telemetry.getGame() // -> Parsed game data
telemetry.getUserInput() // -> Parsed user input data
telemetry.getTruck() // -> Parsed truck data
telemetry.getTrailer() // -> Parsed trailer data
telemetry.getJob() // -> Parsed job data
telemetry.getNavigation() // -> Parsed navigational data
telemetry.getAll() // -> All parsed data