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.
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
| Parameter | Label | Meaning | Default |
|---|---|---|---|
status_folder_update | Update status data? | Whether the status folder is updated with results from this processing run (y/n). | n |
status_microscope | Microscope tag/identifier | The 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
| Parameter | Label | Meaning | Default |
|---|---|---|---|
status_folder | Folder for status message images | The 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
| Parameter | Label | Meaning | Default |
|---|---|---|---|
website_blur_doit | Blur thumbnail images on website? | Whether the thumbnail images shown on the website are blurred or displayed sharp (y/n). | y |
website_blurkernel | Diameter of the Gaussian kernel for blurring | Diameter of the kernel used for blurring, if blurring is on; 0 – 100. | 7 |
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.
| Setting | Meaning | Default |
|---|---|---|
| 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 address | Address 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 address | Unlocks 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 address | Puts the built-in address back, undoing any edit. | — |