Skip to content

marin-jovanovic/scada-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple SCADA project build

Documentation (Croatian)

Opis zadatka.

Prijedlog koraka razvoja.

Opis arhitekture.

Frontend tutorial.

Setup (on ubuntu)

create venv

python3 -m venv venv

activate venv

source venv/bin/activate

install requirements

pip install -r requirements.pip.txt

try:
	sudo apt-get install $(grep -vE "^\s*#" requirements.ubuntu.txt  | tr "\n" " ")
except:
	sudo apt-get install binutils-mingw-w64-x86-64 clang doxygen gcc gcc-mingw-w64-x86-64 git graphviz libffi-dev libisoburn-dev libjansson-dev libuv1-dev libyaml-dev nodejs npm openssl pandoc plantuml python3 python3-pip samba socat sqlite3 unixodbc yarn

try:
	doit

except:
	doit docs
	doit js_deps
	doit js_view

npm i

Starting project

launch simulator

# from (venv) 
python3 simulator/main.py

launch backend

# from (venv) 
.../playground/run$ ./system.sh
# login credentials:
# 	user: user
# 	password: pass

launch frontend

.../frontend/ nodemon server.js

Used ports

simulator - iec-104: 19999
gui - http: 3000
hat gui - http: 23023
hat manager - http: 23021
db api - 8000

Scheme

port cheme

External resources

hat open collection of libraries

https://github.com/hat-open

frontend template

https://github.com/estevanmaito/windmill-dashboard

websocket package (websockets)

https://pythonrepo.com/repo/aaugustin-websockets-python-websocket

full screen image

https://www.iconsdb.com/gray-icons/fullscreen-12-icon.html

favicon image

https://www.favicon-generator.org/search/

database API

launch

.../db/ nodemon server.js

listen on port 8000

make query on

/:asdu/:io/:limit

where

SELECT * FROM t where asdu = ? and io = ? limit ?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published