{"id":22413616,"url":"https://github.com/topi314/shelly-alert-killswitch","last_synced_at":"2025-10-12T00:33:38.270Z","repository":{"id":264170002,"uuid":"892350706","full_name":"topi314/shelly-alert-killswitch","owner":"topi314","description":"prometheus alertmanager shelly plug s killswitch","archived":false,"fork":false,"pushed_at":"2024-11-22T11:44:56.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T19:38:56.292Z","etag":null,"topics":["alertmanager","killswitch","prometheus","prometheus-alerts","shelly","shelly-plug-s"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/topi314.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}},"created_at":"2024-11-22T00:21:20.000Z","updated_at":"2024-11-22T11:46:46.000Z","dependencies_parsed_at":"2024-11-22T12:30:48.563Z","dependency_job_id":"972bef3a-5944-47ba-8874-f52e811fca0c","html_url":"https://github.com/topi314/shelly-alert-killswitch","commit_stats":null,"previous_names":["topi314/shelly-alert-killswitch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/topi314/shelly-alert-killswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topi314%2Fshelly-alert-killswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topi314%2Fshelly-alert-killswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topi314%2Fshelly-alert-killswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topi314%2Fshelly-alert-killswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topi314","download_url":"https://codeload.github.com/topi314/shelly-alert-killswitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topi314%2Fshelly-alert-killswitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009511,"owners_count":26084609,"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-10-11T02:00:06.511Z","response_time":55,"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":["alertmanager","killswitch","prometheus","prometheus-alerts","shelly","shelly-plug-s"],"created_at":"2024-12-05T14:13:51.608Z","updated_at":"2025-10-12T00:33:38.242Z","avatar_url":"https://github.com/topi314.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report](https://goreportcard.com/badge/github.com/topi314/shelly-alert-killswitch)](https://goreportcard.com/report/github.com/topi314/shelly-alert-killswitch)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/topi314/shelly-alert-killswitch)](https://golang.org/doc/devel/release.html)\n[![License](https://img.shields.io/github/license/topi314/shelly-alert-killswitch)](LICENSE)\n[![Version](https://img.shields.io/github/v/tag/topi314/shelly-alert-killswitch?label=release)](https://github.com/topi314/shelly-alert-killswitch/releases/latest)\n[![Docker](https://github.com/topi314/shelly-alert-killswitch/actions/workflows/build.yml/badge.svg)](https://github.com/topi314/shelly-alert-killswitch/actions/workflows/build.yml)\n[![Discord](https://discordapp.com/api/guilds/608506410803658753/embed.png?style=shield)](https://discord.gg/sD3ABd5)\n\n# shelly-alert-killswitch\n\nShelly Alert Killswitch is a simple service that allows you to turn off [Shelly Plug S](https://shelly.cloud/products/shelly-plug-s-smart-home-automation-device/) devices when an alert is\ntriggered in [Prometheus Alertmanager](https://prometheus.io/docs/alerting/alertmanager/).\nThis is useful for example when you have a fridge full of turtles, and you don't want them to freeze by accident.\n\n## Building\n\n```bash\nCGO_ENABLED=0 go build -o shelly-alert-killswitch github.com/topi314/shelly-alert-killswitch\n```\n\n## Installation\n\nYou can either run the binary directly or use the provided Docker image.\n\n### Docker-Compose\n\n```yaml\nservices:\n  shelly-alert-killswitch:\n    image: ghcr.io/topi314/shelly-alert-killswitch:master\n    container_name: shelly-alert-killswitch\n    restart: unless-stopped\n    volumes:\n      - ./config.toml:/var/lib/shelly-alert-killswitch/config.toml\n    ports:\n      - \"8080:8080\"\n```\n\n## Configuration\n\nThe exporters are configured via a TOML file. The default path is `/var/lib/shelly-alert-killswitch/config.toml` but you can change it with the `--config` flag.\n\n```toml\n[log]\nlevel = \"info\"\nformat = \"text\"\nadd_source = false\n\n[server]\nlisten_addr = \":80\"\n\n# Add your alertmanager webhook configurations here\n#[[configs]]\n#name = \"example\"\n#endpoint = \"/webhook\"\n#address = \"hostname:port\"\n#insecure = true\n#username = \"user\"\n#password = \"password\"\n#relay = 0\n#labels = { name = \"bla\" }\n```\n\n## License\n\nShelly Exporter is licensed under the [Apache License 2.0](LICENSE).\n\n## Contributing\n\nContributions are always welcome! Just open a pull request or discussion and I will take a look at it.\n\n## Contact\n\n- [Discord](https://discord.gg/sD3ABd5)\n- [Twitter](https://twitter.com/topi3141)\n- [Email](mailto:hi@topi.wtf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopi314%2Fshelly-alert-killswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopi314%2Fshelly-alert-killswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopi314%2Fshelly-alert-killswitch/lists"}