node2fritz

0.0.8 • Public • Published

node2fritz

Node module to communicate with a AVM FritzBox providing the following functions:

  • Get the session ID (getSessionID)
  • Get the phone list (getPhoneList)
  • Set the guest wlan (setGuestWLan)
  • Get the guest wlan settings (getGuestWLan)

Install

npm install node2fritz

How to use

Get the session ID:

var fritz = require('node2fritz');

fritz.getSessionID("user", "password", function(sid){
    console.log(sid);
});

Get the phone list:

var fritz = require('node2fritz');

fritz.getPhoneList(sid,function(calls){
    console.log(calls);
});

Enable or disable guest wlan:

var fritz = require('node2fritz');

fritz.setGuestWLan(sid, true, function(enabled){
    console.log("Guest WLan Enabled: "+enabled);
});

Get guest wlan settings:

var fritz = require('node2fritz');

fritz.getGuestWLan(sid, function(settings){
    console.log(settings);
});

Readme

Keywords

none

Package Sidebar

Install

npm i node2fritz

Weekly Downloads

1

Version

0.0.8

License

none

Last publish

Collaborators

  • rasix