npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@juit/lib-tcl-router

v1.3.1

Published

Client for Alcatel/TCL routers

Downloads

10

Readme

Client for Alcatel/TCL routers

This is a super-simple client for Alcatel/TCL routers, in order to read informations from it.

For example, in Germany, the Vodafone GigaCube 5G is effectively a TCL HH500, and using this client we can retrieve (and monitor) interface statistics or connection status (network, RSSI, RSRP, RSRQ, SINR, ...)

const client = new AcatelClient('192.168.1.1', 'myPassword')
const data = client.poll()
// Data will be:
// {
//   imei: '350364240104600',        // The IMEI of the device              (from `GetSystemInfo -> IMEI`)
//   iccid: '89492028216017894497',  // The ICC-ID of the SIM card          (from `GetSystemInfo -> ICCID`)
//   device: 'HH500V',               // The name of the device              (from `GetSystemInfo -> DeviceName`)
//   connection_status: 'Connected', // The status of the connection        (from `GetConnectionState -> ConnectionStatus`)
//   bytes_in: 18972149764,          // The number of bytes in (downloaded) (from `GetConnectionState -> DlBytes`)
//   bytes_out: 1797941366,          // The number of bytes out (uploaded)  (from `GetConnectionState -> UlBytes`)
//   bytes_in_rate: 1187659,         // The rate (bytes/sec) of download    (from `GetConnectionState -> DlRate`)
//   bytes_out_rate: 418809,         // The rate (bytes/sec) of upload      (from `GetConnectionState -> UlRate`)
//   ipv4_addr: '10.17.152.95',      // The current IPv4 address or `null`  (from `GetConnectionState -> IPv4Adrress`)
//   ipv6_addr: null,                // The current IPv6 address or `null`  (from `GetConnectionState -> IPv6Adrress`)
//   network_name: 'vodafone.de',    // The network name                    (from `GetNetworkInfo -> NetworkName`)
//   network_type: '5G',             // The network type                    (from `GetNetworkInfo -> NetworkType`)
//   strength: 3,                    // The overall network strength (bars) (from `GetNetworkInfo -> SignalStrength`)
//   rssi: -65,                      // Received Signal Strength Indicator  (from `GetNetworkInfo -> RSSI`)
//   rsrp: -97                       // Reference Signal Received Power     (from `GetNetworkInfo -> RSRQ`)
//   sinr: 7,                        // Signal Interference + Noise Ratio   (from `GetNetworkInfo -> RSRP`)
//   rsrq: 11,                       // Reference Signal Received Quality   (from `GetNetworkInfo -> SINR`)
// }

To make sense of the various RSSI, RSRP, RSRQ, SINR values, see this post

This client is based on JSON-RPC, and all known methods for standard routers are exposed by invoking getXXX. For a list, see verbs below.

Verbs

All known verbs (JSON-RPC methods) are:

  • Public (no authentication required)
    • GetCurrentLanguage
    • GetLoginState
    • GetQuickSetup
    • GetSMSStorageState
    • GetSimStatus
    • GetSystemInfo
    • GetSystemStatus
  • Restricted (require authentication)
    • GetAutoValidatePinState
    • GetBlockDeviceList
    • GetClientConfiguration
    • GetConnectedDeviceList
    • GetConnectionSettings
    • GetConnectionState
    • GetCurrentData
    • GetCurrentTime
    • GetDdnsSettings
    • GetDeviceDefaultRight
    • GetDeviceUpgradeState
    • GetExtendTimes
    • GetLanPortInfo
    • GetLanSettings
    • GetLanStatistics
    • GetLogcfg
    • GetMacFilterSettings
    • GetNetworkInfo
    • GetNetworkSettings
    • GetParentalSettings
    • GetPasswordChangeFlag
    • GetPingTraceroute
    • GetPortTriggering
    • GetProfileList
    • GetSIPAccountSettings
    • GetSIPServerSettings
    • GetSMSContactList
    • GetSMSSettings
    • GetSystemSettings
    • GetTransferProtocol
    • GetUpnpSettings
    • GetUsageRecord
    • GetUsageSettings
    • GetVpnClient
    • GetVpnClientStatus
    • GetWPSConnectionState
    • GetWPSSettings
    • GetWanCurrentMacAddr
    • GetWanIsConnInter
    • GetWanSettings
    • GetWlanSettings
    • GetWlanState
    • GetWlanStatistics
    • GetWlanSupportMode
    • GetWmmSwitch