@@ -2,11 +2,12 @@ Introduction
2
2
===================================
3
3
4
4
ckSCADA is an open source SCADA system built using Kafka.
5
+
5
6
https://ckscada.readthedocs.io/
6
7
7
8
The primary aim is to be an open source alternate to proprietry SCADA systems.
8
9
9
- Using Kafka it allows the system to be easily extended using third party
10
+ Using Kafka allows the system to be easily extended using third party
10
11
components. Kafka is a very well supported framework for messaging between
11
12
components. The system is able to be scaled easily with the addition of additional
12
13
Kafka brokers.
@@ -17,7 +18,7 @@ Roadmap
17
18
The system is currently in the very early stage of development and is not suitable
18
19
for production use.
19
20
20
- * v0.1
21
+ * v0.1
21
22
22
23
* Basic framework has been setup and proof of concept implemented.
23
24
@@ -27,13 +28,13 @@ Future Release Milestones
27
28
* v0.2
28
29
29
30
* Add exception handling to server code
30
-
31
+
31
32
* Document server code
32
-
33
+
33
34
* Fix issues around server redundancy
34
-
35
+
35
36
* Add additional devices including server metric tags
36
-
37
+
37
38
* Discuss Python implementation for server components
38
39
39
40
* v0.3
@@ -45,32 +46,47 @@ Server Installation
45
46
46
47
To install the server components.
47
48
48
- Firstly make sure your Kafka broker/clusetr has been setup already. The server
49
- components should be able to be run on the Kafka broker.
49
+ Firstly make sure your Kafka broker/cluster has been setup already. There are
50
+ plenty of tutorials on how to setup a KAfka cluster such as this one:-
51
+
52
+ https://kafka.apache.org/quickstart
53
+
54
+ Windows Installation
55
+ -----------------------------------
56
+
57
+ Working under the assumption that your machine is connected to the internet.
58
+
59
+ For Windows you will need to install node.js manually:-
60
+
61
+ https://nodejs.org/en/download/
62
+
63
+ Install Python 3
50
64
51
- For Windows you will need to install node.js manually as well as python 3. You
52
- can then install kafka-python with pip and manually install node.js dependancies
53
- using
65
+ https://www.python.org/downloads/
66
+
67
+ make sure that python is included in your path.
68
+
69
+ Following this, download the ckscada package and download the npm/python packages.
54
70
55
71
```
56
72
57
- npm install .
73
+ make.bat
58
74
59
75
```
60
76
61
- in the ckscada-client and ckscada-server/admin-client folders.
77
+ Linux Installation
78
+ -----------------------------------
62
79
63
80
For Debian/Ubuntu use apt to install it
64
81
65
82
```
66
83
67
84
sudo apt install npm python3
68
- sudo npm install -g npm-cache
69
85
pip3 install kafka-python
70
86
71
87
```
72
88
73
- Following this, download the ckscada package and build the npm packages.
89
+ Following this, download the ckscada package and download the npm/python packages.
74
90
75
91
```
76
92
@@ -79,26 +95,26 @@ Following this, download the ckscada package and build the npm packages.
79
95
80
96
```
81
97
82
- Edit the config.json file in the config folder .
98
+ Edit the config.json file in the config folders .
83
99
Include the nodeId, ip address and the port of one of your Kafka brokers.
84
100
85
- We will next run the server components.
101
+ We will next run the server components, opening a new terminal between each set:-
86
102
87
103
```
88
104
89
105
cd ckscada-server/server/src
90
106
python3 ckagent.py --config ../../config/config.json
91
107
92
108
cd ckscada-server/admin-server/src
93
- python3 points .py --config ../../config/test .json
109
+ python3 ckadminserver .py --config ../../config/config .json
94
110
95
111
cd ckscada-server/admin-client
96
112
npm start .
97
-
113
+
98
114
```
99
115
100
- There is a helper script to setup a few tags on simulation device and start
101
- publishing them the sample page on the client uses these.
116
+ There is a helper script to setup a few tags on a simulation device and start
117
+ publishing them, the sample page on the client uses these.
102
118
103
119
```
104
120
@@ -116,32 +132,42 @@ Viewer Only
116
132
To install the viewer download the Node.js package from nodejs.org for your
117
133
operating system.
118
134
119
- For Windows you will need to install node.js manually as well as python 3. You
120
- can then install kafka-python with pip. Then manually install node.js dependancies
121
- using
135
+ Windows Installation
136
+ -----------------------------------
137
+
138
+ Install node.js manually:-
139
+
140
+ https://nodejs.org/en/download/
141
+
142
+ Following this, download the ckscada package, npm packages and
143
+ remove the folders that aren't needed.
122
144
123
145
```
124
146
147
+ del ckscada-server
148
+
125
149
cd ckscada-client
126
150
npm install .
127
-
151
+
128
152
```
129
153
154
+ Linux Installation
155
+ -----------------------------------
156
+
130
157
For Debian/Ubuntu use apt to install it
131
158
132
159
```
133
160
134
161
sudo apt install npm
135
- sudo npm install -g npm-cache
136
162
137
163
```
138
164
139
165
Following this, download the ckscada package and build the npm packages.
140
166
141
167
```
142
168
143
- cd ckSCADA
144
- make
169
+ cd ckscada-client
170
+ npm install .
145
171
146
172
```
147
173
0 commit comments