Error when connecting the edge to backend

You need to have one instance of each core backend service: Timedata, UiWebsocket, EdgeWebsocket and Metadata.

I just tried following example successfully:

  • Edge.Websocket
    • Port: 8081
  • Ui.Websocket
    • Port: 8082
  • Timedata.Dummy
  • Metadata.File
    • Path: “metadata.json”

Note: a created the following metadata.json file:

{
   "edges":{
      "edge0":{
         "comment":"My first OpenEMS Edge",
         "apikey":"unique_password_for_edge0",
		 "setuppassword":"edge0"
      },
      "edge1":{
         "comment":"My second OpenEMS Edge",
         "apikey":"unique_password_for_edge1",
		 "setuppassword":"edge1"
      }
   }
}

It differs from what I had posted here (Connect edge instance to backend - #2 by stefan.feilmeier) in the additional setuppassword. Unfortunately it seems this is caused by a Merge error. That setuppassword field is not relevant to you… it will be used by this pull-request once its merged: Implementation of an installation assistant by raphael-piller · Pull Request #1588 · OpenEMS/openems · GitHub

Regards,
Stefan

1 Like