vodafone-station
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Vodafone Station API

npm version

This package is a simple api wrapper for the web interface of the Vodafone Station (modem/router provided by ISPs e.g. Vodafone) Currently only a couple of the web interface functions are implemented.

Installing

Using npm:

npm i vodafone-station

Usage

This example shows how to get an unformatted list of all currently connected devices.

import VodafoneStation from 'vodafone-station';
// creating an vodafoneStation object with the ip address of the target
const vodafoneStation = new VodafoneStation('192.168.0.1');
// logging in with the "password"
await vodafoneStation.login('admin', 'password');
// getting the list of all connected devices
const devices = await vodafoneStation.getConnectedDevices();
// logout to terminate the session
await vodafoneStation.logout();
console.log(devices);

Package Sidebar

Install

npm i vodafone-station

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

292 kB

Total Files

6

Last publish

Collaborators

  • colinkater