SCADA-LTS / Scada-LTS

Scada-LTS is an Open Source, web-based, multi-platform solution for building your own SCADA (Supervisory Control and Data Acquisition) system.
GNU General Public License v2.0
745 stars 292 forks source link

Graphical views Scada-LTS #1961

Closed jmuguruza closed 2 years ago

jmuguruza commented 3 years ago

I am running OpenPLC (port 8081) and ScadaLTS (port 8080 with mysql database) using Docker Compose. I loaded an example program on the PLC, taken from GitHub, named waterheater.st and then ran the PLC. So, now I make the connection with Scada-LTS using Modbus IP on port 502, after including the background image of the waterheater program and the .json file at the import/export. Then I go to graphical views and try to interact with some buttons that I create, but I got an error from localhost:8080 saying: Incorrect result size: expected 1, actual 0

Can someone find a solution for this? Thanks in advance

Limraj commented 3 years ago

Hello @jmuguruza, some questions:

  1. When you edit data source Modbus IP, do you have any errors in: modbus_error Perhaps you could make a screenshot?
  2. Can we get the json file you are trying to import, and logs from {tomcat}/logs/ : mango.log/catalina.out? (kamil.jarmusik@softq.pl)
  3. You import via the function Import / Export-> paste json into the "data" text field and click the "Import" button? (marked in red in the screen) exporst
  4. Maybe you would be able to make a screenshot when this error occurs?

Regards

jmuguruza commented 3 years ago

1- I do not get any errors 2- I see the following logs: logs1 logs2 3- I copy the whole file and paste it into the "data" field and click "Import" right, and I get the same errors. import_export 4- I get an error like the one of the image below Error