yakshaveinc / tasks

distributed roadmap
The Unlicense
1 stars 0 forks source link

DevOps SCADA (SVG + EventSource) #37

Open abitrolly opened 5 years ago

abitrolly commented 5 years ago

I miss SCADA dashboards to control my distributed systems. Servers, bots, build pipelines and processes doesn't fit into my head and need to be offloaded to graphics. I like a nice picture that quickly shows status of various things together. And I like it to be a piece of art and not a plain boring dashboard with line charts.

For that to work, we need to separate design (SVG) from event flow. SCADA panels are static, fixed size with no reflow and resizing at run-time. This is made to make operator remember locations and don't click. SCADAs screens are mostly non-interactive - all control is done either automatically or by hardware buttons and switches on site (not a web-site, but a real factory building with valves and robots). SCADA screens are mostly non-interactive. If you've seen NASA wall big screen that's basically it - spread the information, but do not make anyone steal attention with mouseclicking there. SCADA screens still have fixed size animation to attract attention or show that things are running smoothly (two different types of effects for operator).

How it works?

All design is made in SVG. SVG runs in browser. Browser is good, because it can run on top of OBS to provide transparent layer on top of your live videos.

SVG is fixed size, fixed viewport. Each SVG element has a fixed human readable ID that is also used to change look of the element with CSS class. Looks is needed to changes status according to current "state" and "events". State is read once when page is refreshed, events are fed to Firefox or Chrome with EventSource.

Complications

It may happen that React Flux Architecture is nice, but we won't be updating the backend from UI. The only thing that is needed is that connection of SCADA interface to real state is rock solid regardless of initial "state" and missing "events".

techtonik commented 5 years ago

SVG is awesome! Do you think we can get some money for that? My proof of work:

abitrolly commented 5 years ago

@techtonik I didn't think about that. In theory it is possible if we can get a prototype and MVP and somebody is willing write a lot of papers. :D Another way it to checkout where https://gitcoin.co is now.