cambiegroup / flowchem

Flowchem is an application to simplify the control of instruments and devices commonly found in chemistry labs.
MIT License
15 stars 5 forks source link

Implementation of a "monitoring of data" as watchdog in the flowchem #145

Open samuelvitorsaraiva opened 3 weeks ago

samuelvitorsaraiva commented 3 weeks ago

The idea is to implement a class where the datas - input and outputs of the api-nodes- is monitoring in order to create a datatable to the experimental run.

JB-Wolf commented 2 weeks ago

In my opinion, this is how we should do it:

The Idea behind that would be to achieve a very simple orchestration client on top

samuelvitorsaraiva commented 2 weeks ago

Well, there are two ways to do it.

Method 1 involves the creation of a virtual device. This device inspects all server devices and generates a log. The process is initiated through an automatic decorator insertion in the FlowchemComponent, and it functions effectively. I did it.

2 - Run another "client," which will inspect the server and create a loop to trigger all components' get methods and save the datas. It is more elegant, but I am working on it now to see how complex it will be.