Scar Posted January 2, 2015 Share Posted January 2, 2015 I'm bored and playing around with my ios coding skills - which are not high at this moment - to create a native ios app.I got some stuff working right now but i'm confused by understanding some elements from the json output...Example 1: "gameTime":"0001-01-25T20:35:00+01:00" seems to be Monday 20:35, how do you know it's a monday? In what measure unit do they express speed ect? Scar | Retired Legend You can design and create, and build the most wonderful place in the world. But it takes people to make the dream a reality. Banned: HELP! - Report a player - Help - Rules - Staff recruitment - Complaints/feedback Link to comment Share on other sites More sharing options...
ForeverAloneTrucker Posted January 2, 2015 Author Share Posted January 2, 2015 @Scarface0359 this is my idea; this date format ISO 8601. You can convert ISO date to readable date. (in gauge.js data.gameTime = this.isoToReadableDate(data.gameTime)) and there was a note in the server project files; since ETS2 does not support months, we always use January 0001 year You can convert iso to readable date you can find day name but your example result Thursday not Monday and I have no idea :/ Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2015 Share Posted January 2, 2015 HTC ONE V / shows nothing while in game Lumia 735 / shows data only after refreshing, but its stuck The default Android browser is technically EOL, new phones are all(afaik) shipped with Chrome instead. @RichusLV same problem here. I can find android default browser bug in index.htm line 105 Window.gaugeInstance = new Funbit.Ets.Telemetry.Components.Gauge(endpointUrl, refreshDelay); replace with window.gaugeInstance = new Funbit.Ets.Telemetry.Components.Gauge(endpointUrl, refreshDelay); only w letter brings problem on android default browser. Maybe solution for your Lumia 735 and HTC ONE V, try it pls. edit: speedometers continues not working, but other information is working with this correction edit: speedometers working after a few refresh but sometimes it gets stuck. edit: for stuck speedometers, go with your truck and refresh page then scale page. If truck stop and refreshing page speedometers get stuck. If you got a github account, you can make the change yourself in this file and submit as a pull request to Funbits: https://github.com/Funbit/ets2-telemetry-server/blob/master/source/Funbit.Ets.Telemetry.Server/Apps/Ets2/index.htm#L105 Can you try with another browser on windows phone? And what is windows version on phone? Unfortunatley, there are no other browser than Trident based ones on WP8/8.1 I'm bored and playing around with my ios coding skills - which are not high at this moment - to create a native ios app. I got some stuff working right now but i'm confused by understanding some elements from the json output... Example 1: "gameTime":"0001-01-25T20:35:00+01:00" seems to be Monday 20:35, how do you know it's a monday? In what measure unit do they express speed ect? DOW is still kinda up in the air, ref: https://github.com/Funbit/ets2-telemetry-server/issues/6, I've tried to look into this but I'm not 100% certain how the telemetry api does it, I'm going to test a few things to establish how it's represented in-game(in memory), my working theory is that it's number of seconds since game start. Speed is measured in KM/H in the api, I'll see if I can make a switch that will let you switch it to MPH(should be pretty simple since MPH=KMPH/1.6) Link to comment Share on other sites More sharing options...
ForeverAloneTrucker Posted January 3, 2015 Author Share Posted January 3, 2015 @TuxyQ I do not have enough English to use GitHub I am using translator in here Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2015 Share Posted January 3, 2015 @ForeverAloneTrucker: np, I've made the change and reffered back to you(I think) Link to comment Share on other sites More sharing options...
ForeverAloneTrucker Posted January 3, 2015 Author Share Posted January 3, 2015 Thanks TuxyQ ref is not needed, enough to think about. Yayy mod recently updated with android apk and a few bugs repaired I'll try tonight Link to comment Share on other sites More sharing options...
Heemse Posted January 3, 2015 Share Posted January 3, 2015 How to install the apk? New update? Link to comment Share on other sites More sharing options...
Funbit Posted January 3, 2015 Share Posted January 3, 2015 Would you mind putting it into an android app since you created it, don't wanna take it away from you. The android application is now included in the server bundle. You may download it from the github. I can find android default browser bug in index.htm Fixed. On Lumia nothing. Officially, I don't support Windows Phone devices because I don't have one. The HTML5/JS code works in IE 11, Firefox, Chrome, Android 4+ or iOS Safari. If there is a problem with Windows Phone's IE then I need somebody to find a way to fix it and let me know how... "gameTime":"0001-01-25T20:35:00+01:00" seems to be Monday 20:35, how do you know it's a monday? I have chosen 0001 year because 1st January of 0001 is Monday, and game starts user's time from Monday. Not sure about leap years though... BTW: The latest version (1.0.3) has fix for a bug related to the incorrect day of the week. Please make sure that you use latest version. In what measure unit do they express speed ect? In meters/secs. Please read the updated instructions on the github page about JSON. How to install the apk? New update? Just copy APK file to your device. Run any file manager (usually you have something preinstalled), find the APK and click on it. The device will prompt you to install the application. If it does not - make sure that you allowed application installation from "Unknown" sources in the device's Security settings. The server is updated to version 1.0.3: https://github.com/Funbit/ets2-telemetry-server 1.0.3 changes: - Fixed bug with invalid day of the week - Improved connection stability - Completely decoupled gauge design and gauge update engine (coded in Typescript) so it is easier to create custom skins - Added some scripts to simplify the installation for new users - Updated Android application PS. I'm going to be pretty busy next week so probably there won't be any major updates. But the current version is pretty stable and thoroughly tested on the following devices and browsers: iPhone 6 Plus, Galaxy Note 1/2, Kindle Fire HD, Galaxy Tab S, Firefox 34, Chrome 39, IE 11. Link to comment Share on other sites More sharing options...
Heemse Posted January 3, 2015 Share Posted January 3, 2015 Does 1.0.3 support MP ? Link to comment Share on other sites More sharing options...
Funbit Posted January 3, 2015 Share Posted January 3, 2015 Does 1.0.3 support MP ? Yes, it should. I haven't tested it myself though (don't have it), would be great if you try it and let us know! Link to comment Share on other sites More sharing options...
Heemse Posted January 3, 2015 Share Posted January 3, 2015 I got the App - But what do I need to put in the Telemetry Api server IP Adress? The full adress or just the numbers? Link to comment Share on other sites More sharing options...
Funbit Posted January 3, 2015 Share Posted January 3, 2015 The IP address is just numbers. Please read the manual carefully. Thank you. Link to comment Share on other sites More sharing options...
Heemse Posted January 3, 2015 Share Posted January 3, 2015 navigate to the "ETS2 App URL" displayed by the server. Android users: run "Ets2 Gauge" application, enter server IP (without http part) and press OK. If IP address is correct it will be Just saw it ye - It ays Could not connect to the server. Link to comment Share on other sites More sharing options...
ForeverAloneTrucker Posted January 3, 2015 Author Share Posted January 3, 2015 - Open telemetry server look at the ip. - Go back to tha android app and write only ip no http, no port. I just tried, it works. Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2015 Share Posted January 3, 2015 Officially, I don't support Windows Phone devices because I don't have one. The HTML5/JS code works in IE 11, Firefox, Chrome, Android 4+ or iOS Safari. If there is a problem with Windows Phone's IE then I need somebody to find a way to fix it and let me know how... I got a WP device and are working on debugging why it doesn't work. Does 1.0.3 support MP ? Yes, This was patched a few days ago ref my post (It failed due to different title for the MP version) navigate to the "ETS2 App URL" displayed by the server. Android users: run "Ets2 Gauge" application, enter server IP (without http part) and press OK. If IP address is correct it will be Just saw it ye - It ays Could not connect to the server. Is it running as admin? Can you post the IP that it shows? (don't worry, it's a private IP so shouldn't be any big issue) Link to comment Share on other sites More sharing options...
Heemse Posted January 3, 2015 Share Posted January 3, 2015 Do I have to install your patch? I just installed the 1.0.3 not a patch. But.. Ahm' - It just says 192.168.2.4:25555 Link to comment Share on other sites More sharing options...
ForeverAloneTrucker Posted January 3, 2015 Author Share Posted January 3, 2015 @Ricardo no more patch. Stabil version 1.0.3 not need the patch. Type your android apk this ip without port: 192.168.2.4 Is supposed to work. Link to comment Share on other sites More sharing options...
Heemse Posted January 3, 2015 Share Posted January 3, 2015 Its now saying "Connecting... " and after 10 seconds again "Could not find blabla". When I run the Local.exe thingy it just appears a black cmd box. But not letters and closes again in 0.1 milisec. New problem: Now its working but it freezes. Neutral... Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2015 Share Posted January 3, 2015 For those few of us who are Windows Phone users, I've opened an issue on the github page with my current findings: https://github.com/Funbit/ets2-telemetry-server/issues/10 Link to comment Share on other sites More sharing options...
Crazyforiphone Posted January 4, 2015 Share Posted January 4, 2015 I am using the android app and it will not connect the server url is 192.168.1.4:25555 and I am putting in 192.168.4.2 and it just tells me it can not connect. Link to comment Share on other sites More sharing options...
Funbit Posted January 4, 2015 Share Posted January 4, 2015 For those few of us who are Windows Phone users, I've opened an issue on the github page with my current findings: https://github.com/Funbit/ets2-telemetry-server/issues/10 Please try the version 1.0.4, it should fix the issue with Windows Phone. Let me know if it does Version 1.0.4: https://github.com/Funbit/ets2-telemetry-server Link to comment Share on other sites More sharing options...
Funbit Posted January 4, 2015 Share Posted January 4, 2015 I am using the android app and it will not connect the server url is 192.168.1.4:25555 and I am putting in 192.168.4.2 and it just tells me it can not connect. The first thing you should try is to connect to the "HTML5 App URL" (which should be "http://192.168.1.4:25555/"for you) from your Android browser and see what will happen. If browser does not connect - then most probably you have Firewall issues. Have you read the tutorial and run Add-25555-Rule-Local.lnk ? Link to comment Share on other sites More sharing options...
Crazyforiphone Posted January 4, 2015 Share Posted January 4, 2015 The first thing you should try is to connect to the "HTML5 App URL" (which should be "http://192.168.1.4:25555/"for you) from your Android browser and see what will happen. If browser does not connect - then most probably you have Firewall issues. Have you read the tutorial and run Add-25555-Rule-Local.lnk ? the one thing i didnt read, to run that, thank you so much for the fast reply, and i am loving the app so far! By the way, trucks with modded gearboxes (18 gears for example) show gears wrong, i don't know if it is something on scs's side or on your side. Link to comment Share on other sites More sharing options...
Crazyforiphone Posted January 6, 2015 Share Posted January 6, 2015 Sorry for double post but I found a bug. This was running 1.0.3 as I could not get 1.0.4 on my pc recently, but after co km pelting a job, the job details stayed on the screen and did not dissappear but they did change when I picked a new load up (minor bug) Link to comment Share on other sites More sharing options...
Funbit Posted January 6, 2015 Share Posted January 6, 2015 Sorry for double post but I found a bug. This was running 1.0.3 as I could not get 1.0.4 on my pc recently, but after co km pelting a job, the job details stayed on the screen and did not dissappear but they did change when I picked a new load up (minor bug) Unfortunately it is not a bug, but telemetry SDK limitation. Hope developers will fix that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.