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

homebridge-huawei-lte-router

v1.0.4

Published

A Homebridge plugin for automating Huawei LTE routers.

Downloads

12

Readme

homebridge-huawei-lte-router

HomeBridge plugin for Huawei LTE routers.

Only really tested on a B535-232, but should work with every device that this API package claims to work with.

Supports the following functions:

  • Rebooting the router.
  • Blacklisting / whitelisting connected devices.

Installation

  • Install Homebridge (e.g. using npm install -g homebridge)
  • Install this plugin:
    • from NPM: npm install homebridge-huawei-lte-router
    • manually: download the newest release -> npm install -> npm run build -> npm link
  • Configure the plugin settings through config.json or web UI (see below for the options)

Example config

"accessories": [
    {
        "accessory": "Huawei LTE Router",
        "name": "My LTE Router",
        "ip": "192.168.8.1",
        "password": "#REDACTED",
        "model": "B535-232",
        "serialNumber": "#REDACTED",
        "accessSwitches": [
            {
                "hostname": "Some device",
                "mac": "11:22:33:44:55:66"
            },
            {
                "hostname": "Some other device",
                "mac": "77:88:99:AA:BB:CC"
            }
        ]
    }
]

Required fields:

  • name is the name of your router as it appears in HomeKit
  • ip is the IP address of the router
  • password is the router's password, the same as for its web interface

Optional fields:

  • model is the router's model as it appears in HomeKit
  • serialNumber is the router's serial number as it appears in HomeKit
  • accessSwitches is a list of hostnames and MAC addresses. For each, a switch will be created, that allows you to turn this device's access to the internet on and off.
    • hostname (required) is the name of the switch as it appears in Homekit and your router's device list.
    • mac (required) is the MAC address of the corresponding device

NOTE: (at least on B535-232) Specifying an access switch for a device with a MAC address that has never been seen by the router will cause the router to reject any requests to blacklist that device.

Testing

Want to run the test suite?

  1. Get a Huawei LTE router
  2. Create a test_secrets.json file in the root of the repository. Refer to the test file to see which properties must be supplied for the tests to work.
  3. Run npm test

Contributing

You are free to submit pull requests to this repository.

For information on how to develop Homebridge plugins, refer to the template repository.