Skip to content

v2.1

Choose a tag to compare

@Highpoint2000 Highpoint2000 released this 08 Nov 22:17
· 93 commits to main since this release
47cb9c6

Time Display Plugin for FM-DX-Webserver

This plugin provides a time display (UTC/LOCAL) for the FM-DX web server.

image

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:

  1. Download the last repository as a zip
  2. Unpack all files from the plugins folder to ..fm-dx-webserver-main\plugins\
  3. Stop or close the fm-dx-webserver
  4. Start/Restart the fm-dx-webserver with "npm run webserver" on node.js console, check the console informations
  5. Activate the Screenshot plugin in the settings
  6. Stop or close the fm-dx-webserver
  7. 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

image

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)