bartbutenaers / node-red-contrib-ui-svg

A Node-RED widget node to show interactive SVG (vector graphics) in the dashboard
Apache License 2.0
93 stars 27 forks source link

input Binding on multiple cameras #33

Closed ChristopherO1 closed 4 years ago

ChristopherO1 commented 4 years ago

I'm having a problem with my input Binding. I have a simple floor plan with three cameras added

I have injector nodes that change the fill attribute of the cameras. The problem I'm seeing is... Whichever camera I try to change the colour of, it always adjusts the one that is top of the list in the input Binding Tab.

I've attached my flow, as a zip file.

There are animations in there as well, these behave as I expected them too

If this is a case of user error, please close

flow.zip

ChristopherO1 commented 4 years ago

I also keep seeing this, maybe relevant

inputBinding

bartbutenaers commented 4 years ago

Hi @ChristopherO1,

Thanks for the feedback!

Uncomplete Input Binding tabsheet

This was indeed a bug, so I have fixed this in the DEV branch.

First binding camera is always updated

As I explained already in the forum, the absence of updated documentation is one of the main reasons that I haven't published this beta on the forum yet. And I want avoid having to explain it to everybody in advance, otherwise I have no time left to finish my beta version ...

Anyway, this explanation is hopefully a bit clear:

So you use 3 data bindings with source "payload.attributeValue", which isn't really correct ...

I will add this information to the readme page as soon as I have time...

ChristopherO1 commented 4 years ago

@bartbutenaers I've gone with the 'without bindings' option for now. Works as expected, perfect. Thanks for the info, quick fix, and update. I'll keep playing with the'with bindings' option. bindings working as well :}

Thank You

bartbutenaers commented 4 years ago

@ChristopherO1, Thanks very much for testing and for your constructive feedback!! If there is anything not clear to my explanation above, please let me know! I will try to update the readme page this weekend, so all tips are welcome!