ETS2/ATS Telemetry Web Server + Mobile Dashboard

User avatar
Elderado704
Posts: 37
Joined: 03 Feb 2016 03:31

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#861 Post by Elderado704 » 08 May 2017 21:45

Thanks. I work in miles but i saw an earlier post you made on how to convert, i'll look it up again.

Danke.
NEVER SHOW FEAR, SQUIDS CAN SENSE FEAR.
User avatar
m4rc10w
Posts: 97
Joined: 15 Feb 2015 17:52

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#862 Post by m4rc10w » 08 May 2017 21:49

In this case, you can try change to this:

Code: Select all

data.navigation.distLeft = Math.floor((data.navigation.estimatedDistance/1000)*0.621371) + ' mi'; // distance in miles
OBS - 'Math.floor()' function will round down ( 'Math.round()' rounds up) if you want to use the decimal point, use the function 'utils.formatFloat()' instead of that.
My ETS2/ATS Custom/Edited Dashboards for Funbit ETS2/ATS Telemetry Server
https://www.worldoftrucks.com/en/online ... p?id=25089

[ external image ]
Sorry my bad English, it´s no my native language, then most my posts have help from Google Translate.
User avatar
Elderado704
Posts: 37
Joined: 03 Feb 2016 03:31

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#863 Post by Elderado704 » 09 May 2017 03:45

m4rc10w wrote:In this case, you can try change to this:

Code: Select all

data.navigation.distLeft = Math.floor((data.navigation.estimatedDistance/1000)*0.621371) + ' mi'; // distance in miles
OBS - 'Math.floor()' function will round down ( 'Math.round()' rounds up) if you want to use the decimal point, use the function 'utils.formatFloat()' instead of that.

Yay, finally did it. Took a while though. I changed all the files to data.navigation-estimatedDistance, but i was still having problems with the JS file. After multiple tries i placed the -

(data.navigation.estimatedDistance = Math.floor((data.navigation.estimatedDistance/1000)*0.621371) + ' mi'; // distance in miles )
in priority and every thing fell into place.

Could not have done it without you, great big thanks.

[ external image ]
NEVER SHOW FEAR, SQUIDS CAN SENSE FEAR.
User avatar
Elderado704
Posts: 37
Joined: 03 Feb 2016 03:31

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#864 Post by Elderado704 » 09 May 2017 18:09

mkoch227 wrote: Here's how the mobile route advisor handles calculating the ETA. The actually API may include estimated arrival time now (I don't think it did when I wrote that little bit of code) so it may be even easier now.

Hey mike, trying to do the same thing but even with the code in your link it does not work, i lose all info in dash, could you point me in the right direction?
Thanks.

[ external image ]

Code: Select all

// SEE Dashboard Skin Tutorial FOR MORE INFORMATION ABOUT THIS FILE

Funbit.Ets.Telemetry.Dashboard.prototype.filter = function (data, utils) {
    data.hasJob = data.trailer.attached;
    
data.navigation.estimatedDistance = Math.floor((data.navigation.estimatedDistance/1000)*0.621371) + ' mi'; // distance in miles

var timeToDestinationArray = getDaysHoursMinutesAndSeconds(data.navigation.estimatedTime);
data.navigation.estimatedTime = addTime(originalTime,
timeToDestinationArray[1],
timeToDestinationArray[2],
timeToDestinationArray[3]).toISOString();


// round truck speed
    data.truck.speedRounded = Math.abs(data.truck.speed > 0
        ? Math.floor(data.truck.speed)
        : Math.round(data.truck.speed)) * 0.621371;
        
    // convert kilometers per hour to miles per hour (just an example)
    data.truck.speedMph = data.truck.speed * 0.621371;
    // convert kg to t
    data.trailer.mass = Math.round((data.trailer.mass / 1000.0)) + 't';
    // format odometer data as: 00000.0
    data.truck.odometer = utils.formatFloat(data.truck.odometer, 1);
    // convert gear to readable format
    data.truck.gear = data.truck.gear > 0 ? 'D' + data.truck.gear : (data.truck.gear < 0 ? 'R' : 'N');
    // convert rpm to rpm * 100
    data.truck.engineRpm = data.truck.engineRpm / 100;
    // return changed data to the core for rendering
    return data;

}

Funbit.Ets.Telemetry.Dashboard.prototype.render = function (data, utils) {    



}

Funbit.Ets.Telemetry.Dashboard.prototype.initialize = function (skinConfig, utils) {    
    utils.preloadImages(['images/bg-on.jpg']);
    $(document).add('body').on('click', function () {
        window.history.back();
    });



}

NEVER SHOW FEAR, SQUIDS CAN SENSE FEAR.
User avatar
Elderado704
Posts: 37
Joined: 03 Feb 2016 03:31

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#865 Post by Elderado704 » 10 May 2017 21:52

I would like to give a shout out to m4rc10w for all the great dash skins as well as the help he gives out here on the forum. I modified your Kenworth T680 skin to better suit my needs and i could not have done it without you.

Thanks.

[ external image ]

[ external image ]
NEVER SHOW FEAR, SQUIDS CAN SENSE FEAR.
User avatar
m4rc10w
Posts: 97
Joined: 15 Feb 2015 17:52

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#866 Post by m4rc10w » 10 May 2017 22:41

Elderado704 Look nice, good job 8-)
My ETS2/ATS Custom/Edited Dashboards for Funbit ETS2/ATS Telemetry Server
https://www.worldoftrucks.com/en/online ... p?id=25089

[ external image ]
Sorry my bad English, it´s no my native language, then most my posts have help from Google Translate.
nebsi
Posts: 171
Joined: 24 Jul 2015 10:40
Contact:

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#867 Post by nebsi » 12 May 2017 07:56

Great Setup Elderado704
[ external image ] [ external image ]
Ryzen 5 3600X-ASUS 3060TI- 32gb Ram 3600 - AOC Curved-Logitech DFGT
User avatar
1t5_Luc1f3r
Posts: 136
Joined: 14 Jun 2013 12:32
Location: Grimsby, UK

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#868 Post by 1t5_Luc1f3r » 14 May 2017 12:54

m4rc10w wrote:One more rework on Klauzzy´s Scania R dashboard :)
@m4rc10w will you or Klauzzy be doing this dashboard in MPH at all?
When you're down and feeling blue, just remember Eurotruck Simulator 2 or ATS where you can crash into a vehicle or 2!!!

My WOT Profile
sketch
Posts: 79
Joined: 07 Mar 2015 01:16
Location: New Orleans, Louisiana

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#869 Post by sketch » 14 May 2017 21:37

Elderado704 wrote:I would like to give a shout out to m4rc10w for all the great dash skins as well as the help he gives out here on the forum. I modified your Kenworth T680 skin to better suit my needs and i could not have done it without you.

Thanks.
That looks awesome! What is the amber icon for, under the headlight icon?

I modified mine as well, to add another page and with some clean-up and other changes:

[ external image ]

I like to drive without Route Advisor so I like to keep the ETA, bed time, etc., on the dashboard. I've done similar mods to the Peterbilt 579 and Mercedes Atego skins, for my own use in each game.

m4rc10w, you make some really great skins! I can't wait to try them :D The only problem is, every time I buy a new truck, it takes me a couple hours to add all my trip info stuff to its dashboard, so I have less time for driving! ;)
User avatar
m4rc10w
Posts: 97
Joined: 15 Feb 2015 17:52

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#870 Post by m4rc10w » 15 May 2017 06:02

Thanks for your comments, guys :) It encourages me to continue, but now I have to get a little break, my VGA crashed :cry:

@sketch I try to make the panel as close to reality as possible (icons and position thereof, some onboard computer information, etc.) mainly based on Youtube videos, so do not add much other information. But you are free to edit according to your taste or need (and publish also, if wish) ;)
@1t5_Luc1f3r I intend to create 'mph' versions of all dashboard what I can, but not prevision when making them ;)
My ETS2/ATS Custom/Edited Dashboards for Funbit ETS2/ATS Telemetry Server
https://www.worldoftrucks.com/en/online ... p?id=25089

[ external image ]
Sorry my bad English, it´s no my native language, then most my posts have help from Google Translate.
Post Reply

Return to “General discussion about the game”

Who is online

Users browsing this forum: dhrto and 14 guests