Socket
Socket
Sign inDemoInstall

hyperion-js-api

Package Overview
Dependencies
6
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hyperion-js-api

lightweight JavaScript interface for Hyperion


Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Install size
138 kB
Created
Weekly downloads
 

Readme

Source

:collision: lightweight JavaScript interface for Hyperion

###Install

npm version

npm install hyperion-js-api

###Features

  • Control color and brightness of tv backlight.

  • Switch ambilight on/off. (optional)

  • Get current state/color

###Basic Usage

const hyperion = new (require('hyperion-js-api'))("20.1.0.142",19444);
hyperion.setOn();
hyperion.getOn((error, response) => {
});
hyperion.setOff();
hyperion.setColor(hyperion.color.rgb(255, 0, 0));
hyperion.getColor((error, response) => {
});
hyperion.setBrightness(hyperion.color.value());
hyperion.getBrightness((error, response) => {
});
hyperion.setHue(hyperion.color.hue());
hyperion.getHue((error, response) => {
});
hyperion.setSaturation(hyperion.color.saturationv());
hyperion.getSaturation((error, response) => {
});

###Tests Find more examples in "test" directory.

Enter you hyperion server connection in package.json, and run some tests!

  "hyperion": {
    "host": "20.1.0.138",
    "port": "19444"
  }

run a single test from commandline with:

mocha test/hyperion.spec.js -g "setOff should switch off"

Keywords

FAQs

Last updated on 11 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc