Coder Social home page Coder Social logo

Installation about cncjs-kt-ext HOT 6 CLOSED

kreso-t avatar kreso-t commented on August 21, 2024
Installation

from cncjs-kt-ext.

Comments (6)

leoheck avatar leoheck commented on August 21, 2024

I am also looking at the help and I have some issues.

The -s, --secret parameter does not show a <value> field next to it like in -p, --port <port> parameter, for example. Is it right?

Also, some parameters like -c, --config <filename> show that the default is ~/.cncrc but also show (default: "") at the end of the string. Is it right?

➜  cncjs-kt-ext git:(master) node . --help
Usage: cncjs-kt-ext -s <secret> -p <port> [options]

Options:
  -V, --version                       output the version number
  -s, --secret                        the secret key stored in the ~/.cncrc file
  -p, --port <port>                   path or name of serial port (default: "")
  -b, --baudrate <baudrate>           baud rate (default: 115200) (default: 0)
  -c, --config <filename>             set the config file (deafult: ~/.cncrc) (default: "")
  --socket-address <address>          socket address or hostname (default: localhost) (default: "")
  --socket-port <port>                socket port (default: 8000) (default: "")
  --controller-type <type>            controller type: Grbl|Smoothie|TinyG (default: Grbl) (default: "")
  --access-token-lifetime <lifetime>  access token lifetime in seconds or a time span string (default: 30d) (default: "")
  -h, --help                          output usage information

from cncjs-kt-ext.

leoheck avatar leoheck commented on August 21, 2024

Also, the -s, --secret does not work

image

from cncjs-kt-ext.

leoheck avatar leoheck commented on August 21, 2024

I figured out that I can use the CNCJS_SECRET environment variable. So now, I am receiving the following output:

Connection error. Unauthorized user: user.id=, user.name=cncjs-autolevel

How do I set these user.id and user.name?

image

from cncjs-kt-ext.

leoheck avatar leoheck commented on August 21, 2024

Alright, I was able to run it by adding my credentials directly on the id and name fields on generateAccessToken function.

from cncjs-kt-ext.

matthgyver avatar matthgyver commented on August 21, 2024

Thank's guy !
Little precision : ID could be found in the ~/.cncrc file

from cncjs-kt-ext.

leoheck avatar leoheck commented on August 21, 2024

@matthgyver Yeap that is right. I am fixing these things on my fork. I was not able to test it yet. I just know that it is running. If I can fix these command-line issues I will make a pull request here.

from cncjs-kt-ext.

Related Issues (20)

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.