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-harmony-tv

v0.1.1

Published

Homebridge plugin for Harmony activities

Downloads

7

Readme

homebridge-harmony-tv

hombridge-harmony-tv is a plugin for Homebridge which allows you to control your activities of your Harmony remote. It creates a Homekit television with inputs that represent the activities.

Features

  • HomeKit TV integration
  • HomeKit automation
  • Turn activity on/off
  • Choose activity from the input list

To use the plugin iOS 12.2 or higher is required.

Todo

  • MQTT support for harmony API

Installation

For this plugin to work, enable XMPP for the Harmony hub and install the Harmony API:

Enable XMPP:

  • Open the Harmony app
  • Go to Harmony setup
  • Add/change devices and activities
  • Remote and Hub
  • Enable XMPP
  • Confirm twice

Install Harmony API (with great thanks to maddox)

cd $HOME
git clone https://github.com/maddox/harmony-api.git
cd harmony-api
script/bootstrap

Install Harmony API as a service

sudo mkdir -p /var/lib/harmony-api
sudo cp -R * /var/lib/harmony-api
sudo ln -sf /var/lib/harmony-api/config /etc/harmony-api
sudo cp /var/lib/harmony-api/config/harmony-api-server.service /etc/systemd/system/
sudo systemctl enable harmony-api-server.service

Then either reboot or run

sudo systemctl start harmony-api-server.service

Harmony API server log is checked with

sudo journalctl -f -u harmony-api-server

Install homebridge-harmony-tv:

sudo npm install -g homebridge-harmony-tv

Configuration

Add the accessory in config.json. The hub will be detected automatically and add the activities.

Core

| Key | Description | Default | | --- | --- | --- | | accessory | Must be HarmonyTV | N/A | | name | Name to appear in the Home app | N/A | | connection | Must be http (for now) | http |

httpSettings block (mandatory when connection = http)

| Key | Description | Default | | --- | --- | --- | | apiIP | IP address of Harmony API server | N/A | | apiPort | Port of Harmony API server | 8282 | | pollingInterval | Time (in ms) between status checks | 5000 | | timeOut | Time (in ms) until the accessory will be marked as Not Responding | 5000 |

MQTT block (mandatory when connection = mqtt)

Todo

Additional fields

| Key | Description | Default | | --- | --- | --- | | model (optional) | Appears under the Model field for the accessory | Harmony TV | | serial (optional) | Appears under the Serial field for the accessory | Harmony TV | | manufacturer (optional) | Appears under the Manufacturer field for the accessory | goedh452 |

Config sample

"accessories": [
 {
   "accessory": "HarmonyTV",
   "name": "Televisie WK-Achter",
   "connection": "http",
   "httpSettings":{
                   "apiIP": "192.168.1.100",
                   "apiPort": 8282,
                   "pollingInterval": 5000,
                   "timeout": 5000
                 }
   }
 ]