Skip to content

Commit

Permalink
v1.5.0 Skylight devices / keep alive
Browse files Browse the repository at this point in the history
* added Skylight devices
* use keep alive for HTTP connections
  • Loading branch information
daniel-2k committed Apr 21, 2024
1 parent c232a9d commit 8697ae3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ You can use the nanoleaf vis demo project found in the /vis subfolder on github.

## Changelog

### 1.5. (2024-04-21)
* (daniel_2k) new: added Skylight device
* (daniel_2k) changes: use keep alive for HTTP connections to avoid SNAT port exhaustion (e.g. Docker environments)

### 1.4.0 (2023-07-16)
* (daniel_2k) changed: use adapter-core for js-controller 5 compatibility

Expand Down
Binary file added admin/icons/skylight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "nanoleaf-lightpanels",
"version": "1.4.0",
"version": "1.5.0",
"news": {
"1.5.0": {
"en": "added Skylight device<br>use keep alive for HTTP connections to avoid SNAT port exhaustion (e.g. Docker environments)",
"de": "Skylight hinzugefügt<br>verwende Keep Alive für HTTP-Verbindungen um SNAT port exhaustion (z.B. bei Docker Umgebungen) zu verhindern",
"ru": "добавленное устройство Skylight<br> сохраняет жизнь для HTTP-соединений, чтобы избежать исчерпания порта SNAT (например, среды Docker)",
"pt": "adicionado dispositivo Skylight<br>use manter vivo para conexões HTTP para evitar a exaustão da porta SNAT (por exemplo, ambientes Docker)",
"nl": "toegevoegd Skylight apparaat <br>use in leven houden voor HTTP-verbindingen om SNAT-poort uitputting te voorkomen (bijv. Docker omgevingen)",
"fr": "ajout du périphérique Skylight<br>utilisation garder en vie pour les connexions HTTP pour éviter l'épuisement du port SNAT (par exemple, les environnements Docker)",
"it": "aggiunto dispositivo Skylight <br>use mantenere in vita per le connessioni HTTP per evitare esaurimento della porta SNAT (ad esempio ambienti Docker)",
"es": "agregado dispositivo Skylight identificador confianzause mantener vivo para conexiones HTTP para evitar el agotamiento del puerto SNAT (por ejemplo, entornos Docker)",
"pl": "dodano urządzenie Skylight < br > zachować przy życiu połączenia HTTP, aby uniknąć wyczerpania portu SNAT (np. środowiska Docker)",
"uk": "додано пристрій Skylight <br>use зберегти живий для HTTP-з'єднань, щоб уникнути вичерпання портів SNAT (наприклад, Docker оточення)",
"zh-cn": "为 HTTP 连接添加了 Skylight 设备<br> use 恒生, 以避免 SNAT 端口耗尽( 如 Docker 环境)"
},
"1.4.0": {
"en": "use adapter-core for js-controller 5 compatibility",
"de": "Nutzung von adapter-core für Kompatibilität mit js-controller 5",
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const NANOLEAF_DEVICES = { lightpanels: { model: "NL22", deviceName: "LightPanel
canvas: { model: "NL29", deviceName: "Canvas", name: "Canvas", SSDP_NT_ST: "nanoleaf:nl29", SSEFirmware: "1.1.0", hasTouch: true },
shapes: { model: "NL42", deviceName: "Shapes", name: "Shapes", SSDP_NT_ST: "nanoleaf:nl42", SSEFirmware: "4.0.2", hasTouch: true },
elements: { model: "NL52", deviceName: "Elements", name: "Elements", SSDP_NT_ST: "nanoleaf:nl52", SSEFirmware: "1.0.0", hasTouch: true },
lines: { model: "NL59", deviceName: "Lines", name: "Lines", SSDP_NT_ST: "nanoleaf:nl59", SSEFirmware: "1.0.0", hasTouch: false } };

lines: { model: "NL59", deviceName: "Lines", name: "Lines", SSDP_NT_ST: "nanoleaf:nl59", SSEFirmware: "1.0.0", hasTouch: false },
skylight: { model: "NL64", deviceName: "Skylight", name: "Skylight", SSDP_NT_ST: "nanoleaf:nl64", SSEFirmware: "1.0.0", hasTouch: false } };
// variables
let auroraAPI; // Instance of auroraAPI-Client
let isConnected; // indicates connection to device (same value as info.connection state)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.nanoleaf-lightpanels",
"version": "1.4.0",
"version": "1.5.0",
"description": "ioBroker adapter to control nanoleaf devices",
"author": {
"name": "daniel_2k",
Expand Down

0 comments on commit 8697ae3

Please sign in to comment.