hivecli

command module
v0.0.0-...-550656a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2017 License: MIT Imports: 11 Imported by: 0

README

hivecli

Unofficial CLI compatible with the API used by Hive (by British Gas) smart devices.

hivecli is written in Go using the go-hive library and also serves as a comprehensive example for using it.

Disclaimer

This software is in no way endorsed by British Gas. The underlying REST API is undocumented and subject to change at any time, which means hivecli may suddenly stop working.

Use at your own risk.

In addition, the CLI only supports a subset of the API - specifically, the devices I personally own. Most notably, smart heating is not supported.

Contributions are welcome.

Download

You can find the latest version of the binary in the releases section.

Usage

$ hivecli [OPTION]... COMMAND [ARGUMENT]...

Running hivecli with no arguments will display the supported commands and how they're used.

First run

The first time hivecli is used to run a command, it will ask for the following information:

  • Your username
  • Your password
  • The login URL API endpoint (for Hive, the default login URL https://beekeeper.hivehome.com/1.0/global/login)

The password will then be stored in your platform's keyring (dbus under Linux, /usr/bin/security under MacOS and Credential Manager under Windows), while the username and login URL are stored in the config file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Deals with loading and saving credentials and tokens to the config file.
Deals with loading and saving credentials and tokens to the config file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL