Funbit / ets2-telemetry-server

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

Implement telemetry broadcasting to external URL #18

Closed Funbit closed 9 years ago

Funbit commented 9 years ago

Implemented in 2.0.0.

fstingl commented 9 years ago

Hey, is there a documentation for broadcast post request namings?

[EDIT]: Thanks, already found the information i need

yodek commented 9 years ago

Where is report button ? Just to ban @dreadrecords for spam [ btw. I checked website in past - CRAP SHIT ].

Edit: I see that there is no "report" button in Github... Edit2 [2015-03-30, 17:35]: Comment have been deleted. @dreadrecords Is my problem that you didn't secure account and someone used your account to spam? No. I don't judge, I just wanted to report comment and block for an example 24 hours to avoid more spam until confirm is spamer-account or hacked -.- Problem solved, EOF now.

Funbit commented 9 years ago

@fstingl Hi, glad that you found the solution, but just in case I'll post it here:

To enable telemetry broadcasting one just need to open Ets2Telemetry.exe.config file and set the BroadcastUrl parameter, like this:

<add key="BroadcastUrl" value="http://myserver.com/optional/path/to/script" />

The server will be sending POST HTTP requests to that URL with telemetry JSON (as you see it in http://localhost:25555/api/ets2/telemetry ) as body. So to get the telemetry data on the other side you just have to read HTTP request content as a string and deserialize JSON to an object.

By default broadcasting is done every 10 seconds. You may change the time by editing BroadcastRate parameter.

dreadrecords commented 9 years ago

yodek commented Mar 29, 2015 YODEK i want to mail yu but unable Don't need to ban or acuse if yu dont know about it or at least ask first. Cause there's a problem with my facebook acount and someone is posting in other places and steam also using my name i'm trying to fix and already take care of it Not even had time to see the post here So before yu coment or judge someone ask or send a message. i'm no kid i'm 46years old and i dont play with other people work or stuff Tanks Carlos