Welcome to Our Community

Some features disabled for guests. Register Today.

my machine code in the integration-machine-driver.js

Discussion in 'CAM' started by rlwoodjr, Jan 28, 2022.

  1. rlwoodjr

    rlwoodjr New
    Builder

    Joined:
    Nov 21, 2014
    Messages:
    3
    Likes Received:
    2
  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 use dig to check where any DNS entry goes
    upload_2022-1-28_23-47-44.png
    mymachine.openbuilds.com is just localhost: (But has to be a proper DNS name for browser security and to have a CN for the SSL certificate - thus the existence of a DNS entry for it - to be used with SSL signing tools, and if a browser needs to do https calls and that has to be FQDN, etc)

    Port 3000/3001 is the API port for the instance of OpenBuildsCONTROL installed on localhost:

    And that exists so that CAMs and Posts can post GCODE to CONTROL: Developers: API to Inject GCODE into CONTROL · OpenBuilds/OpenBuilds-CONTROL Wiki

    Learn more about the CAD > CAM > CONTROL silos here: docs:software:overview [OpenBuilds Documentation]

    For checkIfDriverIsInstalled() though it's not posting GCODE, it's Getting the version number - so that OpenBuilds CAM can make sure you are up to date on OpenBuilds CONTROL updates (to avoid API version mismatches)

    It returns the Name (OMD is CONTROL's old name, OpenbuildsMachineDriver), Version number currently installed, and local IP (not currently in use yet, but part of a future expansion of also scanning for and showing multiple remote instances of CONTROL so you can send to them as well, not just locally running copies - like a "Send to CONTROL on xx.xx.xx.xx" dropdown menu. For people running multiple computers/cncs/copies of CONTROL):

    upload_2022-1-29_0-7-41.png

    Use a browser and call https://mymachine.openbuilds.com:3001/api/version
    Also see:

    https://mymachine.openbuilds.com:3001/activate (bring window to front)
    https://mymachine.openbuilds.com:3001/upload (Remotely upload GCODE files into the 3D view)
    https://mymachine.openbuilds.com:3001/gcode (Downloads the currently running gcode job if one is currently running - used by the remote web interface to show the 3D view if you start/reload the UI with a job already running from the desktop application)
     
    David the swarfer and sharmstr like this.
  3. rlwoodjr

    rlwoodjr New
    Builder

    Joined:
    Nov 21, 2014
    Messages:
    3
    Likes Received:
    2
    Thank you for the quick reply. I have been enjoying learning to code in JavaScript with this project.
     
    Peter Van Der Walt likes this.
  4. rlwoodjr

    rlwoodjr New
    Builder

    Joined:
    Nov 21, 2014
    Messages:
    3
    Likes Received:
    2
    We have made a few changes. I am still learning the GitHub, so I made lots of changes in the same commits at first. I am getting better at committing smaller bits of code that go together, but still learning.

    upload_2022-1-29_8-10-27.png

    I am very grateful for what you have done and would be honored if you decide to use any of it.
     
    Peter Van Der Walt 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