Categorygithub.com/AlbinOS/go-switchbot-metrics
modulepackage
2.0.0+incompatible
Repository: https://github.com/albinos/go-switchbot-metrics.git
Documentation: pkg.go.dev

# README

go-switchbot-metrics

Expose metrics page scrapable by know agent (like Telegraf) for SwitchBot API

Supported devices

  • Meter
  • Meter Plus
  • Outdoor Meter
  • Plug Mini (US)
  • Plug Mini (JP)

Docker usage

docker run -p 3000:3000 -d ghcr.io/albinos/go-switchbot-metrics serve --bind_ip=0.0.0.0 --switchbot_openapi_token=<SWITCHBOT_API_TOKEN> --switchbot_secret_key=<SWITCHBOT_SECRET_KEY>

# Packages

Copyright © 2023 Albin Gilles <[email protected]> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Copyright © 2023 Albin Gilles <[email protected]> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.