Skip to content

MachineClient converts any device into a remote IOT CNC controller. It works alongside the ProductionCloud server.

License

Notifications You must be signed in to change notification settings

dfmdmx/ProductionCloud_MachineClient

Repository files navigation

Machine Client

Machine Client converts any device into a remote IOT CNC controller. works alongside the Production Cloud Server.

hello

Integration with the production server

The client can be understood as a g-code file queue container installed on a local machine that can perform certain tasks remotely from the production server, such as:

  • Live CNC control and g-code previsualization with Tiny-G and GRBL controlled machines with Chilipeppr
  • Remote USB emulator for machines with their own working UI (client must be installed on rpi zero)
  • USB hub for file transfer (all g-code files in queue are copied to an external USB when inserted into the host computer)

Install

  1. Download ZIP file from GitHub.
  2. Unzip the file and open or cd into the recently extracted folder named ProductionCloud_MachineClient-master.
  3. Run the client:
  • Linux:
    Type python3 MachineClient.py into the console. You might need to install some extra libraries from pip. Try running python3 MachineClient.py -setup for the script to attempt to install them. For manual install run pip install -y pbkdf2 websockets requests fcntl asyncio psutil shutil.

  • Windows:
    Double click any of the executable files. Use Console version for the first setup.

    • MachineClient_Console_win64.exe
    • MachineClient_NoConsole_win64.exe
  1. Login into the production server. Under machines menu select new machine. You will be prompted to name your new connected client, continue until machine setup completes. You may need to reload the page to access the new machine.

Note: Windows users can't change the host's computers Wi-Fi settings.

Live control using Chilipeppr

In order to connect to a Tiny-G or GRBL CNC machine just plug the controller into the computer's USB port. The machine client will then run Chilipeppr serial-port-json-server to interface with the CNC controller. This file is stored externally in a folder named chilipeppr_serial.

Note: Windows users might need to unblock the serial-port-json-server file.

USB hub

You will need to place an empty text file named after your machine in the root directory of your external USB in order to be detected by the client. For example if your machine's name is OldShapeoko then the file should be named OldShapeoko.txt. Once inserted into the computer the client will delete and update all the .nc and .txt files in the root directory. We recommend using a dedicated USB stick to avoid problems.

About

MachineClient converts any device into a remote IOT CNC controller. It works alongside the ProductionCloud server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published