-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uibuilder Pfad-Problem #94
Comments
ich vermute das liegt daran: TotallyInformation/node-red-contrib-uibuilder#30 |
Ich habe das Problem dort versucht nachzuvollziehen und bin mir nicht sicher, ob das tatsächlich der Grund ist. Auch Soweit ich das überblicke sollte nicht nur unter Bin dankbar für jeden Tip... (notfalls auch wie ich anders ein komplett frei gestaltbares Dashboard umsetzen kann) Vielen Dank & Grüße, Stephan |
Hi, sorry I have no German. I have updated and closed the referenced uibuilder issue. On reflection, I've rejected the issue as the reference to the socket.io library must always be static, it cannot move with However, there was a 2nd bug that is fixed in uibuilder v1.0.11 - that was setting the incorrect namespace if |
@TotallyInformation thanks for your feedback! Does that mean that it's still not possible to use |
No, you can absolutely use it. Just get the latest version. All instances of uibuilder will use the same instance of socket.io. The main thing is that the client and server versions match. This works fine. I am now using httpNodeRoot on my dev system to make sure that it works fine. uibuilder can't do what Dashboard does because it works in a very different way and is much more flexible. The disadvantage is that it uses physical template files which need to be able to connect back to the socket.io. But there isn't a need to have more than one path to the socket.io client as long as there is only 1 version of the socket.io server. Having more than 1 would be a waste of resources. All of the workarounds you mention might also be possible but not needed. Hope that clarifies things? If you have any other issues or queries, please do get back to me. |
Thanks for the clarification! |
@B748 kannst Du dann nochmal testen ob uibuilder nun mit RedMatic funktioniert? |
Mach ich! Habe zwischenzeitlich allerdings eine eigene webApp-UI in Angular 7 erstellt (inkl. Editor). Sobald die gröbsten Schnitzer beseitigt sind mach ich sie zugänglich. Vielleicht lassen sich da zukünftig Synergien heben ;-) |
Ui, das klingt spannend, freue mich drauf wenn Du es veröffentlichst, bitte gib Bescheid. Ich hab derweil übrigens ebenfalls mit sowas angefangen, auch mit wysiwyg drag&drop editor, allerdings auf Polymer 3 basierend. |
Hat sich leider nichts verändert. Meinem Verständnis nach ist das Problem nicht die Verbindung von Uibuilder-backend (socket.io) zu Node-Red, sondern die Verbindung des Frontends zur socket.io-Implementation. Das static serving der index.html funktioniert ja, nur führen einzelne Pfade der eingebundenen Skripte zu 404s: Ich hoffe, dass ich es in den nächsten Wochen schaffe meinen Code in einen ersten, belastbaren Zustand zu bekommen. Stelle ihn dann online... |
Als quickfix kann man in https://github.com/TotallyInformation/node-red-contrib-uibuilder/blob/master/nodes/uibuilder.js#L174 const uib_socketPath = tilib.urlJoin('/addons/red', moduleName, 'socket.io') verwenden. Damit ist der Websocket-Client unter Alternativ wartet man auf v2, hier scheint das Problem angegangen worden zu sein. |
@B748 komm doch mal im Slack vorbei oder kontaktiere mich direkt :) |
@B748 : Gerda eben mit v2.0.5 von uibuilder mal kurz getestet und es sieht jetzt tatsächlich gut aus. Ggfs. kann ja dann auch dieser issue geschlossen werden? |
Issue kann geschlossen werden. Mit UI Builder > 2.0 läuft es. |
Beim Versuch die uibuilder-Contribution über Node Red einzubinden konnten nach dem Node-Deployment JQuery (Pfad "./vendor/jquery/dist/jquery.min.js") und SocketIO (Pfad: "/uibuilder/socket.io/socket.io.js") nicht geladen werden.
Wie müssten die Pfade geändert werden? Ist es möglich, dass wegen der geänderten Struktur durch redmatic das base-Directory „uibuilder“ nicht existiert?
Bei einer „normalen“ Node-red Einbindung klappt alles wie vorgesehen.
The text was updated successfully, but these errors were encountered: