Code Monkey home page Code Monkey logo

hue-bridge-backup's Introduction

hue-bridge-backup

☠ This package is no longer maintained ☠

Backup and restore Philips Hue bridge configuration in raw JSON for easy editing.

Motivation

I have a number of complex Labs configured and I was looking for a way to backup (and modify?) and restore configuration on my Hue Bridge. The Hue app doesn't offer any backup options, but does provide a way to wipe the current configuration and automatically restore lights and groups.

Installation

npm install @klutchell/hue-bridge-backup

Usage

$ index.js --help

Usage: index.js <cmd> [options]

Commands:
  index.js backup   Backup data to a local directory
  index.js restore  Restore data from a local directory

Options:
  -c, --config-file  Path to JSON config file
  -b, --bridge-ip    Hue bridge address:port                 [string] [required]
  -u, --bridge-user  Hue bridge user                         [string] [required]
  -d, --backup-dir   Path to Hue backup directory                       [string]
  -e, --endpoints    Hue endpoints list
   [array] [required] [choices: "config", "groups", "lights", "rules", "scenes",
               "schedules", "sensors"] [default: ["rules","schedules","scenes"]]
  -h, --help         Show help                                         [boolean]
  -v, --version      Show version number                               [boolean]

Examples:
  index.js backup -b "192.168.86.131" -u <uuid> -d ./my-backup -e rules scenes
  index.js restore -d ./my-backup

Issues

It seems that the only way to do a restore, is to:

  1. reset your old bridge (and all of the lights and accessories connected to it)
  2. add your lights (maximum 10 at a time) to the new bridge
  3. attempt to run the restore command

See klutchell#2

Tests

Build Status Coverage Status

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Author

Kyle Harding [email protected]

Acknowledgments

tbd

References

License

This project is licensed under MIT

hue-bridge-backup's People

Contributors

klutchell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.