npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

epsonprojector

v0.1.0

Published

Control epson projector

Readme

epsonprojector

エプソン社製プロジェクターを制御するモジュールです。 制御はESC/VP.netという通信プロトコルを使用します。プロトコルの詳細はエプソンのサイトなどで入手可能です。

使用方法

初期化

const epsonprojector_factory = require('epsonprojector');
const proj = new epsonprojector_factory('EH-TW6700');

なお、初期化でモデル名を渡していますが、これが今のところログ出力にしか使用しておらず、機器探索などで使用していません。ESC/VP.netで機器探索をする際、ブロードキャストで応答を待つのですが、今のところは応答してきた機器を無条件に対象プロジェクターとしています。

電源ON/OFF

// 電源ON
proj.on();
// 電源OFF
proj.off();

マニュアルコマンド

コマンド文字列を指定して、レスポンスをコールバックで受けます。 下記のような感じでコマンド文字列の指定、コールバックの処理を行います。

// プロジェクターの電源状態取得
proj.manual('PWR?', (res) => {
    for (let i = 0; i < res.length; res++) {
        let arg = res[i].match(/^PWR=([0-9]+)/);
        if (arg && arg.length >= 1) {
            console.log('Projector power is ' + (arg[1] == '01' ? 'ON' : 'OFF'));
        }
    }
});

// ランプ点灯時間取得
proj.manual('LAMP?', (res) => {
    for (let i = 0; i < res.length; res++) {
        let arg = res[i].match(/^LAMP=([0-9]+)/);
        if (arg && arg.length >= 1) {
            console.log('LAMP time is' + arg[1] + ' hours')
        }
    }
});

使用環境

以下のような環境で使用しています。

|項目|内容| |:----|:--------------------------------------| |ホスト|Raspberry Pi 3B+ Raspbian Stretch Lite| |プロジェクター|エプソン社製EH-TW6700|