0.0.3 • Published 7 months ago

epson-projector-ctrl v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Epson projector control

Installation

npm i epson-projector-ctrl

Using Serial Protocol

Quick start - Serial Protocol

const epsonSerial = require('epson-projector-ctrl').serial
const projector = new epsonSerial("COM3") // The COM port connected to projector
// Get the power state
projector.power().then((power) => {
    console.log(power)
})
// Set the power state
projector.power("ON").then((power) => {
    console.log(power) // Should be undefined
})
projector.close() // Close serial connection

Supported methods - Serial Protocol

MethodEPSON CMDTypeArgument
powerPWRGet/Set"ON", "OFF"
sourceSOURCEGet/Set"00"~"FF"
luminanceLUMINANCEGet/Set"00", "01"
muteMUTEGet/Set"ON", "OFF"
freezeFREEZEGet/Set"ON", "OFF"
hreverseHREVERSEGet/Set"ON", "OFF"
vreverseVREVERSEGet/Set"ON", "OFF"
lampLAMPGetN/A
errorERRGetN/A

Using HTTP Protocol

Quick start - HTTP Protocol

const epsonSerial = require('epson-projector-ctrl').http
const projector = new epsonSerial("10.0.1.101") // The IP address of the projector
// Set the power state
projector.power("ON").then((power) => {
    console.log(power) // Should be undefined
})

Supported methods - HTTP Protocol

MethodEPSON CMDTypeArgument
powerPWRSet"ON", "OFF"
sourceSOURCESet"00"~"FF"
luminanceLUMINANCEGet/Set"00", "01"
muteMUTESet"ON", "OFF"
freezeFREEZESet"ON", "OFF"
hreverseHREVERSEGet/Set"ON", "OFF"
vreverseVREVERSEGet/Set"ON", "OFF"

Using TCP Protocol

Quick start - TCP Protocol

const epsonSerial = require('epson-projector-ctrl').tcp
const projector = new epsonSerial("10.0.1.101") // The COM port connected to projector
// Get the power state
projector.power().then((power) => {
    console.log(power)
})
// Set the power state
projector.power("ON").then((power) => {
    console.log(power) // Should be undefined
})
projector.close() // Close serial connection

Supported methods - TCP Protocol

MethodEPSON CMDTypeArgument
powerPWRGet/Set"ON", "OFF"
sourceSOURCEGet/Set"00"~"FF"
luminanceLUMINANCEGet/Set"00", "01"
muteMUTEGet/Set"ON", "OFF"
freezeFREEZEGet/Set"ON", "OFF"
hreverseHREVERSEGet/Set"ON", "OFF"
vreverseVREVERSEGet/Set"ON", "OFF"
lampLAMPGetN/A
errorERRGetN/A

Progress

  • Serial protocol
  • HTTP protocol
  • TCP protocol
0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago