v1.0
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:
- Download the last repository as a zip
- 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)
- Restart the server
- 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)