Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kniffen/TruckSim-Telemetry
Telemetry data from the scs-sdk-plugin
https://github.com/kniffen/TruckSim-Telemetry
Last synced: about 1 month ago
JSON representation
Telemetry data from the scs-sdk-plugin
- Host: GitHub
- URL: https://github.com/kniffen/TruckSim-Telemetry
- Owner: kniffen
- License: mit
- Created: 2017-09-14T07:07:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T10:34:39.000Z (5 months ago)
- Last Synced: 2024-10-29T20:57:46.399Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 512 KB
- Stars: 80
- Watchers: 3
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - kniffen/TruckSim-Telemetry - Telemetry data from the scs-sdk-plugin (JavaScript)
README
# TruckSim-Telemetry
TruckSim-Telemetry is a node module that takes telemetry data for Euro Truck Simulator 2 and American Truck Simulator provided by the [scs-sdk-plugin](https://github.com/RenCloud/scs-sdk-plugin) and outputs parsed data and events.[![Node version](https://img.shields.io/node/v/trucksim-telemetry)](https://nodejs.org)
[![NPM version](https://img.shields.io/npm/v/trucksim-telemetry)](https://www.npmjs.com/package/trucksim-telemetry)
[![NPM Downloads](https://img.shields.io/npm/dw/trucksim-telemetry)](https://www.npmjs.com/package/trucksim-telemetry)
[![Github Licence](https://img.shields.io/github/license/kniffen/TruckSim-Telemetry)](https://github.com/kniffen/TruckSim-Telemetry/blob/master/README.md)
[![Discord](https://img.shields.io/discord/125702694538051584.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/S6NRp5P)## Documentation
Read the full documentation over at https://tst.kniffen.dev## Getting started
### Prerequisites
#### Download and install the [scs-sdk-plugin](https://github.com/RenCloud/scs-sdk-plugin) by [RenCloud](https://github.com/RenCloud)
Supported plugin versions (Limited meaning some data and/or events may be inaccurate)
- v1.12.0
- v1.11.0
- v1.10.6
- v1.10.5 (Limited)
- v1.10.4 (Limited)#### Install the [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools)
### Installing
Install the module via NPM
`npm install trucksim-telemetry`## Examples
Check the [Documentation](https://tst.kniffen.dev) page for [examples](https://tst.kniffen.dev/#/examples)
## Known issues
### refuel-paid event not emitting
This seems to be a problem with the plugin.
It seems to only trigger once per game.### Electron and React or Vue (webpack)
An common issue reported by people is getting the following error message when trying to use the module with React or Vue.
`Module not found: Error: Can't resolve '../../build/Release/scsTelemetry' ...`
This seems to be webpack related, and adding the following alias to your webpack.config.js file should resolve it
```javascript
// webpack.config.js
module.exports = {
resolve: {
alias: {
"../../build/Release/scsSDKTelemetry": "../../build/Release/scsSDKTelemetry.node"
}
}
}
```For Electron you may or __may not__ additionally have to set the following preferences when creating your browser window
```javascript
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
}
```### Trailer damage values
The current version of the **[scs-sdk-plugin](https://github.com/RenCloud/scs-sdk-plugin)** does not provide the damage value for the trailer's body, as such the total damage value is also incorrect.## Demo
To help visualize the data you can use this [Demo app](https://github.com/kniffen/TruckSim-Telemetry-Demo)![demo screenshot](https://raw.githubusercontent.com/kniffen/TruckSim-Telemetry-Demo/master/screenshot.jpg)
## License
This project is licensed under the MIT License - see the LICENSE file for details