Skip to content

Commit

Permalink
fixed password with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
o0shojo0o committed Aug 22, 2023
1 parent 5880f83 commit aec07c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,29 @@ For more information on the data points, see their description or click [here](h
### **WORK IN PROGRESS**

- (o0shojo0o) allow multiple AdminTabs for multiple instances ([#88](https://github.com/o0shojo0o/ioBroker.opendtu/issues/88))
- (o0shojo0o) fixed password with special characters ([#35](https://github.com/o0shojo0o/ioBroker.opendtu/issues/35))

### 0.1.7 (2023-06-30)

- (o0shojo0o) workaround for incorrectly used button data point

### 0.1.6 (2023-06-30)

- (o0shojo0o) fix power control (power_off)
- (o0shojo0o) fixed power control (power_off)

### 0.1.5 (2023-05-15)

- (o0shojo0o) code optimizations

### 0.1.4 (2023-03-23)

- (o0shojo0o) fix power control `on`, `off`, `restart`
- (o0shojo0o) fixed power control `on`, `off`, `restart`
- (o0shojo0o) support for password protected liveview
- (o0shojo0o) other small fixes

### 0.1.2 (2023-03-03)

- (o0shojo0o) fix yield* values
- (o0shojo0o) fixed yield* values

### 0.1.1 (2023-02-24)

Expand Down
5 changes: 4 additions & 1 deletion lib/websocketController.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ class WebsocketController {

initWsClient() {
try {
const wsURL = `${this.adapter.config.webUIScheme == 'http' ? 'ws' : 'wss'}://${this.adapter.config.userName}:${this.adapter.config.password}@${this.adapter.config.webUIServer}:${this.adapter.config.webUIPort}/livedata`;
const encodedUsername = encodeURIComponent(this.adapter.config.userName);
const encodedPassword = encodeURIComponent(this.adapter.config.password);

const wsURL = `${this.adapter.config.webUIScheme == 'http' ? 'ws' : 'wss'}://${encodedUsername}:${encodedPassword}@${this.adapter.config.webUIServer}:${this.adapter.config.webUIPort}/livedata`;
//this.adapter.log.debug(`Websocket connect over URL: ${wsURL}`);

wsClient = new WebSocket(wsURL);
Expand Down

0 comments on commit aec07c0

Please sign in to comment.