New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fritznode

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fritznode

Fritz box API access

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Fritz Node

Uses node.js to access the fritz box with a minimal set of external dependencies.

API calls provided

  • getDeviceList

Returns active and inactive network devices known to the box.

  • getBandwithUsage

Returns the current download and upload rate.

  • blockDevice

Blocks the device internet access.

  • unblockDevice

Unblocks the device internet access.

  • getOverview

Gets overview information about your fritz.box. Contains connection status and the recent caller list.

  • GetNAS

Shows information about your fritz.box NAS

Example ........

Get the current bandwith usage

run = async()=>{
    let con = await module.exports.fritz({
        password : 'secret'
    });
    let usage = await con.getBandwithUsage();
    console.log(JSON.stringify(usage,' ','  '));
};
run();

Produces

{
  "downMax": 24331000,
  "downCurrent": 27240,
  "upMax": 4899000,
  "upCurrent": 6693
}

See the examples folder for more usage scenarios.

Environment variables supported

NameDescriptionDefault
FRITZ_HOSTFritz box host name or IP.fritz.box
FRITZ_USERFritz user name.Defaults to fritz generated admin user
FRITZ_PASSWORDFritz box password.
LOG_LEVELConsole log level. Supported are TRACE,DBEUG,INFO,WARN, ERRORINFO

Keywords

FAQs

Package last updated on 23 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc