{"id":30657703,"url":"https://github.com/slashnephy/mackerel-plugin-switchbot","last_synced_at":"2026-05-22T14:41:16.624Z","repository":{"id":207023803,"uuid":"717097553","full_name":"SlashNephy/mackerel-plugin-switchbot","owner":"SlashNephy","description":"A Mackerel plugin to collect SwitchBot metrics","archived":false,"fork":false,"pushed_at":"2025-08-17T08:39:14.000Z","size":85,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T10:19:49.037Z","etag":null,"topics":["mackerel","mackerel-plugin","switchbot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SlashNephy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-10T14:52:28.000Z","updated_at":"2025-08-17T08:39:16.000Z","dependencies_parsed_at":"2023-12-09T05:26:19.458Z","dependency_job_id":"0c57188e-a796-4afa-b4e9-1cbafdb54c79","html_url":"https://github.com/SlashNephy/mackerel-plugin-switchbot","commit_stats":null,"previous_names":["slashnephy/mackerel-plugin-switchbot"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SlashNephy/mackerel-plugin-switchbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashNephy%2Fmackerel-plugin-switchbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashNephy%2Fmackerel-plugin-switchbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashNephy%2Fmackerel-plugin-switchbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashNephy%2Fmackerel-plugin-switchbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlashNephy","download_url":"https://codeload.github.com/SlashNephy/mackerel-plugin-switchbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashNephy%2Fmackerel-plugin-switchbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971557,"owners_count":25024100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mackerel","mackerel-plugin","switchbot"],"created_at":"2025-08-31T11:16:47.629Z","updated_at":"2025-12-29T09:25:05.583Z","avatar_url":"https://github.com/SlashNephy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mackerel-plugin-switchbot\n\nA Mackerel plugin to collect metrics from various SwitchBot devices.\n\nA list of supported devices can be found [here](https://github.com/SlashNephy/mackerel-plugin-switchbot/blob/bc21153161af32cef22be649879691ace2d58d7b/metrics/metrics.go#L144).\n\n## Example Metrics\n\n```console\n$ mackerel-plugin-switchbot\nswitchbot.battery.XXXXX-battery         95        1699895326\nswitchbot.battery.YYYYY-battery         97        1699895326\nswitchbot.battery.ZZZZZ-battery         100       1699895326\nswitchbot.temperature.XXXXX-temperature 27.800000 1699895326\nswitchbot.humidity.XXXXX-humidity       42        1699895326\n```\n\n## Usage\n\n1. Install via mkr / or download releases directly\n\n```console\n$ mkr plugin install SlashNephy/mackerel-plugin-switchbot\n```\n\n2. Append following configuration to `mackerel-agent.conf`\n\n```conf\n[plugin.metrics.switchbot]\ncommand = \"/opt/mackerel-agent/plugins/bin/mackerel-plugin-switchbot --open-token XXX --secret-key XXX\"\n```\n\nmackerel-plugin-switchbot has some command-line options. Check the help for details.\n\n```console\n$ /opt/mackerel-agent/plugins/bin/mackerel-plugin-switchbot --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashnephy%2Fmackerel-plugin-switchbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashnephy%2Fmackerel-plugin-switchbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashnephy%2Fmackerel-plugin-switchbot/lists"}