ETS2/ATS Telemetry Web Server + Mobile Dashboard

User avatar
1t5_Luc1f3r
Posts: 308
Joined: 14 Jun 2013 12:32
Location: Grimsby, UK

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#911 Post by 1t5_Luc1f3r » 23 Jul 2017 12:09

@ m4rc10w

Do we need to change the telemery server for using your dashboard as I am not getting any symbols show up only battery when engine off and CC symbol and park brake, nothing else shows up
When you're down and feeling blue, just remember Eurotruck Simulator 2 where you can crash into a vehicle or 2!!!

My WOT Profile

User avatar
m4rc10w
Posts: 95
Joined: 15 Feb 2015 17:52

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#912 Post by m4rc10w » 23 Jul 2017 12:25

@1t5_Luc1f3r, no, may be the browser you is using what´s no compatible, try chrome instead (work fine here) ;)

EDIT - The app stopped working suddenly here :evil:, I made a trip and everything ran normally, but now it does not work anymore, I load the dashboard in the browser but it does not work (happens in all skins, not just mine) I downloaded it in github again but nothing yet :(

Opened the API URL and get this (solved, trailer mod issue, apparently. Disabled all my trailer mods and worked fine again 8-) ):

Code: Select all

// 20170723125011
// http://127.0.0.1:25555/api/ets2/telemetry

{
  "message": "An error has occurred.",
  "exceptionMessage": "Error getting value from 'Name' on 'Funbit.Ets.Telemetry.Server.Data.Ets2Trailer'.",
  "exceptionType": "Newtonsoft.Json.JsonSerializationException",
  "stackTrace": "   em Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)\r\n   em Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)\r\n   em Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n   em Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)\r\n   em Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n   em Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)\r\n   em Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)\r\n   em Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)\r\n   em Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)\r\n   em Funbit.Ets.Telemetry.Server.Controllers.Ets2TelemetryController.GetEts2TelemetryJson()\r\n   em Funbit.Ets.Telemetry.Server.Controllers.Ets2TelemetryController.Get()\r\n   em lambda_method(Closure , Object , Object[] )\r\n   em System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   em System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   em System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n   em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   em System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n   em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   em System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n   em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   em System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()",
  "innerException": {
    "message": "An error has occurred.",
    "exceptionMessage": "Número não-negativo necessário.\r\nNome do parâmetro: count",
    "exceptionType": "System.ArgumentOutOfRangeException",
    "stackTrace": "   em System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)\r\n   em Funbit.Ets.Telemetry.Server.Data.Ets2TelemetryData.BytesToString(Byte[] bytes)\r\n   em GetName(Object )\r\n   em Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)"
  }
}
My ETS2/ATS Custom/Edited Dashboards for Funbit ETS2/ATS Telemetry Server
https://www.worldoftrucks.com/en/online ... p?id=25089
Sorry my bad English, it´s no my native language, then most my posts have help from Google Translate.

GenericallyNamed
Posts: 6
Joined: 23 Jul 2017 00:11

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#913 Post by GenericallyNamed » 28 Jul 2017 11:26

can someone help me with this? i've downloaded it and followed the installation instructions, but i'm still lost. im pretty sure my phone is now connected to the server, but the gauge just permanently says "connected, waiting for the drive"
am I doing something wrong? please help. thanks.

mich.chr
Posts: 2
Joined: 07 Aug 2017 10:21

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#914 Post by mich.chr » 07 Aug 2017 12:03

Trying to code a specific function for Funbits HTML5 telemetry dashboard for Eurotruck simulator 2. The function should go like: <> an integer value for a variable provided by a coremodule is larger than 0 <> an image should be displayed <> it should remain hidden. The Coremodule is constructed so if I in my *.JS file write: data.truck.retarderBrake (which is an integer) Then the coremodule will return the current integervalue.

So my "pseudo code" will look something like this:

Code: Select all

if (data.truck.retarderBrake>0) {
    show.image ('images/RetarderON.png');
    } else {
    hide.image ('images/RetarderON.png');
}
In my html code I have a statement for the image:

    <div class="RetarderOn"></div>
and the CSS looks like this:

.RetarderOn {
  background-image: url("images/RetarderON.png");
  position: absolute;
  left: 851px;
  top: 13px;
  width: 92px;
  height: 71px;
  visibility: hidden;
}
Can I do it this way ? - and what would the correct syntax for the JS if statement be. Maybe I can define all the properties of the image in the JS file instead of the CSS file??

As you can tell I have no coding background - so any help would be appeciated.

User avatar
airbus_sai
Beta tester
Posts: 590
Joined: 14 Jan 2013 17:15

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#915 Post by airbus_sai » 07 Aug 2017 17:15

mich.chr, one good way to learn coding is to look for examples. And "volvo-fh" skin in the default pack has retarder indication. According to it, you can completely remove retarder from JS code.

But your pseudo-code should work, too. You can remove path to image in JS code, because you have it in CSS as background anyway. If you want to go all-JS, you can use document.getElementByID('sometext').visibility = "hidden"; to hide stuff, and ...= "visible"; to show stuff. :) (Of course you should google that before using. I'm just giving you search queries.)
"Now, I am become Death, the destroyer of squirrels."

mich.chr
Posts: 2
Joined: 07 Aug 2017 10:21

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#916 Post by mich.chr » 07 Aug 2017 18:47

airbus_sai... Thanks a lot. I took your advise and started to look around for code examples to "plank" - Got one and solved it in a different way.

In the JS file I introduced:
data.retarderICON = data.truck.retarderBrake > 0 ? true : false;

Then I use the CSS file to set the image file (default to hidden) however if data.retarderICON is true then an image is displayed :-)

sketch
Posts: 83
Joined: 07 Mar 2015 01:16
Location: New Orleans, Louisiana

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#917 Post by sketch » 12 Aug 2017 17:29

https://youtu.be/-r7nXXhZOB0

Looks awesome!!!!!!!

Rybak04
Posts: 16
Joined: 24 Feb 2015 16:25

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#918 Post by Rybak04 » 19 Aug 2017 19:59

Any update coming for the ATS map? Downloaded the latest version of the route adviser now just says map not available.

User avatar
rockandrole18
Posts: 108
Joined: 08 Apr 2017 22:28
Contact:

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#919 Post by rockandrole18 » 20 Aug 2017 13:28

@Rybak04

You may get a better answer in the actual skin mod thread: viewtopic.php?t=178742

mkoch227
Posts: 126
Joined: 13 Feb 2015 16:05
Contact:

Re: ETS2/ATS Telemetry Web Server + Mobile Dashboard

#920 Post by mkoch227 » 20 Aug 2017 19:18

@ Rybak04

Read the "NOTICE" at viewtopic.php?p=787410#p787296.
Last edited by ohaha on 07 Oct 2017 18:22, edited 1 time in total.
Reason: Quote removed. Do not quote entire messages. Use direct addressing.
Image

Post Reply

Return to “General discussion about game”

Who is online

Users browsing this forum: No registered users and 12 guests