Hi Daniel,
thanks for pointing this out. There was indeed an error in the Gitpod definition, that still pointed to an old development branch in the Odoo module. It’s fixed in:
Unfortunately it seems the Odoo integration is currently still broken and I am not able to fix it quickly. As a reminder for my future self, this is what I tried…
- Open the Odoo instance inside your Gitpod workspace (something like https://8069-openems-openems-****.ws-eu38.gitpod.io)
- Login as
admin
with passwordadmin
- Go to Settings → Users & Companies → Users and select the admin user
- Click the Edit button, give Manager permissions to the “admin” user and click Save
- Open the “OpenEMS” App in Odoo
- Refresh the page to apply changed permissions (by pressing F5 on your keyboard)
- Click Create to create a new OpenEMS Edge device configuration
- Fill the required fields:
-
Name:
edge0
- In the Sicherheit tab enter the apikey
WZZyzpPSMM5fE6aQ667Z
(this is the default apikey given in the Gitpod docker container for OpenEMS Edge, see: openems/28628d01-a978-4328-9a8f-b9c7751ed2d2.config at develop · OpenEMS/openems · GitHub)
-
Click Save
-
Back in Gitpod open the terminal for OpenEMS Backend
-
Press Ctrl + C to stop Backend.
-
Press the Arrow Up key on your keyboard to get the latest command and press Enter to execute it and restart Backend. (or copy this command
java -Dfelix.cm.dir=$(pwd)/tools/docker/openems-backend/config.d -jar build/openems-backend.jar
)
Unfortunately Backend fails to import the Edges from Odoo with the following error message:
[io.openems.backend.metadata.odoo.postgres.InitializeEdgesWorker] ERROR : [Metadata.Odoo] Unable to initialize Edges: PSQLException. ERROR: column "state" does not exist
Position: 46
org.postgresql.util.PSQLException: ERROR: column "state" does not exist
Internally we already switched to Odoo 14, so I suppose we need to backport our changes first… sorry for that.
Regards,
Stefan