v2.1
Time Display Plugin for FM-DX-Webserver
This plugin provides a time display (UTC/LOCAL) for the FM-DX web server.
Version 2.1
- Saving the configuration in a JSON file
- Added side-by-side arrangement of time displays
- Determination of the display when called up for the first time
Installation notes:
- Download the last repository as a zip
- Unpack all files from the plugins folder to ..fm-dx-webserver-main\plugins\
- Stop or close the fm-dx-webserver
- Start/Restart the fm-dx-webserver with "npm run webserver" on node.js console, check the console informations
- Activate the Screenshot plugin in the settings
- Stop or close the fm-dx-webserver
- Start/Restart the fm-dx-webserver with "npm run webserver" on node.js console, check the console informations
Configuration options:
The following variables can be changed in the header of the screenshot.js:
showTimeOnPhone = true; // Set to true to enable display on mobile, false to hide it
VerticalCorrectionPosition = '0'; // Pixel value for vertical correction of the time display (e.g., 80, -100 / default = 0)
HorizontalCorrectionPosition = '0'; // Pixel value for horizontal correction of the time display (e.g., 50, -60 / default = 0)
initialDisplayState = '0'; // 0 for both, 1 for local time only, 2 for UTC only (default display on first load)
timeDisplayInline = true; // true to display times side-by-side, false to display them stacked vertically
Important notes:
- Click on the time display to switch beetween UTC, Local Time and UTC & Local Time
- A switch in the json.config can be used to toggle the time display on mobile devices on and off
- Move the time display to an individual position using variables in the json.config
- In the json.config you can specify which type of display is loaded the first time it is called and whether the time displays should be one below the other or next to each other
History:
Version 2.0
- Time display has been moved to the header area
- Individual position correction added to the header
Version 1.0a
- Design adjustments
Version 1.0
- UTC and Local Time supportet (Click on the time display to switch)
- Switch for time display on mobile devices (located in the header of the script)

