Git Product home page Git Product logo

hal-editor's Introduction

LinuxCNC-HalViewer

In this repo you will find a webbased userinterface for configuring HAL files.

At the moment it has proof of concept status, there is no propper error handling and so on.

Currently following actions are supported:

  • Show all available HAL components and view manuals
  • Add components to HAL (only Realtime) - multiple instances are not supported
  • Connect by drag and drop
  • Show current HAL values

How it works: the complete system is based on node.js. There are two components

  • a Server to provide a static webpage (default on Port 9000) - this can run anywhere in the network.
  • a second Server component which connects to HAL and provides an interface with socket.io (default on Port 8070) - this component has to run on the linuxcnc machine. The nodes, ports, ... are rendered on the client side, the socket.io connection is used to get list of Pins, Nodes, Values, ... and send commands to HAL.

How to start:

  • install node.js / npm on the machines where the components should run.
  • copy this Repo on your machine
  • run the command "npm install" inside the folder to installl dependancies
  • run "npm start" inside the folder to start the server
  • to test the environment open "127.0.0.1:9000" or "0.0.0.0:9000" in your Browser.
  • the following screen should be shown
  • Now we have to start the second Server component.
  • If the components are running on different machines we have to change "src/haldata/connector.tsx": change const socket = io("ws://:8070", { to: const socket = io("ws://your IP or DNS-Address of the HAL Server:8070", {
  • open an additional terminal and run "node server.js" - the terminal should print "Server started!"
  • Your Browser should connect automaticaly to the HAL server and view your current HAL configuration.

Feel free to report issues or submit pull requests.

hal-editor's People

Contributors

dev-git-usr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.