diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dfd743..6ef4ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## [10.14.1] - 2023-10-05 +### install webhook problems fixed with next gen 2 fw - [#129](https://github.com/windkh/node-red-contrib-shelly/issues/129) + ## [10.14.0] - 2023-10-04 -### upload script problems fixed with nex gen 2 fw - [#128](https://github.com/windkh/node-red-contrib-shelly/issues/128) +### upload script problems fixed with next gen 2 fw - [#128](https://github.com/windkh/node-red-contrib-shelly/issues/128) ## [10.13.8] - 2023-09-29 ### added support for shelly plus 1 mini - [#127](https://github.com/windkh/node-red-contrib-shelly/issues/127) diff --git a/package.json b/package.json index b38a15d..83a2820 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-shelly", - "version": "10.14.0", + "version": "10.14.1", "description": "Shelly nodes.", "node-red": { "version": ">=0.1.0", diff --git a/shelly/99-shelly.js b/shelly/99-shelly.js index 2ffd6c5..73cd3f8 100644 --- a/shelly/99-shelly.js +++ b/shelly/99-shelly.js @@ -1960,7 +1960,7 @@ module.exports = function (RED) { for (let webhookItem of webhookListResponse.hooks) { if(webhookItem.name == webhookName){ let deleteParams = { 'id' : webhookItem.id }; - let deleteWebhookResonse = await shellyRequestAsync('GET', '/rpc/Webhook.Delete', deleteParams, null, credentials); + let deleteWebhookResonse = await shellyRequestAsync('POST', '/rpc/Webhook.Delete', null, deleteParams, credentials); } }; @@ -1976,14 +1976,14 @@ module.exports = function (RED) { 'enable' : true, "urls": [url] }; - let createWebhookResonse = await shellyRequestAsync('GET', '/rpc/Webhook.Create', createParams, null, credentials); + let createWebhookResonse = await shellyRequestAsync('POST', '/rpc/Webhook.Create', null, createParams, credentials); node.status({ fill: "green", shape: "ring", text: "Connected." }); success = true; } } catch (error) { - // node.warn("Installing webhook failed " + error); + //node.warn("Installing webhook failed " + error); // node.status({ fill: "red", shape: "ring", text: "Installing webhook failed "}); } } @@ -2008,7 +2008,7 @@ module.exports = function (RED) { for (let webhookItem of webhookListResponse.hooks) { if(webhookItem.name == webhookName){ let deleteParams = { 'id' : webhookItem.id }; - let deleteWebhookResonse = await shellyRequestAsync('GET', '/rpc/Webhook.Delete', deleteParams, null, credentials); + let deleteWebhookResonse = await shellyRequestAsync('POST', '/rpc/Webhook.Delete', null, deleteParams, credentials); } }; }