{"id":19550948,"url":"https://github.com/rumart/plausible-slack","last_synced_at":"2026-07-27T21:31:51.374Z","repository":{"id":101187359,"uuid":"455717411","full_name":"rumart/plausible-slack","owner":"rumart","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-01T10:17:10.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T14:43:40.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-02-04T22:40:25.000Z","updated_at":"2022-02-04T22:41:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"3df948d4-68c3-46d8-9f9f-f8ab6492b7a2","html_url":"https://github.com/rumart/plausible-slack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rumart/plausible-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumart%2Fplausible-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumart%2Fplausible-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumart%2Fplausible-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumart%2Fplausible-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumart","download_url":"https://codeload.github.com/rumart/plausible-slack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumart%2Fplausible-slack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35966479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-27T02:00:06.776Z","response_time":101,"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":[],"created_at":"2024-11-11T04:09:36.594Z","updated_at":"2026-07-27T21:31:51.343Z","avatar_url":"https://github.com/rumart.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plausible-slack\n\nThe script will pull visitor and page view stats for a site from a Plausible host, then do a rudimentary compare against the same day last week and finally post a message to a Slack channel with the results.\n\nNote that the Slack integration expects a [Slack App](https://slack.com/apps) with a [Bot OAuth token](https://api.slack.com/authentication/oauth-v2). The token should be created with ``chat:write`` access to the channel, and the App needs to be added to the channel\n\nThe script accepts the environment variables:\n\n- SLACK_TOKEN\n    - Bot user OAuth Token\n- SLACK_CHANNEL\n    - ID of Slack channel to post message to\n- PLAUSIBLE_HOST\n    - Plausible host that holds your stats, Note! fqdn only\n- PLAUSIBLE_TOKEN\n    - API token for authenticating with Plausible host\n- SITE_ID\n    - Site ID as created in the Plausible host\n- LOGLEVEL\n    - Log level, defaults to INFO\n- PERIOD\n    - Stat period, day or week (last 7 days) supported. Defaults to day\n\n## Run as a container\n\nPass environments on the command line\n\n```\ndocker run --rm -e SLACK_TOKEN=\u003cslack-token\u003e -e SLACK_CHANNEL=\u003cslack-channel\u003e -e PLAUSIBLE_HOST=\u003cplausible-host\u003e -e PLAUSIBLE_TOKEN=\u003cplausible-token\u003e -e SITE_ID=\u003csite-id\u003e rumart/plausibleslack:0.3.0\n```\n\nPass environments in a file\n\n*env.list*\n\n```\nLOGLEVEL=debug\nPERIOD=week\nSLACK_TOKEN=xoxb-xxxxxxxx\nSLACK_CHANNEL=Cxxxxxx\nPLAUSIBLE_HOST=plausible.xyz\nPLAUSIBLE_TOKEN=O-xxxxx\nSITE_ID=rudimartinsen.com\n```\n\n```\ndocker run --rm --env-file env.list rumart/plausibleslack:\u003ctag\u003e\n```\n\n## Build your own container\n\n```\ndocker build -t plausibleslack:\u003ctag\u003e .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumart%2Fplausible-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumart%2Fplausible-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumart%2Fplausible-slack/lists"}