Funbit / ets2-telemetry-server

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

How to get the fuel distance? #159

Open megatops opened 8 months ago

megatops commented 8 months ago

Hi Funbit,

I'm working on a "hardware" dashboard (https://github.com/megatops/ets2_lcd_dashboard). I hope to display the estimated fuel distance here:

Weixin Image_20231112213128

Now I'm calculating the fuel distance by truck.fuel / truck.fuelAverageConsumption, but due to the truck.fuelAverageConsumption is continuously changing, the estimated fuel distance value is unstable and not accurate. I found there are fuel distance display in some trucks such as Volvo FH. So is it possible to get this value from the telemetry server? Thanks.