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

@hoobs/migration

v4.4.24

Published

HOOBS 4 Migration Tool

Downloads

113

Readme

HOOBS migration utility. This utility can migrate a HOOBS 3 or Homebridge setup to HOOBS 4.

Installing

Use NPM to install this utility globally;

sudo npm install -g @hoobs/migration

Usage

To run the migration tool simply run this command.

sudo hbs-migrate

This will show you a list of steps the migration tool will take to upgrate to HOOBS 4. You will be asked if you want to execute the plan.

By default this assumes that you are running this tool on the system to be migrated. It will generate a script to be ran on boot. Your device will reboot a few times.

Transfering

If you want to transfer this setup to a new device or plan on re-flashing your sd card, you can use the -t or --transfer flag.

cd ~/
sudo hbs-migrate -t

Then from another computer you can use scp to transfer the backup.

scp [email protected]:~/migration.backup ./

Note. The above example if for a default HOOBS Box. You may need to change the username and/or hostname depending on your setup.

Note. If you are transfering the backup file using macOS, scp is available in the terminal. If using Windows 10, PowerShell has an scp command.

It is recommended that you power down your current device before restoring your new device or new SD card. This will prevent network collisions.

On you new HOOBS 4 setup, you can restore it, using the migration.backup file, from the Hub Settings dialog.

Command Line

This tool has flags that can automate parts of the migtation routine. | Flag | Shorthand | Parameters | Description | | ------------ | --------- | ------------------- | ---------------------------------------------- | | --app | -a | hoobs or homebridge | select the application you are migrating from | | --unattended | -y | | automatically execute the migration | | --split | -s | | split plugins into individual bridges | | --transfer | -t | | generate backup for transfer to another device | | --debug | -d | | used to migrate without executing the scripts |

Module

This tool can also be used as a module in code.

const Migration = require("@hoobs/migration");

// first setup the tasks object
const tasks = new Migration.tasks(/* transfer: [true | false] */);

// you need to fetch a list of instances
const instances = Migration.instance.paths(/* app: [hoobs | homebridge] */);

// next start the system interrogation and execute the tasks
tasks.interrogate(
    /* app :[hoobs | homebridge] */,
    instances[0], // <-- example, it's best to ask the user which instance to migrate
    /* split: [true | false] */,
).then(() => {
    tasks.execute(/* path: [string | undefined] */).then(() => {
        console.log("complete");
    });
});

The tasks.execute() function can either reboot the system and migrate to HOOBS 4 or it can save a migration backup file to the path specified.

If you plan on only creating a migration backup file, you must set the transfer flag to true when creating the tasks object.

Legal

HOOBS and the HOOBS logo are registered trademarks of HOOBS Inc. Copyright (C) 2020 HOOBS Inc. All rights reserved.