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

atlona-matrix

v1.0.0

Published

Control your Atlona HDMI matrix over the network

Downloads

2

Readme

atlona-matrix

Control your Atlona HDMI matrix switch over the network

NPM Version GitHub license

atlona-matrix is a Node.js library that allows you to control your Atlona HDMI matrix switch over your local network. It's especially useful for integrating into a home automation system.

Getting Started

atlona-matrix is distributed through NPM:

npm install atlona-matrix

# or, if you prefer:
yarn add atlona-matrix

Examples

Atlona matrix switches unfortunately do not advertise themselves on the local network in any way that facilitates discovery, so you'll have to have some other way of knowing the IP address of your switch.

Once you've solved that problem, connecting to and controlling your switch is easy:

const matrix = new AtlonaMatrix('192.168.1.1'); // or whatever

Commands

Commands of the form get<Something> return Promises. Other commands return nothing.

getPowerState()

Returns a promise that resolves with 'on' or 'off' depending on the current state of the switch.

getIsOn()

Returns a boolean indicating the whether the switch is on or not.

getHardwareInfo()

Returns a Promise that resolves with an object indicating the type and version of the hardware.

getOutputStatus()

Returns a Promise that resolves with a list of the current inputs mapped to each output.

setOutput(output, input)

Set the given output to show the given input

setIsOn(isOn)

Turn the switch on (isOn == true) or off (isOn == false).

turnOn()

Unconditionally try to turn the switch on.

turnOff()

Unconditionally try to turn the switch off.

turnOffIfSafe()

Turn the switch off if it can be determined that none of the outputs are in use.

turnOffOutput(output)

Turn off a single given output

Compatibility

atlona-matrix is built to support Node.js version 6.0 or higher.

Contributing

Contributions are of course always welcome. If you find problems, please report them in the Issue Tracker. If you've made an improvement, open a pull request.

Getting set up for development is very easy:

git clone <your fork>
cd atlona-matrix
yarn

And the development workflow is likewise straightforward:

# make a change to the src/ file, then...
yarn build
node dist/example.js

# or if you want to clean up all the leftover build products:
yarn run clean

Release History

  • 1.0.0
    • The first release.

Meta

Zach Bean – [email protected]

Distributed under the MIT license. See LICENSE for more detail.