nikkow / node-red-contrib-tahoma

Node-RED module to control a Somfy Tahoma box (Roller shutters...). Used for home automation flows.
Apache License 2.0
19 stars 11 forks source link

3.0beta5: 404 on getting devices when NodeRed is not installed URL / #67

Open s1mm0n opened 1 year ago

s1mm0n commented 1 year ago

Hi,

My Devices List did't show up and i get an 404 Error. I am using RedMatic (NodeRed plugin for Raspberrymatic).

As there are multiple Plugins running on the Server NodeRed has another base path: http://192.168.xxx.xxx/addons/red/

Changes I've done to get it work:

node-red-contrib-tahoma/src/nodes/tahoma.html
LINE 38: $.get(`somfy/${tahoma_account_id}/devices`).then(function (
(Remove the leading "/")
node-red-contrib-tahoma/src/nodes/tahoma-read.html
LINE 37: $.get('somfy/' + tahoma_account_id + '/devices').then(
(Remove the leading "/")

Maybe you can push this edit to beta6 ;)