Closed davidAlittle closed 6 years ago
Hi @davidAlittle, you can add Flow/Dashboard/Flowboard to your existing project, but they have to be written in Total.js. Total.js is around +70% of everything in all Total.js products. I don't see any problem to create standalone product with Flow/Flowboard/Dashboard and Total.js, the result will same and much simpler.
Do you have a problem with overhead or do you have some collisions?
Thank you!
re. overhead/collisions: I haven't tried it yet. Right now, I have a project that's built using the Vue ecosystem (Vue, Vuex, vue-router, etc). There's a lot of redundancy between that system and TotalJS, and I don't have permission to port it away from Vue. It will probably be fine? I won't know until I try.
I'll give it a go and find out. Thanks!
Which framework do you use with VUE on server-side?
It's a https://github.com/SimulatedGREG/electron-vue project, with everything enabled (So axios, vue-electron, vue-router, vuex, etc). So, NodeJS is the server.
We can discuss this in your chat app, if you'd prefer.
It's electron app, hmmm. What do you want to use Flow for? Otherwise: you can run Total.js (Flow+Dashboard) on another port than Node.js server and they will work together without any problem.
It's an SPA dashboard for machine control. Flow+Dashboard could be a quick way to let the end user build views that I might not have thought of, or to bring controls and indicators in from a bunch of pages into his own custom page.
I could predefine the flows (since the user wouldn't have access to anything I didn't already have in the UI {though they might want to use some nodes to massage the data}) so they'd only need Dashboard. The nice thing about Flow, though, is you've already done some key IoT stuff, meaning we could let end users do some after market integration without having to support them or write a bunch of custom code to get their I/O into their HMI.
That does sound like the best solution, though I'll have to circle back around to it, as I don't know how running multiple Node instances in Electron works.
Honestly, it would probably simpler to just spin up a second Electron app based on TotalJS and just let the user alt-tab between them than trying to shoehorn them into the same app.
Thanks.
I’m in my bed. You can run Total.js framework in the Electron instance (but you will start Total.js on another port) or you can run a child process with Total.js Flow. There is multiple ways how to do it. You need to find the best way and I’d like to help you. Just write me on Total.js messenger. Thank you!
Hello, I have a TotalJS Flow and Dashboard on a server. I created custom input components in Dashboard and processed the information in Flow and then displayed the computed data in Dashboard. However, if there is a second user running the Dashboard site, they see the same content as the first user. My plan is to have different users to enter their own data on Dashboard and return the respective data on their own dashboard, is there a way which I can run multiple dashboards? Thank you!
Hi @ductran54, yes, because Flow + Dashboard isn't optimized for multiple users. You have two ways:
Second way is hard, but you can optimized it for thousands of users.
How tightly coupled to TotalJS are Flow/Dashboard/Flowboard?
Total is an awesome framework, but for existing projects that would like to add Flow/Dashboard, it would be great if they were in a standalone framework, so they could be used without bringing in the rest of the system.
Unless there's a trivial way to do that already that doesn't introduce collisions and overhead?