shef

A node.js client for your DIRECTV boxes

Usage no npm install needed!

<script type="module">
  import shef from 'https://cdn.skypack.dev/shef';
</script>

README

shef

A node.js client for your DIRECTV boxes.

Usage

Install...

$ npm install shef

Connect to one of your boxes and do some stuff...

var shef = require('../');
var box1 = shef.box('192.168.0.114');

box1.tune(234, function(err, res) {
  if(!err) console.log('Tuned to channel 234');
});

API

shef.box(host) || shef.box(opts)

box.getTuned(cb)

box.getProgInfo(chan, cb) || getProgInfo(opts, cb)

box.tune(chan, cb) || tune(opts, cb)

box.key(key_name).up(cb)

box.key(key_name).down(cb)

box.key(key_name).press(cb)

box.getVersion(cb)

box.getOptions(cb)

box.getMode(cb)

box.getLocations(cb)

More Info

SHEF API Guide