Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 1.69 KB

readme.md

File metadata and controls

70 lines (47 loc) · 1.69 KB

license

CNC data simulator

Simulate CNCs streaming data to MongoDB and Kafka.

Main functions

  1. Add multiple CNCs.
  2. Add attributes(such as temperature, current and so on) of CNCs.
  3. Gcode toolpath generation and streaming integrated.
  4. Stream data to Kafka.

Use

Prereqruisite: You should have workong nodejs and npm.

  1. Setup Kafka.

    1. Kafka manual
    2. create a topic and modify the config file (both the address of middleware and topic name)
  2. Clone the project.

    $ git clone https://github.com/callofdutyops/cnc-data-simulator.git && cd cnc-data-simulator
  3. Install all the necessary libs.

    $ npm install
  4. Start the local server.

    $ npm run dev

    If you want the server auto restart when you coding, just start watch script.

    $ npm run watch
  5. Navigate to the following url.

    http://local_ip:3000/simulator (local_ip is defined in the config file)

Other

Check out this demo video right here (from @Temmermans): example no SDS

Contributions

Contributions and ideas are more than welcome!

TODO

  • Gcode toolpath generate
  • Store CNC and attributes in database

Troubleshooting / FAQ

Don't forget to modify the local_ip in config file (localhost or your real ip)

Special thanks

@Temmermans

Main reference is his repo of iot-device-simulator.