gablau / node-red-contrib-blynk-ws

Old/Legacy Blynk library implementation for Node-RED using WebSockets
MIT License
31 stars 10 forks source link

Image Gallery Not Displaying Image #21

Closed Guzbikes closed 4 years ago

Guzbikes commented 4 years ago

I'm trying to send a dynamic url to the Image Gallery Widget, but I am not seeing the image in my Blynk app. The input to the function node is the url I want the gallery to display, here is the code of the function node:

[ { "id": "e611c01.045db4", "type": "function", "z": "eac905a5.e32e58", "name": "Msg URL", "func": "var newMsg = {\"payload\": 0};\nnewMsg.topic = \"write-property\";\nnewMsg.url = msg.payload; \nnewMsg.imgid = 0;\nnode.send(newMsg);", "outputs": 1, "noerr": 0, "x": 3800, "y": 960, "wires": [ [ "3e6e63eb.9bbc2c", "637f27c2.151db8", "1cf0a959.751197", "9acaaca0.4a344", "ad2c6ea0.0f225" ] ] } ]

Guzbikes commented 4 years ago

Changing the payload and image index to 1 worked. The Blynk documentation says the default is 0, but I when I manually add an image, it shows that the index is 1. When I update image index 1 I get the desired behavior. I will close the issue now.