2.3.1 • Published 4 years ago
@seydx/fritzbox v2.3.1
@seydx/fritzbox
A promise based library for accessing a fritzbox via TR-064 API of an AVM Fritz!Box. Forked from @ulfalfa
Features
This library is capable of:
- Supports the complete command language of the TR-064 API of an Fritz!Box
- No callback, only promises
- SSL encryption and authentication
Install
npm install @seydx/fritzbox
Usage
Getting the info about the fritzbox
With the method exec
you can access all services and actions in the fritz box even with parameters
const Fritzbox = require('@seydx/fritzbox');
const fritzbox = new Fritzbox({ username: 'test', password: 'testPwd123' });
// Async/Await:
async function getDeviceInfo () {
try {
const info = await fritzbox.exec(
'urn:DeviceInfo-com:serviceId:DeviceInfo1',
'GetInfo'
);
console.log(info);
} catch (err) {
console.error(err);
}
}
Getting all currently known hosts by Fritz!Box
const Fritzbox = require('@seydx/fritzbox');
const fritzbox = new Fritzbox({ username: 'test', password: 'testPwd123' });
// Async/Await:
async function getHosts () {
try {
const allHosts = await fritzbox.getAllHosts();
console.log(allHosts);
} catch (err) {
console.error(err);
}
}
Retrieving all services with their corresponding actions
const Fritzbox = require('@seydx/fritzbox');
const fritzbox = new Fritzbox({ username: 'test', password: 'testPwd123' });
// Async/Await:
async function getServices () {
try {
const services = await fritzbox.describe();
console.log(services);
} catch (err) {
console.error(err);
}
}
2.3.1
4 years ago
2.3.0
4 years ago
2.3.0-beta.0
4 years ago
2.3.0-beta.1
4 years ago
2.3.0-beta.2
4 years ago
2.2.9
4 years ago
2.2.8
4 years ago
2.2.7
4 years ago
2.2.5
4 years ago
2.2.4
4 years ago
2.2.6
4 years ago
2.2.1
4 years ago
2.2.0
4 years ago
2.2.3
4 years ago
2.2.2
4 years ago
2.1.9
4 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.6
4 years ago
2.1.5
4 years ago
2.1.8
4 years ago
2.1.7
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
2.0.0-beta.2
4 years ago
2.0.0-beta.1
4 years ago
2.0.0-beta.3
4 years ago
2.0.0-beta.0
4 years ago
1.0.11
4 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.2
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago