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.
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.
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.
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.
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.
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.
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.
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.
* 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().
* 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.
* 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.
* 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.
* 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.