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

sony-bravia-tv-remote-v2

v2.0.0

Published

An interface to send signals directly to an Andriod TV powered Sony Bravia TV.

Downloads

11

Readme

Sony Bravia Remote Control Module

This package helps interface with a sony bravia Android powered smart tv.

Setup

This program attempts to talk to the bravia tv by sending IRCC signals through the network and authenticating via a preshared key. To send signals you need to know your tv's IP Address, Port (defaults to 80), and auth-key (defaults to 0000).

Local

To connect to your Sony TV you need to know the local IP address (e.g. 192.168.1.2) of the TV. If possible, set it up as a static IP to prevent it from changing. This can be done at the router level.

Remote

You can connect to your TV remotely as easily as locally but with using your external IP (e.g. 73.17.832.11) address and setting up port forwarding on your router.

AuthKey

To allow the TV to accept signals you have to send an auth key. This is configurable on the TV itself and defaults to 0000Setting up pre-shared auth-key Instructions

Install with npm

npm install sony-bravia-tv-remote --save-dev

Usage

Usage as a module with node or with ES6 Import


//As module
const BraviaRemoteControl = require('sony-bravia-tv-remote');

// As ES6 Import
import BraviaRemoteControl from 'sony-bravia-tv-remote';

// Connect to a local sony tv at 192.168.1.2:80 with the auth key of 0000
const remote = new BraviaRemoteControl('192.168.1.2', 80, '0000');

// Connect to a tv at an external location on port 44444
const networkRemote = new BraviaRemoteControl('externaldomain.com', 44444, '0000');

// Send some single actions (all return promises)
remote.sendAction('PowerOn'); // turns on
remote.sendAction('PowerOff'); // turns off
remote.sendAction('Mute'); // mutes the tv

// Send sequences of actions (sent synchronously with delays)
remote.sendActionSequence('Down Down Enter'); // Moves down twice then presses enter

//Open an app at a location on the app by navigating to it
remote.openAppSeq('Down Down Right'); // Sends home, then down down right, then confirm

Helpful Resources

Shell based remote