Skip to content

jessedp/tablo-api-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bdef986 · Nov 26, 2022

History

88 Commits
Apr 24, 2020
Nov 26, 2022
Apr 24, 2020
Nov 14, 2019
Apr 24, 2020
Nov 14, 2019
Nov 20, 2019
Oct 12, 2022
Nov 14, 2019
Nov 26, 2022
Sep 1, 2022
Apr 19, 2020
Nov 26, 2022

Repository files navigation

tablo-api

tablo-api provides a simple API module to interact with Tablo DVRs. It was developed to be used with Node/Electron - it may work in the browser, though ymmv.

Installation

Install with npm

  npm install tablo-api

or with yarn

  yarn add tablo-api

Usage

In Node:

const {Tablo} = require('tablo-api');

const Api = new Tablo();

const devices = Api.discover();

Api.device = { private_ip: "192.168.1.100" }
 
const serverInfo = Api.getServerInfo();

const recordings = Api.get('/recordings/airings');

Development

After you've cloned this repo, there are some built-in commands to aid in development:

Build the package - outputs built files to ./dist/. These are the ones that will ultimately end up in the pacakage.

npm run-script build

or

yarn build

Linter - runs standard lint checks to keep code clean.

npm run-script lint

or

yarn lint

Formatter - formats the code in place for consistency.

npm run-script format

or

yarn format

Licence

MIT