Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/modules/ROOT/pages/ui/setup-ide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:source-highlighter: highlight.js
:icons: font

NOTE: Visual Studio Code is the recommended development environment for OpenEMS UI. If you do not plan to actively develop on OpenEMS UI, you can simply use the hosted version we provide at https://openemsuilocal.consolinno.de[https://openemsuilocal.consolinno.de icon:external-link[]].
NOTE: Visual Studio Code is the recommended development environment for OpenEMS UI. If you do not plan to actively develop on OpenEMS UI, you can simply use the hosted version we provide at https://openemsuilocal.consolinno.de[https://openems.netlify.app icon:external-link[]].


== Setup Visual Studio Code
Expand Down Expand Up @@ -47,4 +47,4 @@ The log shows:
NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/
```

. Open a browser at http://localhost:4200
. Open a browser at http://localhost:4200
16 changes: 16 additions & 0 deletions ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@
}
]
},
"openems-edge-dev-localhost": {
"fileReplacements": [
{
"replace": "src/environments/theme.ts",
"with": "src/themes/openems/environments/theme.ts"
},
{
"replace": "src/environments/dummy.ts",
"with": "src/themes/openems/environments/edge-dev-localhost.ts"
},
{
"replace": "src/environments/oem-meta.ts",
"with": "src/themes/openems/environments/oem-meta.ts"
}
]
},
"openems-edge-prod": {
"fileReplacements": [
{
Expand Down
10 changes: 10 additions & 0 deletions ui/src/themes/openems/environments/edge-dev-localhost.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Environment, getWebsocketScheme } from "src/environments";
import { theme } from "./theme";

export const environment: Environment = {
...theme,
backend: "OpenEMS Edge",
url: getWebsocketScheme() + "://localhost:8085",
production: false,
debugMode: true,
};