ETS2/ATS Telemetry Web Server + Mobile Dashboard
- Elderado704
- Posts: 37
- Joined: 03 Feb 2016 03:31
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
Thanks. I work in miles but i saw an earlier post you made on how to convert, i'll look it up again.
Danke.
Danke.
NEVER SHOW FEAR, SQUIDS CAN SENSE FEAR.
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
In this case, you can try change to this:
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.
Code: Select all
data.navigation.distLeft = Math.floor((data.navigation.estimatedDistance/1000)*0.621371) + ' mi'; // distance in miles
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.
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.
- Elderado704
- Posts: 37
- Joined: 03 Feb 2016 03:31
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
m4rc10w wrote:In this case, you can try change to this: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.Code: Select all
data.navigation.distLeft = Math.floor((data.navigation.estimatedDistance/1000)*0.621371) + ' mi'; // distance in miles
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.
- Elderado704
- Posts: 37
- Joined: 03 Feb 2016 03:31
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
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.
- Elderado704
- Posts: 37
- Joined: 03 Feb 2016 03:31
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
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 ]
Thanks.
[ external image ]
[ external image ]
NEVER SHOW FEAR, SQUIDS CAN SENSE FEAR.
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
Elderado704 Look nice, good job
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.
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.
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
Great Setup Elderado704
[ external image ] [ external image ]
Ryzen 5 3600X-ASUS 3060TI- 32gb Ram 3600 - AOC Curved-Logitech DFGT
Ryzen 5 3600X-ASUS 3060TI- 32gb Ram 3600 - AOC Curved-Logitech DFGT
- 1t5_Luc1f3r
- Posts: 136
- Joined: 14 Jun 2013 12:32
- Location: Grimsby, UK
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
@m4rc10w will you or Klauzzy be doing this dashboard in MPH at all?m4rc10w wrote:One more rework on Klauzzy´s Scania R dashboard
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
My WOT Profile
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
That looks awesome! What is the amber icon for, under the headlight icon?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.
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 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!
Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard
Thanks for your comments, guys It encourages me to continue, but now I have to get a little break, my VGA crashed
@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
@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.
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.
Who is online
Users browsing this forum: dhrto and 14 guests