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 🙏

© 2025 – Pkg Stats / Ryan Hefner

homebridge-bandwidth-meter

v1.2.1

Published

Homebridge Bandwidth Meter (uses SNMP and IFTTT)

Readme

homebridge-bandwidth-meter

Homebridge Bandwidth Meter (uses SNMP and IFTTT)

The Homebridge Bandwidth Meter is used to monitor the receive and transmit port bandwidths of your Internet or WIFI connections. It works by reading the RX/TX port counters of a home/wifi router which supports the SNMP protocol. The counters are averaged over several SNMP query intervals and the current bandwidth in Mbps is then displayed in an icon in your HomeKit app. In addition, a notification can also be sent using IFTTT to inform you that the bandwidth has exceeded a specified threshold.

Bridge configuration

"bridge_update_interval_in_sec"

This value specifies how often bandwidth updates are pushed to Homebridge. This allows real-time updates while viewing the Bandwidth Meter in a HomeKit application.

Moving Average Intervals

"moving_average_intervals"

This value specifies the number of SNMP query intervals used in the calculation of the moving average. A larger number of intervals provides a smoother average. The valid range is from 1 to 10, otherwise the default value of 3 is used.

SNMP Configuration

"snmp_ip_address"

The IP address of the router. You can use a CLI utility such as "snmpget" to query your router and determine if it is configured for SNMP.

"snmp_community"

The SNMP community as configured on your router. Typical SNMP server defaults are "Private" or "Public".

"snmp_oid"

The SNMP OID specifies the counter and port to access. In the example config.json, the OIDs are for 64-bit RX/TX counters for the eth1 port of my router. For example, ".1.3.6.1.2.1.31.1.1.1.10.3" is split into a counter part and a port part where ifHCOutOctets = ".1.3.6.1.2.1.31.1.1.1.10", ifHCInOctets = ".1.3.6.1.2.1.31.1.1.1.6" and eth1 = ".3". 64-bit counters are only supported for SNMPv2c or SNMPv3. If your router only supports SNMPv1 or doesn't support 64-bit counters you can use 32-bit counters. Add the port as appropriate. ifInOctets = ".1.3.6.1.2.1.2.2.1.10" and ifOutOctets = ".1.3.6.1.2.1.2.2.1.16"

"snmp_query_interval_in_sec"

The interval in seconds at which the SNMP router will be queried for its rx/tx port counters.

IFTTT Configuration

"ifttt_api_key"

Your IFTTT API key. Set the key to empty if you do not want to receive notifications.

"ifttt_event"

The IFTTT Maker Event corresponding to this notification. The "Notification" box should include the ingredients {Value1}{Value2}{Value3}{OccurredAt}.

"ifttt_threshold_mbps"

The bandwidth threshold in Mbps which will trigger a notification.

"ifttt_maximum_notification_interval_in_sec"

This value specifies how much time should elapse between IFTTT notification. This is to prevent notification flooding if the specified threshold is exceeded for a long period of time.