Git Product home page Git Product logo

amx-setup's Introduction

amx-setup

A simple command line tool and Node.js module to setup AMX Netlinx touch panels and processors.

A connection is made to the device over telnet and commands are sent to configure the device.

NPM

Installation

$ npm install amx-setup

Features

  • Set network configuration
  • Set device number
  • Set master connection (for touch panels)
  • Reboots the device after update

Example Usage CLI

connect to a device and change it's ip address

$ amx-setup --host 192.168.1.10 --ip 10.10.201.20

Example Usage Node.js

connect to a device and change it's ip address

const setupAMX = require('amx-setup')

const device = new setupAMX({
    host: '192.168.1.20',
    ip: '10.10.201.20'
})

device.connectAMX()

Defaults

{
  host: '',
  name: '',
  type: 's',
  ip: '',
  sub: '',
  gate: '',
  username: 'administrator',
  password: 'password',
  device: '',
  pin: '1988',
  master: '',
  mode: 'u',
  system: '0',
  masterPass: '',
  masterUser: '',
  masterPort: ''
}

CLI API Reference

arguements available with CLI usage:

--host

The device to connect to

--ip

IP address to set

--name

new host name for the device

--type

's' for static or 'd' for dhcp

--sub

subnet mask

--gate

gateway

--username

telent username

--password

telent password

--device

device ID for touch panels

--pin

pin password for touch panels

--master

master connection ip address for touch panels

--mode

master connection mode. 'u' for url

--system

system number for master connection from touch panel

--masterPass

password for master from touch panel

--masterUser

username for master from touch panel

--masterPort

port to connect to from touch panel to master

Known Issues

  • After updating a touch panel the connection can timeout due to it automatically rebooting on network configuration change.

ToDo

  • Add support for more AMX devices
  • Filter console logs to be readable

Devices Tested

Currently only NX processors and G4 touch panels have been tested so there might be a difference with other touch panels or older processors.

amx-setup's People

Contributors

ashleymarkfletcher avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.