@invisionag/network-unifi

0.3.4 • Public • Published

network-unifi

CircleCI Coverage Status

Library for accessing the unifi network equipment

Install

Currently, the module is written on Node 10+, without any transpilers, using the ES2015+ features.

npm install --save network-unifi

Usage

const networkUnifi = require('network-unifi')
const options = {
  username: '',
  password: '',
  port: 8443,
  url: 'https://192.168.0.1',
  site: 'default',
  ignoreSsl: false
}

networkUnifi(options)
  .then(router =>
    Promise.all([router.getAccessPoints(), router.getClients()])
  .then(([accessPoints, clients]) => {
    console.log(accessPoints, clients)
  })

API

networkUnifi(options)

Returns a Promise with the Router API

options

username

Type: string

Username for the Router API

password

Type: string

Password for the Router API

port (default:8443)

Type: number

Port for the Router API

url (default:https://192.168.0.1)

Type: string

URL for the Router API

site (default:default)

Type: string

The site setting for the Router API

ignoreSsl (default:false)

Type: boolean

Ignore SSL warnings, for instance when accessing router API that uses a self signed certificate.

License

MIT © InVision AG

Readme

Keywords

Package Sidebar

Install

npm i @invisionag/network-unifi

Weekly Downloads

5

Version

0.3.4

License

MIT

Unpacked Size

190 kB

Total Files

10

Last publish

Collaborators

  • jj-ivx
  • ivx-github
  • jana_hehr
  • roberter26
  • birgithorn
  • alexj-ivx
  • amft
  • aitortomas
  • yashabfaryal0322
  • nleinich
  • johannesluedke
  • pgotthardt-ivx
  • hrabe
  • plore_ivx
  • patricialieske
  • plaudel
  • mblumtritt
  • sruehlemann
  • brerx
  • mohamedmmahfouz
  • mbrendler
  • jens.zobel
  • cwaider
  • kattelans
  • ftrautmann
  • lutz.peukert
  • fruetel
  • schmitze333
  • csprle
  • beckerei
  • stefan.schiffer
  • ahx
  • cloudwaechter
  • tobias
  • alexmarold
  • t_klepzig
  • susahope
  • mwannewitz
  • ivx-circle-ci
  • yichang
  • ivx-jenkins