Well currently the simulator generates data to be inserted in the DB. such data are typically par1=2, par2=ON etc. The simulator generates some inserts in the DB and the tables (organized for parameter type: int,double,
string ecc.) are 3 columns (parameter_name, date, value).
The improvement could be the association between a certain parameter with an event. It means I can register for a list of parameters (par1,par2, par3) and when one parameter, in the list, changes its value an event is launched and (final step) its representation is modified.
For example if I associate a par1 (with possible values 1 and 0) to a traffic light, and I'm registering for it, every time a new instance of par1 is received a notification is sent and the traffic light representation changes its color.
I imagine I can build the "circuit" using something like a javascript library defining the components and so on, but I have no idea how to connect and notify changes in the database with javascript events.
Thanks