bt-homehub

0.2.0 • Public • Published

bthomehub

The BT Homehub scraper that you never knew you needed! Currently, only tested on homehub 5.

Getting started

To instantiate the module you can do the following:

var homehub = require('bt-homehub')();

By not passing any variables to the function, it will assume the homehub UI is avaliable at 'http://192.168.1.254/'

All functions follow a promise structure, for example, to log out connected devices you can use the following:

homehub
  .getConnectedDevices()
  .then(x => console.log(x));

Functions currently avaliable are:

homehub.getConnectedDevices(); //Lists all connected device names, their mac addresses and IPs as an object
homehub.getInternetStatus(); //Returns the current internet connection status as a string
homehub.getWifiStatus(); //Returns the current wifi status as a string

Package Sidebar

Install

npm i bt-homehub

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • chrisjeg