Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ptz0n/node-securitas-direct
A module for reading and changing status of Securitas Direct devices.
https://github.com/ptz0n/node-securitas-direct
Last synced: 2 months ago
JSON representation
A module for reading and changing status of Securitas Direct devices.
- Host: GitHub
- URL: https://github.com/ptz0n/node-securitas-direct
- Owner: ptz0n
- License: mit
- Created: 2020-02-16T16:19:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T18:37:38.000Z (12 months ago)
- Last Synced: 2024-10-16T09:34:05.553Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/securitas-direct
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-securitas-direct
[![](https://badges.greenkeeper.io/ptz0n/node-securitas-direct.svg)](https://greenkeeper.io/)
[![GitHub Actions badge](https://github.com/ptz0n/node-securitas-direct/workflows/Test/badge.svg)](https://github.com/ptz0n/node-securitas-direct/actions?query=workflow%3ATest)
A module for reading and changing status of Securitas Direct devices.
### Legal Disclaimer
This software is not affiliated with Securitas Direct and the developers take no legal responsibility for the functionality or security of your alarms and devices.
### Installation
```bash
$ npm install securitas-direct --save
```### Usage
```javascript
const SecuritasDirect = require('securitas-direct');const client = new SecuritasDirect('username', 'password', 'es');
client.login()
.then(() => client.getInstallation('1234567'))
.then(installation => {
console.log('INSTALLATION:', installation);
})
.catch(error => {
console.error('ERROR:', error);
});
```