4d — Web Server

Preferences ▸ Web Server · 4d User Manual

← Back to Preferences

Web Server — the status website and the manual’s address

The Web Server page of Preferences holds the settings that concern web pages. At the top are the status parameters, with which 4d prepares the images and numbers of a status website for the microscope, showing the progress of data collection and data processing. Below them, the Manual Web Pages section decides where the Help (?) buttons show this manual.

The status parameters live in the user-level configuration file 4d.cfg and apply to every project you open; the Manual Web Pages settings are stored per user in ~/.4d/preferences.ini. The ? button at the right end of the Settings to gather status data locally title line opens this page.

Each status row shows the parameter’s label and its current value. Edit the value in place; it is saved to your user configuration when you leave the field. Hover a label to see the parameter’s explanation (the LEGEND text of the entry).

Status website

The status parameters are in three sections, described below in the order in which they appear. They are read by the Utilities script Push Results to STATUS web server, which writes annotated thumbnails of the latest results and a line of key numbers per image into the status folder. Sending that folder to the web server is left to the computer: as the legend of the folder says, a CRON job pushes its contents onto the web server.

Settings to gather status data locally

ParameterLabelMeaningDefault
status_folder_updateUpdate status data?Whether the status folder is updated with results from this processing run (y/n).n
status_microscopeMicroscope tag/identifierThe microscope’s name or identifier, which is matched with the name on the server side to upload the status. It prefixes every file the script writes to the status folder, so several microscopes can share one folder.Titan

Status server settings

ParameterLabelMeaningDefault
status_folderFolder for status message imagesThe local folder (absolute path) in which the images that show the progress of data collection and data processing are prepared, for upload onto a web page via WebDAV or similar. Use none if you don’t want such images to be produced./usr/local/4d_webserver

Status Website Display

ParameterLabelMeaningDefault
website_blur_doitBlur thumbnail images on website?Whether the thumbnail images shown on the website are blurred or displayed sharp (y/n).y
website_blurkernelDiameter of the Gaussian kernel for blurringDiameter of the kernel used for blurring, if blurring is on; 0 – 100.7
With Update status data? set to y and the status folder present, 4d itself also appends a time stamp to small files in that folder: last_imported.txt and last_recorded.txt for every imported image, last_processed.txt when the processing of an image has finished, and last_errors.txt when a script fails.

Manual Web Pages

Every Help (?) button in 4d — including the one that opened this page — leads into this manual. This section decides where it is shown and which copy is used.

SettingMeaningDefault
Show help texts in a window inside 4d (instead of opening the web browser)With this on, a Help button opens the manual pages installed with 4d in a floating window at the right edge of the screen. Only one such window exists: the next Help button replaces its content, so the manual follows you around without cluttering the desktop. With it off, the page opens in your web browser at the address below.on, where the build supports it
Manual web addressAddress of the server hosting this manual. It is used when the option above is off, and as a fallback when a page is missing from the installed manual: the Help button then appends the page name and the anchor within it to this address and opens the result in the browser. With the in-app help window on, the buttons read the installed pages and this address is not consulted. The field is locked, since a wrong address makes every browser-mode Help button fail.https://lbem-status.epfl.ch/4d-manual/
Unlock to edit the manual web addressUnlocks the field after you confirm a warning. Use it only when your institute hosts its own copy of the manual. Unticking it locks the field again and saves what you typed.off
Restore default addressPuts the built-in address back, undoing any edit.—
Some builds of 4d are compiled without Qt WebEngine. Their in-app help window falls back to a simple rich-text renderer that displays the manual poorly, so these builds default to opening the manual in the web browser and say so in this section. If your help window looks broken, that is the reason — untick the in-app option and read the manual in the browser.
The preference is read each time you press a Help button, so switching between the in-app window and the web browser takes effect at once, no restart needed.