mackerel-plugin-switchbot

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 10 Imported by: 0

README

mackerel-plugin-switchbot

A Mackerel plugin to collect SwitchBot metrics

A list of supported devices can be found here.

Example Metrics

$ mackerel-plugin-switchbot
switchbot.battery.XXXXX-battery         95        1699895326
switchbot.battery.YYYYY-battery         97        1699895326
switchbot.battery.ZZZZZ-battery         100       1699895326
switchbot.temperature.XXXXX-temperature 27.800000 1699895326
switchbot.humidity.XXXXX-humidity       42        1699895326

Usage

  1. Install via mkr / or download releases directly
$ mkr plugin install SlashNephy/mackerel-plugin-switchbot
  1. Append following configuration to mackerel-agent.conf
[plugin.metrics.epgstation]
command = "/opt/mackerel-agent/plugins/bin/mackerel-plugin-switchbot --open-token XXX --secret-key XXX"

mackerel-plugin-switchbot has some command-line options. Check the help for details.

$ /opt/mackerel-agent/plugins/bin/mackerel-plugin-switchbot --help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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