1.0.2 • Published 5 years ago

atg-client v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

atg-client

npm

Description

This module acts as a simplistic administrative client for interfacing with Veeder-Root Automatic Tank Gauges (ATGs) or other devices speaking the TLS-350 protocol. This has been tested against GasPot and Conpot, both honeypots meant to simulate ATGs; it has not been tested against anything else, so use at your own risk.

Inspired by this metaspoilt module.

Installation

npm i atg-client --save

Usage

const atg = require('atg')

const opts = {
	ip: '',
	port: 10001,
	command: 'INVENTORY',
	debug: false,
}

atg(opts)
	.then(d => {
		console.log(d) // log output
	})
	.catch(e => {
		console.error(e)
	})
CommandDescription
ALARMI30200 Sensor alarm history (untested)
ALARM_RESETIS00300 Remote alarm reset (untested)
DELIVERYI20200 Delivery report
INVENTORY200/I20100 In-tank inventory report
LEAKI20300 Leak report
RELAYI40600 Relay status (untested)
RESETIS00100 Reset (untested)
CLEAR_RESETIS00200 Clear Reset Flag (untested)
SENSORI30100 Sensor status (untested)
SENSOR_DIAGIB0100 Sensor diagnostics (untested)
SHIFTI20400 Shift report
SET_TANK_NAMES602 set tank name (use TANK_NUMBER and TANK_NAME options)
STATUSI20500 In-tank status report
SYSTEM_STATUSI10100 System status report (untested)
TANK_ALARMI20600 Tank alarm history (untested)
TANK_DIAGIA0100 Tank diagnostics (untested)
VERSIONVersion information