ets2_tele.git
6 years ago* Made another attempt to improve the current fuel consumption calculation.
Urban Wallasch [Sun, 4 Aug 2019 13:33:39 +0000 (15:33 +0200)]
* Made another attempt to improve the current fuel consumption calculation.

6 years ago* Added effective throttle channel to telemetry.
Urban Wallasch [Sun, 4 Aug 2019 10:53:48 +0000 (12:53 +0200)]
* Added effective throttle channel to telemetry.

6 years ago* Fixed a bunch of potential unterminated string and/or buffer overrun errors.
Urban Wallasch [Sun, 4 Aug 2019 09:55:47 +0000 (11:55 +0200)]
* Fixed a bunch of potential unterminated string and/or buffer overrun errors.
* Refactored some code.

6 years ago* Fixed bracing style.
Urban Wallasch [Sun, 4 Aug 2019 09:55:11 +0000 (11:55 +0200)]
* Fixed bracing style.

6 years ago* Tweaked next rest stop warning level a tiny bit.
Urban Wallasch [Sun, 4 Aug 2019 09:54:08 +0000 (11:54 +0200)]
* Tweaked next rest stop warning level a tiny bit.

6 years ago* Replaced all integer types by their fixed-width equivalents and
Urban Wallasch [Sat, 3 Aug 2019 16:57:00 +0000 (18:57 +0200)]
* Replaced all integer types by their fixed-width equivalents and
  all floats by double in telemetry_state_t struct and related code.
* Increased floating point output precision in tele2json() to 12 digits.

6 years ago* Added shared memory sanity checks to telehttpd and telelogger.
Urban Wallasch [Sat, 3 Aug 2019 16:19:58 +0000 (18:19 +0200)]
* Added shared memory sanity checks to telehttpd and telelogger.
* Added command line options to allow telehttpd and telelogger to try to re-attach to shared memory.
* Added flags and version fields to telemetry struct.
* Improved error handling in several places.
* Some minor fixes and improvements.

6 years ago* Added configuration and command line options to control output frequency and count.
Urban Wallasch [Wed, 31 Jul 2019 19:58:30 +0000 (21:58 +0200)]
* Added configuration and command line options to control output frequency and count.
* Added option to ignore paused status.

6 years ago* Added use message to telehttpd.
Urban Wallasch [Wed, 31 Jul 2019 19:56:57 +0000 (21:56 +0200)]
* Added use message to telehttpd.

6 years ago* Moved JSON formatting to own module, shared by telehttpd and telelogger.
Urban Wallasch [Wed, 31 Jul 2019 17:23:14 +0000 (19:23 +0200)]
* Moved JSON formatting to own module, shared by telehttpd and telelogger.
* Switched telelogger output to unprocessed JSON.

6 years ago* Improved error checking and logging during plugin initialization.
Urban Wallasch [Wed, 31 Jul 2019 16:00:44 +0000 (18:00 +0200)]
* Improved error checking and logging during plugin initialization.

6 years ago* Added more truck and job configuration data to telemetry.
Urban Wallasch [Wed, 31 Jul 2019 12:17:23 +0000 (14:17 +0200)]
* Added more truck and job configuration data to telemetry.

6 years ago* Trivial fix in comment.
Urban Wallasch [Tue, 30 Jul 2019 16:27:33 +0000 (18:27 +0200)]
* Trivial fix in comment.

6 years ago* Fixed some uncritical stuff in Makefile and some header files.
Urban Wallasch [Tue, 30 Jul 2019 16:25:50 +0000 (18:25 +0200)]
* Fixed some uncritical stuff in Makefile and some header files.

6 years ago* Fixed formatting of negative time values.
Urban Wallasch [Tue, 30 Jul 2019 13:09:24 +0000 (15:09 +0200)]
* Fixed formatting of negative time values.
* Tweaked speed limit warning thresholds.
* Moved styling of special delivery time values to style sheet.

6 years ago* Log in-game time along with configuration and gameplay events.
Urban Wallasch [Mon, 29 Jul 2019 11:14:50 +0000 (13:14 +0200)]
* Log in-game time along with configuration and gameplay events.

6 years ago* Rearranged code in dash.html and fixed some small issues.
Urban Wallasch [Mon, 29 Jul 2019 07:39:09 +0000 (09:39 +0200)]
* Rearranged code in dash.html and fixed some small issues.

6 years ago* Added current fuel consumption display.
Urban Wallasch [Sun, 28 Jul 2019 16:58:47 +0000 (18:58 +0200)]
* Added current fuel consumption display.
* Fixed display of invalid delivery times for external (WoT) contracts.
* Fixed(?) display of forward gear number, again.
* Replaced several instances of Math.round() with .toFixed() method.
* Removed spurious calls to Math.floor().

6 years ago* Fixed speed display when driving in reverse.
Urban Wallasch [Sun, 28 Jul 2019 09:23:31 +0000 (11:23 +0200)]
* Fixed speed display when driving in reverse.

6 years ago* Added forward gear count to telemetry and use it to fix skewed gear display.
Urban Wallasch [Sun, 28 Jul 2019 09:21:02 +0000 (11:21 +0200)]
* Added forward gear count to telemetry and use it to fix skewed gear display.

6 years ago* Added -O2 to compiler flags.
Urban Wallasch [Sun, 28 Jul 2019 08:36:08 +0000 (10:36 +0200)]
* Added -O2 to compiler flags.

6 years ago* Handle previously missing type SCS_VALUE_TYPE_s64 in named value logging.
Urban Wallasch [Sun, 28 Jul 2019 08:35:41 +0000 (10:35 +0200)]
* Handle previously missing type SCS_VALUE_TYPE_s64 in named value logging.

6 years ago* Raised required telemetry API version to 1.01 for gameplay events support.
Urban Wallasch [Sat, 27 Jul 2019 22:33:21 +0000 (00:33 +0200)]
* Raised required telemetry API version to 1.01 for gameplay events support.
* Added gameplay event handler to plugin.
* Added job validity state to telemetry, derived from job termination events.
* Some small improvements.

6 years ago* Added game_time to telemetry.
Urban Wallasch [Sat, 27 Jul 2019 19:35:22 +0000 (21:35 +0200)]
* Added game_time to telemetry.
* Added delivery_time to telemetry and display.
* Reworked display formatting, CSS and JavaScript.

6 years ago* Use actual attribute constants as defined in SDK headers.
Urban Wallasch [Sat, 27 Jul 2019 16:45:35 +0000 (18:45 +0200)]
* Use actual attribute constants as defined in SDK headers.

6 years ago* Moved navigation speed limit display next to cruise control display in dash.html.
Urban Wallasch [Sat, 27 Jul 2019 15:12:21 +0000 (17:12 +0200)]
* Moved navigation speed limit display next to cruise control display in dash.html.

6 years ago* Added time to next rest stop to telemetry and display.
Urban Wallasch [Sat, 27 Jul 2019 15:08:27 +0000 (17:08 +0200)]
* Added time to next rest stop to telemetry and display.

6 years ago* Improved JavaScript object handling and pause / error status display.
Urban Wallasch [Sat, 27 Jul 2019 14:12:29 +0000 (16:12 +0200)]
* Improved JavaScript object handling and pause / error status display.

6 years ago* Track and display automatic vs. manual shifter type setting.
Urban Wallasch [Sat, 27 Jul 2019 13:26:42 +0000 (15:26 +0200)]
* Track and display automatic vs. manual shifter type setting.

6 years ago* Changed game paused indication in dash.html to displaying a dedicated element,...
Urban Wallasch [Sat, 27 Jul 2019 12:57:42 +0000 (14:57 +0200)]
* Changed game paused indication in dash.html to displaying a dedicated element, no more dimming.
* Implemented basic HTTP and network error handling and display in dash.html.

6 years ago* Renamed plugin to teleshmem.
Urban Wallasch [Sat, 27 Jul 2019 11:59:39 +0000 (13:59 +0200)]
* Renamed plugin to teleshmem.
* (Re-)implemented logging to file in plugin.
* Reactivated telemetry_configuration() callback.

6 years ago* Small tweaks to the speed limit display.
Urban Wallasch [Sat, 27 Jul 2019 08:52:37 +0000 (10:52 +0200)]
* Small tweaks to the speed limit display.

6 years ago* Added fancy navigation speed limit display to dash.html.
Urban Wallasch [Sat, 27 Jul 2019 07:35:40 +0000 (09:35 +0200)]
* Added fancy navigation speed limit display to dash.html.

6 years ago* Include effective clutch channel in telemetry.
Urban Wallasch [Fri, 26 Jul 2019 05:20:01 +0000 (07:20 +0200)]
* Include effective clutch channel in telemetry.
* Indicate clutch state by highliting gear display in dash.html.
* Indicate paused state by dimming default font color in dash.html.

6 years ago* Correctly track and display simulation paused status in telelogger.
Urban Wallasch [Thu, 25 Jul 2019 22:14:56 +0000 (00:14 +0200)]
* Correctly track and display simulation paused status in telelogger.

6 years agoMerge branch 'cleanup'
volpol [Thu, 25 Jul 2019 21:08:49 +0000 (23:08 +0200)]
Merge branch 'cleanup'

6 years ago* Prevent average fuel consumption of 0 from being stored
volpol [Thu, 25 Jul 2019 21:02:39 +0000 (23:02 +0200)]
* Prevent average fuel consumption of 0 from being stored

6 years ago* Added telelogger to clean target
volpol [Thu, 25 Jul 2019 21:02:08 +0000 (23:02 +0200)]
* Added telelogger to clean target

6 years ago* Centralized all shared memory handling in shmget.c.
Urban Wallasch [Thu, 25 Jul 2019 16:57:40 +0000 (18:57 +0200)]
* Centralized all shared memory handling in shmget.c.
* Disentangled telemetry structure and shared memory handling.

6 years ago* Added dash.html, which uses (almost) all information currently available from teleh...
Urban Wallasch [Wed, 24 Jul 2019 11:30:34 +0000 (13:30 +0200)]
* Added dash.html, which uses (almost) all information currently available from telehttpd.

6 years ago* Fixed json variable names.
Urban Wallasch [Wed, 24 Jul 2019 10:38:07 +0000 (12:38 +0200)]
* Fixed json variable names.

6 years ago* Fixed switched version warning state in telelogger output.
Urban Wallasch [Tue, 23 Jul 2019 12:29:52 +0000 (14:29 +0200)]
* Fixed switched version warning state in telelogger output.

6 years ago* Added game id, version info and paused state to telemetry.
Urban Wallasch [Tue, 23 Jul 2019 12:24:18 +0000 (14:24 +0200)]
* Added game id, version info and paused state to telemetry.
* Removed some cruft from telemetry.cpp.

6 years ago* Added several parameters to telemetry.
Urban Wallasch [Tue, 23 Jul 2019 11:49:16 +0000 (13:49 +0200)]
* Added several parameters to telemetry.
* Small improvements in telemetry .cpp.

6 years ago* Switched to -std=c99 compile mode, using explicit feature macros where necessary.
Urban Wallasch [Mon, 22 Jul 2019 13:22:59 +0000 (15:22 +0200)]
* Switched to -std=c99 compile mode, using explicit feature macros where necessary.
* Removed ntime dependency from fserv.c.

6 years ago* Fixed and improved HTTP server logic.
Urban Wallasch [Mon, 22 Jul 2019 05:07:11 +0000 (07:07 +0200)]
* Fixed and improved HTTP server logic.
* Added configuration and command line argument processing.
* Fixed and improved script in index.html page.
* Added plain.html page.

6 years ago* Improved JSON encoding.
Urban Wallasch [Mon, 22 Jul 2019 03:05:50 +0000 (05:05 +0200)]
* Improved JSON encoding.
* Small improvements.

6 years ago* Dropped unneded header inclusions from telelogger.c.
Urban Wallasch [Sun, 21 Jul 2019 22:00:51 +0000 (00:00 +0200)]
* Dropped unneded header inclusions from telelogger.c.

6 years ago* Fixed telelogger Makefile recipe.
Urban Wallasch [Sun, 21 Jul 2019 21:43:09 +0000 (23:43 +0200)]
* Fixed telelogger Makefile recipe.

6 years ago* Added simple console logger application.
Urban Wallasch [Sun, 21 Jul 2019 21:40:38 +0000 (23:40 +0200)]
* Added simple console logger application.

6 years ago* Fixed truck placement callback registration.
Urban Wallasch [Sun, 21 Jul 2019 21:38:51 +0000 (23:38 +0200)]
* Fixed truck placement callback registration.

6 years ago* Separated shared memory management and HTTP server code.
Urban Wallasch [Sun, 21 Jul 2019 19:09:27 +0000 (21:09 +0200)]
* Separated shared memory management and HTTP server code.
* Improved Makefile logic.

6 years ago* Fixed indentation.
Urban Wallasch [Sun, 21 Jul 2019 19:08:02 +0000 (21:08 +0200)]
* Fixed indentation.

6 years ago* Renamed and improved shared memory management functions.
Urban Wallasch [Sun, 21 Jul 2019 18:55:36 +0000 (20:55 +0200)]
* Renamed and improved shared memory management functions.

6 years ago* Moved telemetry_state_t declaration and SHM_KEY to new file telemetry.h.
Urban Wallasch [Sun, 21 Jul 2019 17:26:42 +0000 (19:26 +0200)]
* Moved telemetry_state_t declaration and SHM_KEY to new file telemetry.h.

6 years ago* Fixed whitespace, indentation, bracing style.
Urban Wallasch [Sun, 21 Jul 2019 17:14:40 +0000 (19:14 +0200)]
* Fixed whitespace, indentation, bracing style.
* Removed clutter.

6 years ago* Added .gitignore.
Urban Wallasch [Sun, 21 Jul 2019 17:14:09 +0000 (19:14 +0200)]
* Added .gitignore.

6 years agoinitial commit
volpol [Sat, 20 Jul 2019 15:39:50 +0000 (17:39 +0200)]
initial commit