项目作者: adriankumpf

项目描述 :
A Rust client for interacting with the LUPUSEC XT2 alarm panel API.
高级语言: Rust
项目地址: git://github.com/adriankumpf/alarmate.git
创建时间: 2018-12-26T13:07:44Z
项目社区:https://github.com/adriankumpf/alarmate

开源协议:MIT License

下载


Alarmate

A Rust client for interacting with the LUPUSEC XT2 API.

Installation

Binary

  1. cargo build --release --features="build-binary"

Library

  1. [dependencies]
  2. alarmate = { git = "https://github.com/adriankumpf/alarmate", tag = "v0.3.0" }

Usage

Binary

  1. $ alarmate --help
  2. Usage: alarmate <COMMAND>
  3. Commands:
  4. devices List devices
  5. status Get current status
  6. mode Change mode
  7. help Print this message or the help of the given subcommand(s)
  8. Options:
  9. -h, --help Print help information

Library

  1. use alarmate::{Area, Client, Mode};
  2. let mut client = Client::new("admin", "changeme", "10.0.0.10".parse()?);
  3. client.change_mode(Area::Area1, &Mode::Disarmed)?;

Documentation

  1. cargo doc --open

Project status

This library only supports the XT2 alarm panel. Other LUPUSUC alarm panels
probably won’t work due to differing APIs.

Currently there is only a limited feature set available. Please open a PR or an
issue if you feel there is something missing!

License

MIT