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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sharp-aquos

v0.0.7

Published

A library for accessing the IP Remote functionality provided in some Sharp Aquos televisions.

Downloads

1

Readme

Sharp Aquos Remote Control

This projects attempts to give the user the ability to control their Sharp Aquos Television from a Node.JS project via their TCP interface.

Sharp Aquos Setup

  1. Ensure the television is turned on.
  2. Hit the 'Menu' button on your remote.
  3. Navigate to 'Initial Setup'
  4. Navigate to 'Internet Setup'
  5. Navigate to 'Aquos Remote Control'
  6. Enable the Remote Control functionality.
  7. Go to Detailed Settings and set a username/password.

SharpAquosRemoteControl Setup

npm install benburkhart1/sharp-aquos-remote-control

SharpAquosRemoteControl Examples

Check out the sharp aquos remote control example application at: http://www.github.com/benburkhart1/sharp-aquos-remote-control-test

How to Use This Library

The following program connects to my television on IP 192.168.1.111 port 10002, with the username 'admin' and the password 'password', turns on the television, checks if the input# is 5 (which is Component (digital cable) here), if it is, it then turns the volume to level 15, otherwise it mutes the volume.

var Aquos = require("sharp-aquos-remote-control").Aquos;

var gw = new Aquos("192.168.1.111", 10002, 'admin', 'password');

gw.connect(function(err) {
  if (err)
  {
    console.log(err);
    return;
  }

  gw.power(true, function(err, data) {
    // Get the Input #
    gw.input(null, function(err, data) {
      if (err)
      {
        console.log(err);
        return;
      }

      // If input # is 5 (Component here)
      if (data == 5)
      {
        console.log("Input # is 5, setting volume to 15");

        // Set the volume to 15
        gw.volume(15, function(err, data) {
          if (!err)
            console.log("Volume set to 15");
        });
      }
      else
      {
        console.log("Input # is " + data + ", muting volume");

        gw.mute(true, function(err, data) {
          if (!err)
            console.log("Muted volume");
        });
      }
    });
  });
});

How it Works

Some models of the Sharp Aquos TV series contain a "Remote Control" setting that allows the teleivision to be controlled via a TCP socket server. This library connects and sends commands in the following format:

| Command | Options | Newline | | -------- | ------- | ------- | | 4 bytes | 4 bytes | 1 byte 0x0d |

The options are always "? " which means "Get the value for this" or 1-4 numbers, space-right-padded, meaning 1 would be: "1 "

168 would be: "168 "

The commands are one of the following

| Command | Description | | ------- | ------------- | | RSPW | Restrict Power | | POWR | Power | | VOLM | Volume | | CLCP | Closed Captioning | | IAVD | Input | | CHUP | Channel Up | | CHDW | Channel Down |

The following commands are not implemented yet.

| Command | Description | | ------- | ------------- | | ACSU | Surround | WIDE | Widescreen Mode | | OFTM | Off Timer | | DCCH | Change Channel |