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

homebridge-cec-accessory

v0.3.0

Published

Homebridge support for CEC devices over HDMI

Downloads

6

Readme

homebridge-cec-accessory

Homebridge support for home theater devices using CEC over HDMI

About

homebridge-cec-accessory was written with Raspberry Pi in mind.

Create homebridge accessories for each CEC device you'd like to control. Currently power and volume are the only available controls, and volume only toggles mute (and probably only works with an attached receiver).

No automatic detection of attached devices is performed. For each device, create an accessory entry in your config.json.

Bug reports, feature requests, and pull requests welcome.

Installation

On a Raspberry Pi

  1. Follow these instructions to install and run homebridge on Raspberry Pi. Don't give up. Hang in there.

  2. Install cec-utils using package manager:
    $ apt-get install cec-utils

  3. Install homebridge-platform-cec:
    $ npm install -g homebridge-cec-accessory

  4. Open an issue if you run into problems.

Configuration

Here is a sample of what you might put in your ~/.homebridge/config.json

"accessories": [
  {
    "accessory": "cec",
    "name": "TV Power",
    "type": "power",
    "address": 0
  },
  {
    "accessory": "cec",
    "name": "Amp Volume",
    "type": "volume",
    "address": 5
  }
]

"name" can be any string you want, but must be unique. Try to keep it short and descriptive.

"type" must be either "power" or "volume".

"address" specifies the CEC destination address of the device, represented as an integer. Here are the possible devices:

0: TV
1: Recording 1
2: Recording 2
3: Tuner 1
4: Playback 1
5: Audio system
6: Tuner 2
7: Tuner 3
8: Playback 2
9: Recording 3
10: Tuner 4
11: Playback 4

Finding Your Devices

The best way I've found to find your devices is to use the cec-client tool which comes as part of the cec-utils package.

From the command line:
$ cec-client -d 1

Once it outputs waiting for input, type scan and press return. This might be slightly confusing, but the number to use for "address" is the value presented as device #, not the decimal separated IP-style address.

Troubleshooting

Under the covers, homebridge-cec-accessory uses the cec-client to interface with your HDMI device. Stopping and starting repeatedly can cause things to go awry. If the plugin reports that cec-client never reported ready, try restarting.

If you're having trouble doing something with this plugin, verify you can do it with cec-client. If it can't, neither can we.

Additional resources