Gitpod Workspace

Gitpod is used to startup the complete OpenEMS System using Docker images. The container contains the following services:

  • OpenEMS UI

  • OpenEMS Backend

  • OpenEMS Edge

  • Odoo (with OpenEMS Module)

  • PostgreSQL

1. Start Gitpod Workspace

  1. Open in a browser Gitpod Workspace to start the Gitpod workspace on develop branch

  2. Gitpod starts a build based on the local Docker image (see .gitpod.Dockerfile)

    Docker Build
    Figure 1. Docker Build
  3. After the build you were redirected to a Visual Studio Code instance in your browser

    Gitpod Redirect
    Figure 2. Gitpod Redirect

2. Running Visual Studio Code instance in browser

  1. Inside your online editor Gitpod execute everything you defined in the .gitpod.yml tasks section

    Services started in Visual Studio Code
    Figure 3. Services started in Visual Studio Code
  2. You can see all opened ports in Visual Studio Code that started from your services. Here you can open the ports by clicking on it.

    All opened Ports in Visual Studio Code
    Figure 4. All opened Ports in Visual Studio Code
  3. After to configured port (.gitpod.yml) for the OpenEMS UI is reachable, it will automatically open that in a new tab

2.1. Troubleshooting

After odoo started restart backend and edge (current timing problem)

3. OpenEMS

  1. After the OpenEMS UI is opened you can login

    1. Username max@mustermann.de and password mustermann

    2. To user will be authenticated against the running Odoo server

      OpenEMS Login via Odoo authentication
      Figure 5. OpenEMS Login via Odoo authentication
  2. List of Edges from Odoo

    1. The first Edge (Edge 1) is your local started OpenEMS Edge service

    2. It is connected via API-Key

      OpenEMS List of Edges
      Figure 6. OpenEMS List of Edges