UNPKG

2n-helios-client

Version:

2n client for Node

18 lines (13 loc) 659 B
# 2n-helios-client `2n-helios-client` is a node-style API for interfacing with 2n door access control panels. To use: ```js const credentials = { ip: '10.1.10.123', // your 2n unit's IP address user: 'admin', // your 2n API username (not necessarily the same as the web interface login) pass: 'password' // your 2n API password } const helios = new Helios(credentials); // create new instance const res = await helios.status(); // make sure to use await as we're dealing with promises console.log(res) // do something with the response ```