1.3.0 • Published 4 years ago

pdqjs v1.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

pdqjs

A Node.js interface for PDQ laserwashes.

Setup:

require("pdqjs");
var client = new pdq("123.456.789.012", "username", "password");

Examples

Getting wash status

require("pdqjs");
var client = new pdq("123.456.789.012", "username", "password");
client.getStatus().then(response => {
console.log(response); //JSON object of carwash status
});

Sending commands

require("pdqjs");
var client = new pdq("123.456.789.012", "username", "password");
client.sendCommand("Instant20"); //command to switch between maintanence and normal mode

Docs

pdq constructor

pdq(ip, username, password)

ip - The IP of the carwash you want to connect to username - The username for the web login password - The password for the web login

Methods

sendCommand(command) command - A valid PDQ Laserwash command to send to the machine

getStatus() Returns the current status of the carwash in JSON, as a promise

getSoftwareInfo() Returns the carwash software configuration in JSON, as a promise

getSiteInfo() Returns info about the carwash, such as the serial number in JSON, as a promise

getRecentCommands() Returns a list of the last executed commands on the carwash in JSON, as a promise

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago