Skip to content

Commit

Permalink
chore: release v0.6.2
Browse files Browse the repository at this point in the history
HotFix: Missing axios dependency added
  • Loading branch information
DutchmanNL committed Sep 8, 2021
1 parent 920f743 commit 5661b03
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 25 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG_OLD.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Older changes
## 0.5.7 (2021-08-10)
* (foxriver76) we fixed some incorrect object types, fixes warnings with JS-Controller 3.3.x [#215](https://github.com/DrozmotiX/ioBroker.wled/issues/215) & [#209](https://github.com/DrozmotiX/ioBroker.wled/issues/209)
* (DutchmanNL) add support for WLED 0.13.x (added types fps, ndc, ip, of)

## 0.5.6 (2021-01-03)
* (DutchmanNL) Bugfix : State type definition for time and pmt

Expand Down
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,36 @@ A fast and feature-rich implementation of an ESP8266/ESP32 webserver to control
## Instructions

The adapter automatically try's to find WLED devices in your network using Bonjour services.
Known issues : Networks with VLAN seperation mostly don't route broadcast traffic, meaning autodetect will fail.
Known issues : Networks with VLAN separation mostly don't route broadcast traffic, meaning autodetect will fail.

Don't worry, in that case you can add the device manually by IP-Adress.
Don't worry, in that case you can add the device manually by IP-Address.

1) Ensure your WLED device is runnning and reachable by network
1) Ensure your WLED device is running and reachable by network
2) Install the adapter
3) Configure intervall times for data polling and auto-detect cyclus
3) Configure intervall times for data polling and auto-detect cycles
4 - A) Start the adapter, devices should be detected automatically
4 - B) If A fails, use the Add-Device button an provide the device IP-Adress
5) Adapter will send changes immediatly and polls data every x seconds (configurable)

## To-Do

* [ ] Switch polling to socket connections, pending implementation at WLED firmware
4 - B) If A fails, use the Add-Device button and provide the device IP-Address
5) Adapter will send changes immediately and polls data every x seconds (configurable)

## Support me
If you like my work, please feel free to provide a personal donation
(this is an personal Donate link for DutchmanNL, no relation to the ioBroker Project !)
(this is a personal Donate link for DutchmanNL, no relation to the ioBroker Project !)
[![Donate](https://raw.githubusercontent.com/DrozmotiX/ioBroker.wled/main/admin/button.png)](http://paypal.me/DutchmanNL)

## What is Sentry.io and what is reported to the servers of that company?
Sentry.io is a service for developers to get an overview about errors from their applications. And exactly this is implemented in this adapter.

When the adapter crashes or an other Code error happens, this error message that also appears in the ioBroker log is submitted to Sentry. When you allowed iobroker GmbH to collect diagnostic data then also your installation ID (this is just a unique ID **without** any additional infos about you, email, name or such) is included. This allows Sentry to group errors and show how many unique users are affected by such an error. All of this helps me to provide error free adapters that basically never crashs.
When the adapter crashes or another Code error happens, this error message that also appears in the ioBroker log is submitted to Sentry. When you allowed iobroker GmbH to collect diagnostic data then also your installation ID (this is just a unique ID **without** any additional infos about you, email, name or such) is included. This allows Sentry to group errors and show how many unique users are affected by such an error. All of this helps me to provide error free adapters that basically never crashs.

# Changelog
<!--
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->

### 0.6.2 (2021-09-08) - Missing axios dependency added
* (DutchmanNL) HotFix: Missing axios dependency added

### 0.6.1 (2021-09-08)
* (DutchmanNL) Missing state definitions WLED FW 0.13.0-b12 added.

Expand All @@ -71,10 +70,6 @@ When the adapter crashes or an other Code error happens, this error message that
* (DutchmanNL) Bugfix Live override datapoint created as read-only #252
* (DutchmanNL) excluded value "PIR" from data write due to current formatting

### 0.5.7 (2021-08-10)
* (foxriver76) we fixed some incorrect object types, fixes warnings with JS-Controller 3.3.x [#215](https://github.com/DrozmotiX/ioBroker.wled/issues/215) & [#209](https://github.com/DrozmotiX/ioBroker.wled/issues/209)
* (DutchmanNL) add support for WLED 0.13.x (added types fps, ndc, ip, of)

## License
MIT License

Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "wled",
"version": "0.6.1",
"version": "0.6.2",
"news": {
"0.6.2": {
"en": "HotFix: Missing axios dependency added",
"de": "HotFix: Fehlende Axios-Abhängigkeit hinzugefügt",
"ru": "HotFix: добавлена отсутствующая зависимость axios",
"pt": "HotFix: Dependência de axios ausente adicionada",
"nl": "HotFix: ontbrekende axios-afhankelijkheid toegevoegd",
"fr": "HotFix : Ajout d'une dépendance axios manquante",
"it": "HotFix: aggiunta dipendenza Axios mancante",
"es": "HotFix: Se agregó la dependencia de axios faltante",
"pl": "Poprawka: dodano brakującą zależność axios",
"zh-cn": "HotFix:添加了缺少 axios 依赖项"
},
"0.6.1": {
"en": "Missing state definitions WLED FW 0.13.0-b12 added.",
"de": "Fehlende Zustandsdefinitionen WLED FW 0.13.0-b12 hinzugefügt.",
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ class Wled extends utils.Adapter {

} catch (error) {

if (this.devices[deviceIP] && this.devices[deviceIP].connected == true){
if (this.devices[deviceIP] && this.devices[deviceIP].connected){
this.log.warn(`Device ${deviceIP} offline, will try to reconnect`);
if (this.devices[deviceIP].mac != null) {
await this.create_state(this.devices[deviceIP].mac + '._info' + '._online', 'online', {val: false, ack: true});
Expand Down Expand Up @@ -997,7 +997,7 @@ class Wled extends utils.Adapter {
}

// Set value to state including expiration time
if (value !== null || value !== undefined) {
if (value != null) {
await this.setStateChangedAsync(stateName, {
val: typeof value === 'object' ? JSON.stringify(value) : value, // real objects are not allowed
ack: true,
Expand Down
6 changes: 2 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.wled",
"version": "0.6.1",
"version": "0.6.2",
"description": "A fast and feature-rich implementation of an ESP8266/ESP32 webserver to control NeoPixel (WS2812B, WS2811, SK6812, APA102) LEDs!",
"author": {
"name": "DutchmanNL",
Expand Down Expand Up @@ -28,6 +28,7 @@
},
"dependencies": {
"@iobroker/adapter-core": "^2.5.1",
"axios": "^0.21.4",
"bonjour": "^3.5.0",
"hex-rgb": "^4.3.0",
"rgb-hex": "^3.0.0",
Expand All @@ -44,7 +45,6 @@
"@types/proxyquire": "^1.3.28",
"@types/sinon": "^10.0.2",
"@types/sinon-chai": "^3.2.4",
"axios": "^0.21.4",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"eslint": "^7.32.0",
Expand Down

0 comments on commit 5661b03

Please sign in to comment.