Skip to content

heizerbalazs/IOT_Manufacturing_System_Monitoring

Repository files navigation

Manufacturing System Monitoring

A month ago (2020 March) I completed the Data Streaming Nanodegree by Udacity. The course was very comprehensive, the only thing I really missed was the capstone project from the end. For that reason I decided to build something, using technologies I learnt. In this project I will build a data pipeline to monitor the production in a manufacturing system, and to do this I will integrate the following components:

  1. Data Source: OPC-UA server running unreliable machine simulations. ✅
  2. Buffer: Kafka ✅
    • Kafka producer: OPC-UA client subscribed to machine events.
  3. Stream Processing: KSQL
  4. Data Store: PostgreSQL
  5. Visiualisations: Cube.js

Usage:

At the current state of the project I developed the OPC-UA server and client. Both of these applications has their own Docker containers. To run the server and the client, execute the following commands:

  1. create a network in docker
$ docker network create OPC-UA
  1. run the kafka compose file
$ docker-compose -f docker-compose.kafka.yml up
  1. run the main compose file
$ docker-compose up
  1. check the content of production.cycles topic
$ docker-compose -f docker-compose.kafka.yml exec broker kafka-console-consumer --bootstrap-server localhost:9092 --topic production.cycles --from-beginning

At this point you should see the events on the console.

  1. Start the ksqldb-cli and check the production.cycles topic
$ docker exec -it ksqldb-cli ksql http://ksqldb-server:8088
ksql> SHOW TOPICS;
ksql> SET 'auto.offset.reset' = 'earliest';
ksql> print 'production.cycles';

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published