Skip to content

v1.0

Choose a tag to compare

@Highpoint2000 Highpoint2000 released this 30 Oct 21:50
· 14 commits to main since this release

CanLogServer Plugin for FM-DX-Webserver

This plugin provides a central server to manage the FMLIST logs that have been send automatic over the scanner plugin.

Version 1.0

When using multiple web servers, it is recommended to use a central server to manage the FMLIST log entries. The CanLogServer prevents multiple web servers from entering the same station into the FMLIST database at the same time interval.

Installation notes:

  1. Download the last repository as a zip
  2. Unpack the CanLogServerPlugin,js and the CanLogServer folder (with the canlog.js and canlog_server.js) into the web server plugins folder (..fm-dx-webserver-main\plugins)
  3. Restart the server
  4. Activate the plugin it in the settings

Notes:

  • Do not delete canlog.js even if it is empty!
  • Please enter Server:Port (e.g. 127.0.0.1:2000) in the JSON configuration file of the scanner plugin
  • When the server is used, the log interval set in the scanner.json is inactive because the log interval set for the server takes precedence

Configuration options:

The following variables can be changed in the header of the canlog_server.js:

const PORT = 2000; 		// Port on which the server should run
let LogInterval = 60;     	// Specify here in minutes when a log entry can be sent again (default: 60, minimum 60)