ets2_tele.git
4 years ago* Upgraded to SDK version 1_17 (game patch 1.41). v0.2.0
Urban Wallasch [Tue, 13 Jul 2021 15:20:16 +0000 (17:20 +0200)]
* Upgraded to SDK version 1_17 (game patch 1.41).
* Added differential lock channel to telemetry.
* Added planned job distance configuration to telemetry.
* Indicate automatic mode for reverse gears.
* Bumped TELE_VERSION to 4.

5 years ago* Silenced fall-through compiler warning. v0.1.0
Urban Wallasch [Thu, 23 Apr 2020 08:44:25 +0000 (10:44 +0200)]
* Silenced fall-through compiler warning.

5 years ago* Fix __cplusplus macro usage.
Urban Wallasch [Thu, 23 Apr 2020 08:17:46 +0000 (10:17 +0200)]
* Fix __cplusplus macro usage.

6 years ago* Added -6 flag to prefer TCP over IPv6, if available.
Urban Wallasch [Fri, 1 Nov 2019 20:02:31 +0000 (21:02 +0100)]
* Added -6 flag to prefer TCP over IPv6, if available.

6 years ago* Replaced str[n]casecmp() with own str_[n]icmp(), fixed case agnostic string search.
Urban Wallasch [Sun, 27 Oct 2019 00:23:20 +0000 (02:23 +0200)]
* Replaced str[n]casecmp() with own str_[n]icmp(), fixed case agnostic string search.

6 years ago* Inspect the "Connection:" request header field and act accordingly.
Urban Wallasch [Sat, 26 Oct 2019 18:44:13 +0000 (20:44 +0200)]
* Inspect the "Connection:" request header field and act accordingly.
* Improved request handling and header parsing.

6 years ago* Improved printf formats and debug code.
Urban Wallasch [Sat, 26 Oct 2019 08:41:02 +0000 (10:41 +0200)]
* Improved printf formats and debug code.

6 years ago* Support HTTP connection keep-alive.
Urban Wallasch [Sat, 26 Oct 2019 00:59:31 +0000 (02:59 +0200)]
* Support HTTP connection keep-alive.
* Fixed some minor issues.

6 years ago* Simplified and fixed rcv_request().
Urban Wallasch [Fri, 25 Oct 2019 21:51:04 +0000 (23:51 +0200)]
* Simplified and fixed rcv_request().

6 years ago* Replaced existing net.[ch] with new versions.
Urban Wallasch [Fri, 25 Oct 2019 15:36:56 +0000 (17:36 +0200)]
* Replaced existing net.[ch] with new versions.
* Replaced read/write with timeout capable versions in telehttpd.
* Dropped fserv.[ch], functionality covered by new net.c.

6 years ago* Fixed wrong job deadline display when game with running job is started but not... posixshm
Urban Wallasch [Sat, 24 Aug 2019 09:23:19 +0000 (11:23 +0200)]
* Fixed wrong job deadline display when game with running job is started but not yet in drive mode.

6 years ago* Reset saved values in dash.html when connection fails to improve (visual) recovery...
Urban Wallasch [Wed, 21 Aug 2019 20:21:10 +0000 (22:21 +0200)]
* Reset saved values in dash.html when connection fails to improve (visual) recovery upon reconnect.

6 years ago* Introduced debug make target, default is now to build w/o debug logging.
Urban Wallasch [Wed, 21 Aug 2019 10:18:04 +0000 (12:18 +0200)]
* Introduced debug make target, default is now to build w/o debug logging.
* Let common signal handler catch SIGPIPE.
* Improved error reporting in several places.
* Changed shared memory file name.

6 years ago* Split unmapping and unlinking shared memory into two separate functions.
Urban Wallasch [Tue, 20 Aug 2019 15:18:28 +0000 (17:18 +0200)]
* Split unmapping and unlinking shared memory into two separate functions.
* Renamed 'key' parameter to 'name' in function signatures in shmget.[ch].

6 years ago* Improved plugin logging.
Urban Wallasch [Tue, 20 Aug 2019 13:19:54 +0000 (15:19 +0200)]
* Improved plugin logging.
* Removed comment cruft.

6 years ago* Replaced SysV style shared memory handling with POSIX interface.
Urban Wallasch [Tue, 20 Aug 2019 12:33:31 +0000 (14:33 +0200)]
* Replaced SysV style shared memory handling with POSIX interface.
* Bumped TELE_VERSION to 3.

6 years ago* Added debug and error logging to tele2json, const'ified argument. rwlock
Urban Wallasch [Mon, 19 Aug 2019 11:54:37 +0000 (13:54 +0200)]
* Added debug and error logging to tele2json, const'ified argument.

6 years ago* Dropped asserts from plugin code.
Urban Wallasch [Mon, 19 Aug 2019 11:02:58 +0000 (13:02 +0200)]
* Dropped asserts from plugin code.
* Trivial fixes and changes to includes, comments and whitespace.

6 years ago* Added telehelper module providing locked read access to shared memory.
Urban Wallasch [Mon, 19 Aug 2019 10:05:08 +0000 (12:05 +0200)]
* Added telehelper module providing locked read access to shared memory.

6 years ago* Moved shared memory read lock handling from tele2json.c to individual clients.
Urban Wallasch [Sun, 18 Aug 2019 20:38:08 +0000 (22:38 +0200)]
* Moved shared memory read lock handling from tele2json.c to individual clients.
* Fixed shared memory rwlock initialization to use appropriate set of attributes.
* Fixed not releasing the write lock when plugin initialization failed.
* Changed order of telemetry data initialization (e.g. raise alive flag only on success).
* Declared shared memory telemetry objects volatile in the clients.

6 years ago* Synchronized shared memory access with pthread read write lock.
Urban Wallasch [Sun, 18 Aug 2019 13:06:36 +0000 (15:06 +0200)]
* Synchronized shared memory access with pthread read write lock.
* Bumped TELE_VERSION to 2.

6 years ago* Fixed telelogger to output at least one dump after shared memory got reattached.
Urban Wallasch [Sun, 18 Aug 2019 12:49:12 +0000 (14:49 +0200)]
* Fixed telelogger to output at least one dump after shared memory got reattached.

6 years ago* Add warning levels to job deadline display.
Urban Wallasch [Tue, 13 Aug 2019 21:30:23 +0000 (23:30 +0200)]
* Add warning levels to job deadline display.

6 years ago* Use different update intervals depending on live / paused / error status.
Urban Wallasch [Tue, 13 Aug 2019 20:35:23 +0000 (22:35 +0200)]
* Use different update intervals depending on live / paused / error status.

6 years ago* Fixed mistyped variable name in telemetry flags check.
Urban Wallasch [Tue, 13 Aug 2019 20:34:21 +0000 (22:34 +0200)]
* Fixed mistyped variable name in telemetry flags check.

6 years ago* Fixed display of invalid negative values for fuel consumption, e.g. in brand new...
Urban Wallasch [Tue, 13 Aug 2019 13:26:54 +0000 (15:26 +0200)]
* Fixed display of invalid negative values for fuel consumption, e.g. in brand new truck.
* Tweaked time to next rest stop warning level threshold to match in-game display.

6 years ago* Fixed regression in delivery deadline display update.
Urban Wallasch [Mon, 12 Aug 2019 14:40:04 +0000 (16:40 +0200)]
* Fixed regression in delivery deadline display update.
* Turned another magic number into a named constant.

6 years ago* Only perform calculations and DOM changes when required to reduce computation and...
Urban Wallasch [Mon, 12 Aug 2019 12:39:14 +0000 (14:39 +0200)]
* Only perform calculations and DOM changes when required to reduce computation and rendering costs.
* Removed dead or redundant code.
* Fixed and improved comments.

6 years ago* Replaced some magic numbers with suitably named constants.
Urban Wallasch [Mon, 12 Aug 2019 10:34:45 +0000 (12:34 +0200)]
* Replaced some magic numbers with suitably named constants.

6 years ago* Replaced double quotes with single quotes for better consistency.
Urban Wallasch [Mon, 12 Aug 2019 09:59:03 +0000 (11:59 +0200)]
* Replaced double quotes with single quotes for better consistency.

6 years ago* Compacted CSS for speed limit display.
Urban Wallasch [Mon, 12 Aug 2019 09:52:16 +0000 (11:52 +0200)]
* Compacted CSS for speed limit display.

6 years ago* Added weekday and time of day display to dash.html.
Urban Wallasch [Sun, 11 Aug 2019 18:19:55 +0000 (20:19 +0200)]
* Added weekday and time of day display to dash.html.
* Improved speed limit sign in dash.html.

6 years ago* Improved SDK version checking and logging.
Urban Wallasch [Sun, 11 Aug 2019 15:07:47 +0000 (17:07 +0200)]
* Improved SDK version checking and logging.

6 years ago* Added throttle bar and rpm bar to dash.html.
Urban Wallasch [Fri, 9 Aug 2019 12:08:13 +0000 (14:08 +0200)]
* Added throttle bar and rpm bar to dash.html.

6 years ago* Replaced bool with a type of explicit fixed width.
Urban Wallasch [Fri, 9 Aug 2019 07:57:01 +0000 (09:57 +0200)]
* Replaced bool with a type of explicit fixed width.
* Renamed placement_available to placement_isvalid.
* Added missing placement_isvalid variable to JSON output.

6 years ago* Copied current state of dash.html to default index.html.
Urban Wallasch [Fri, 9 Aug 2019 07:51:29 +0000 (09:51 +0200)]
* Copied current state of dash.html to default index.html.

6 years ago* Added timeouts to elapse before disabling NoSleep in offline or paused mode.
Urban Wallasch [Thu, 8 Aug 2019 12:05:57 +0000 (14:05 +0200)]
* Added timeouts to elapse before disabling NoSleep in offline or paused mode.
* Fixed off-by-one error in fuel and fuel_range WRT in-game display.

6 years ago* Tweaked some minor aspects of browser presentation.
Urban Wallasch [Mon, 5 Aug 2019 10:41:28 +0000 (12:41 +0200)]
* Tweaked some minor aspects of browser presentation.

6 years ago* Added NoSleep code to keep mobile devices from entering standby mode.
Urban Wallasch [Sun, 4 Aug 2019 16:51:32 +0000 (18:51 +0200)]
* Added NoSleep code to keep mobile devices from entering standby mode.
  The wake lock is acivated by the user touching or clicking the page
  and is automatically disabled upon entering paused or error state.

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