Funbit / ets2-telemetry-server

ETS2/ATS Telemetry Web Server + Mobile Dashboard
GNU General Public License v3.0
623 stars 206 forks source link

PHP convertion? #100

Open zer0sec opened 7 years ago

zer0sec commented 7 years ago

is it possible to make this work without running the exe as i want to auto track my vtc and forward the data to the website through api, is it possible to do this without having to run the exe? or can i just change the code in c++ so it redirects traffic to my website directly!

yodek commented 7 years ago

This is how Windows system works - results of compiled files from C++ is... .exe file

There must be some kind "agent" which will generate raw-data received from .dll in ETS2. Maybe SCS will provide tools (build-in-game) and then Funbit don't have to update his work?

mike-koch commented 7 years ago

As @yodek said, you'll need some sort of agent running on the player's computer to push data to your website if you want to use the telemetry plugin as-is. At that point, I'd recommend using the exe as it has a broadcasting feature that can submit a POST request to any URL every x seconds.

However, if you want to try recompiling the plugin, you could try embedding a REST client into the plugin (perhaps this; https://github.com/mrtazz/restclient-cpp may help?) and call your website directly. I have no experience in compiling the DLL, so I can't help you out there.

zer0sec commented 7 years ago

is anyone willing to do this for me i'm willing to pay for money for someone to help with this.