Skip to content

Connecting to Scifeon

The File Hub uploads files to one or more Scifeon instances. Each instance is added as an environment on the configuration page.

The File Hub signs in to Scifeon with an API key that has the InstrumentHub scope.

  1. In Scifeon, go to Administration > Data Access > API Keys.
  2. Click + API Key.
  3. In Name, enter a name that tells you where the key is used, for example the name of the lab PC.
  4. In Scopes, choose InstrumentHub. Scifeon refuses the File Hub’s requests if the key does not have this scope.
  5. Click Create.
  6. Copy the generated key - you need it in the next step.

Use a separate key for each lab PC. You can then revoke one PC’s access on the API Keys page without affecting the others.

  1. Open the configuration page on the lab PC: open the Start menu and choose Scifeon File Hub. Right after installing, it is already open in your browser.
  2. Click Add Environment.
  3. Fill in the form:
    • Name: a name for the environment, for example Production. The name cannot be changed later.
    • Instance URL: the address of your Scifeon instance, for example https://novara.scifeon.cloud.
    • API Key: paste the key from Step 1.
  4. Click Add.

Adding an environment

The environment appears on the Environments page. After a moment it shows Connected: the File Hub has reached Scifeon and registered itself there as a hub named after the computer.

Two connected environments, Production and Test, with their instance URLs blurred

One File Hub can upload to several Scifeon instances at the same time, for example a production instance and a test instance. Add each instance as its own environment. Each watched folder belongs to exactly one environment, so files from one instrument folder always go to the same instance.

Each environment card has these actions:

ActionWhat it does
Replace Key…Replaces the API key, for example when the old key has expired or been revoked.
Edit…Changes the instance URL. The name stays the same.
Remove…Removes the environment from this PC. Its watched folders are no longer watched. Files that were waiting to be uploaded stay on the PC and are not deleted.

Refresh Config at the top of the page fetches the latest settings of the watched folders from Scifeon right away. The File Hub also does this by itself when it starts, when you change a watched folder, and after uploads, so you rarely need it.

If the card shows Not Connected, check that:

  • The instance URL is correct and starts with https://.
  • The API key is valid and has the InstrumentHub scope. Create a new one in Scifeon and use Replace Key… if in doubt.
  • The lab PC can reach the Scifeon instance, for example by opening the instance URL in a browser on the PC.