Welcome to Our Community

Some features disabled for guests. Register Today.

best way to stream data into Control software

Discussion in 'Control Software' started by mccoyspace, Apr 12, 2022.

  1. mccoyspace

    Builder

    Joined:
    Oct 29, 2019
    Messages:
    4
    Likes Received:
    0
    I have built a large-format pen plotter running via a BlackBox with the CONTROL software. I've written my own python software to output g-code files that I load and run via CONTROL. Everything works great.

    Now I want to develop a way to send commands/g-code to CONTROL in real-time from an external application, as if you were to paste commands into the serial console one at a time and press the send button. What is a good way to do this?

    I'm thinking I could access it through the built-in web server similar to how the mobile jog access works. I'm guessing that there would be some URL endpoint that I could POST data to, but I can't find it in the javascript.
    Alternately I suppose I could access the BlackBox directly via Grbl 1.1 protocol, but that seems like more work.
    Any suggestions or pointers?
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    You can tie into the Websocket interface on port 3000. Websocket emits for runCommand and runJob etc (see websocket.js)
     
    David the swarfer likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice