Skip to content

Sofie: The Modern TV News Studio Automation System (Server Core)

License

Notifications You must be signed in to change notification settings

evs-broadcast/sofie-core

This branch is 4990 commits behind nrkno/sofie-core:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7d58d1b · Sep 26, 2022
May 3, 2022
Apr 4, 2022
Feb 3, 2022
Jul 31, 2018
Sep 26, 2022
Sep 26, 2022
Oct 12, 2020
Feb 7, 2022
Nov 16, 2020
Apr 20, 2020
Aug 10, 2020
May 29, 2020
Apr 12, 2021
Feb 18, 2022
Feb 18, 2022
May 14, 2019
Nov 15, 2018
Jul 26, 2021
Mar 26, 2021
May 31, 2018
Feb 18, 2022
Mar 3, 2018
Mar 28, 2022
Jan 19, 2022
Aug 1, 2022

Repository files navigation

Sofie: The Modern TV News Studio Automation System (Sofie Core)

This is the "Core" application of the Sofie TV News Studio Automation System.

The Core is a Meteor/Node.JS-based web server that serves the web-GUIs as well as handling the business logic for the Sofie TV Automation system.

System documentation can be found here: Sofie system documentation.

For developers

Gettings started, local development

Follow these instructions to start up Sofie Core in development mode. (For production deploys, see System documentation.)

Prerequisites

  • Install Node.js 16 (14 will also work) (using nvm or nvm-windows is the recommended way to install Node.js)
  • If on Windows: npm install --global windows-build-tools
  • Install Meteor (npm install --global meteor)
  • Install Yarn (npm install --global corepack && corepack enable)

Quick-start:

git clone -b master https://github.com/nrkno/sofie-core.git
cd sofie-core
yarn start

💡 First startup may take a while, especially on Windows. To speed things up, consider adding %LOCALAPPDATA%\.meteor and the directory where you cloned server-core to your Windows Defender virus protection exclusions.

Slightly more detailed start:

  1. Clone the repository (for development, it is recommended to base your work on the latest unstable release branch)

    git clone -b releaseXYZ https://github.com/nrkno/sofie-core.git
  2. Go into the cloned directory

    cd sofie-core
  3. Setup meteor and dependencies. (Before this, make sure your NODE_ENV environment variable is NOT set to "production"!)

    yarn install
  4. Start development mode

    yarn dev
  5. In another window, start the playout-gateway. You will need to manually restart this upon making changes

    cd sofie-core/packages/playout-gateway
    yarn buildstart

When using the Visual Studio Code IDE

We provide a settings.json.default file in .vscode that you should consider using with your IDE. Also consider installing suggested extensions, which should help you create PRs consistent with project's code standards.

Dealing with strange errors

If you get any strange errors (such as the application crashing, "Unable to resolve some modules" or errors during installation of dependencies), the last resort is to reset and restart:

yarn reset # Removes all installed dependencies and build artifacts
yarn start # Set up, install and run in dev mode

Translating Sofie, add a new language

For support of various languages in the GUI, Sofie uses the i18next framework. It uses JSON-based translation files to store UI strings. In order to build a new translation file, first extract a PO template file from Sofie UI source code:

cd meteor
yarn i18n-extract-pot

Find the created template.pot file in meteor/i18n folder. Create a new PO file based on that template using a PO editor of your choice. Save it in the meteor/i18n folder using your ISO 639-1 language code of choice as the filename.

Next, modify the package.json scripts and create a new language compilations script:

"i18n-compile-json": "yarn i18n-compile-json-nb & yarn i18n-compile-json-sv & yarn i18n-compile-json-xx",
"i18n-compile-json-xx": "i18next-conv -l nb -s i18n/xx.po -t public/locales/xx/translations.json",

Then, run the compilation script:

yarn i18n-compile-json

The resulting JSON file will be placed in meteor/public/locales/xx, where it will be available to the Sofie UI for use and auto-detection.

Then submit this as a PR.

Version numbering scheme

This project does not follow semver. We believe that semver does not make sense for this system as there are so many moving parts that a majority of releases could be considered breaking in some way.

Instead of semver, the Major number gets incremented whenever we feel like Sofie has evolved enough to warrant the change. The minor number gets incremented for each iteration of the development cycle, with the digit matching the cycle number. The patch number gets incremented for patch releases as expected.

The version numbers of the blueprints-integration and server-core-integration libraries are tied to this, and as such they also do not follow semver currently. In future these may be decoupled. The api of server-core-integration is pretty stable and rarely undergoes any breaking changes, so is ok to be mismatched. The api of blueprints-integration is rather volatile, and often has breaking changes. Because of this, we recommend matching the minor version of blueprints-integration with Sofie core. Sofie will warn if these do not match. We expect this to settle down in the future, and will review this decision when we feel it is worthwhile.

Additional information

Background image used for previewing graphical elements is based on "Sunset over dark forest" by Aliis Sinisalu: https://unsplash.com/photos/8NiAH5YRZPs used under the Unsplash License.


The NRK logo is a registered trademark of Norsk rikskringkasting AS. The license does not grant any right to use, in any way, any trademarks, service marks or logos of Norsk rikskringkasting AS.

About

Sofie: The Modern TV News Studio Automation System (Server Core)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.2%
  • SCSS 4.3%
  • JavaScript 1.1%
  • HTML 0.1%
  • Less 0.1%
  • PureBasic 0.1%
  • Other 0.1%