Skip to content

Virtual Office gives you transparency on what Zoom.us rooms are currently occupied and who is present

License

Notifications You must be signed in to change notification settings

TNG/virtual-office

Repository files navigation

Virtual Office

Did you ever wonder where your colleague currently is? In what Zoom.us room they hide?

Virtual Office tries to give you transparency on what Zoom.us rooms are occupied and who is currently there.

Virtual Office Screenshot

Features

  • React Web UI
  • Uses Zoom.us Webhooks to give a real-time status update on who currently participates in what Zoom.us room
  • Login via Slack

At TNG we've also hosted a big company internal event with 450 participants using Virtual Office. If you're interested, you can find our experiences in two articles (German only):

Installation

  1. Checkout the repository.

    git clone https://github.com/TNG/virtual-office
    
  2. Install all dependencies.

    npm run installAll
    
  3. Create a new Slack App, as currently the only authentication option is Slack (https://api.slack.com/apps).

    • Extract Basic Information
      • You will need the Client ID and Client Secret in the server config
    • Configure OAuth & Permissions
      • Redirect URL: ${YOUR_BASE_URL_COMES_HERE}/auth/slack/callback
      • User Token Scope: identity.basic, identity.avatar, identity.email
  4. Adapt the Virtual Office configuration.

    • via .env file: Copy <client|server>/.env-example to <client|server>/.env and adapt the content. All entries will be available to the app as environment variables.
    • set the environment variables manually, i.e. for using it via some deployment plan in a CI server.
  5. Configure the Zoom.us webhooks

    • Navigate to the Zoom.us Marketplace
    • Click Manage and create a new webhook application
    • Fill out the usual information, go to Feature and enable Event Subscriptions, add a new subscription with
      • Events:
        • End Meeting
        • Participant/Host joined meeting
        • Participant/Host left meeting
      • Notification endpoint URL:
        ${YOUR_BASE_URL_COMES_HERE}/api/zoomus/webhook
  6. Compile and start the application in production mode

    npm run buildAll
    cd server && npm start
    
  7. (Alternative) Serve the application in development mode

    cd server && npm run dev
    cd client && npm start
    

Available Environment Variables

Variable name Usage
PORT Port the app is running on, defaults to 9000
SLACK_CLIENT_ID The Client ID you got when creating the Slack application
SLACK_SECRET The Client Secret you got when creating the Slack application
CONFIG OR CONFIG_LOCATION A office config as JSON string OR
A file system location to the office configuration
SESSION_SECRET Secret that is used to encrypt cookies that are stored on client side. If you omit this option, a new secret will be generated on each server start (meaning that users will have to re-login after each server restart!)
ADMIN_USERNAME Username for accessing admin endpoints
ADMIN_PASSWORD Password for accessing admin endpoints
VIEW_MODE Determines how the frontend will show the rooms, either list or grid
THEME Either light or dark
BACKGROUND_URL URL to a background image
LOGO_URL URL to a logo image to be included in the header
FAVICON_URL URL to a favicon
WRITE_OFFICE_UPDATES_TO_FILE_SYSTEM When replacing the office via the /admin API, write the changes to the filesstem. Will only be done when set to true
TIMEZONE Timezone determining the start and end dates of sessions. If unset, the server will use the server timezone and the clients will use the client timezone. Timezone is in format "Europe/Berlin", a list can be found here
TITLE Title of the app
DISABLE_AUTH When hosting public events that do not require a login, set this to true
SESSION_START_MINUTES_OFFSET Number of minutes the session is considered active (so events will be sent to the client, people can join)
HIDE_ENDED_SESSIONS When sessions shall be hidden after they have ended, set this to true

Office Configuration

You can find an example office definition in server/office.json.

An example looks like this:

{
  "groups": [
    {
      "id": "star_wars",
      "name": "Star Wars",
      "groupJoin": {
        "minimumParticipantCount": 3
      },
      "disabledBefore": "2020-05-29T17:15:00.000+02:00",
      "disabledAfter": "2020-05-29T19:00:00.000+02:00"
    }
  ],
  "rooms": [
    {
      "meetingId": "1",
      "name": "Lobby",
      "subtitle": "This is where everything starts.",
      "joinUrl": "https://zoom.us/j/1",
      "links": [
        {
          "href": "http://www.google.de",
          "text": "Google",
          "icon": "https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg"
        }
      ],
      "icon": "https://cdn.pixabay.com/photo/2015/11/03/09/03/meeting-1019995_960_720.jpg"
    },
    {
      "meetingId": "2",
      "name": "Alderaan",
      "joinUrl": "https://zoom.us/j/2",
      "links": [
        {
          "href": "https://www.atlassian.com",
          "text": "Issue Tracker",
          "icon": "https://pbs.twimg.com/profile_images/1026572523230515200/Qifq4jpS_400x400.jpg"
        },
        {
          "href": "http://www.miro.com",
          "text": "Whiteboard",
          "icon": "https://avatars.slack-edge.com/2019-03-07/570928183895_30458630978ac1eccde9_512.png"
        }
      ],
      "groupId": "star_wars",
      "icon": "https://cdn.pixabay.com/photo/2015/11/03/09/03/meeting-1019995_960_720.jpg"
    }
  ]
}

Important: For the Zoom.us webhooks to work, the meetingId has to be the zoom.us meeting ID, as this id acts as correlation id for webhook events from zoom.

groupJoin within the groups property is optional and defines whether existing rooms will be filled up by a separate join button on the group.

Admin Endpoints

You can view all available endpoints at /api-docs.

Development

You have to provide configuration parameters to the server by environment variables. As a convenient alternative you can provide it via an .env file (see .env-example) that will be loaded by dotenv.

Contributing

See CONTRIBUTING for details.

License

Virtual Office is published under the Apache License 2.0, see https://www.apache.org/licenses/LICENSE-2.0 for details.

About

Virtual Office gives you transparency on what Zoom.us rooms are currently occupied and who is present

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages