{"id":28794216,"url":"https://github.com/karpulix/macosloginwatcher","last_synced_at":"2026-05-07T17:39:35.115Z","repository":{"id":297851709,"uuid":"998098345","full_name":"karpulix/macosloginwatcher","owner":"karpulix","description":"Advanced MacOS Login Log","archived":false,"fork":false,"pushed_at":"2025-06-08T12:14:22.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T08:30:43.508Z","etag":null,"topics":["homebrew","macos"],"latest_commit_sha":null,"homepage":"https://buymeacoffee.com/tvd0ubzoeq","language":"Shell","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/karpulix.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,"zenodo":null}},"created_at":"2025-06-07T21:25:09.000Z","updated_at":"2025-06-08T12:19:05.000Z","dependencies_parsed_at":"2025-06-07T22:34:08.504Z","dependency_job_id":"2ab42840-6302-41e2-9287-7f7682b64f36","html_url":"https://github.com/karpulix/macosloginwatcher","commit_stats":null,"previous_names":["karpulix/osxloginwatcher"],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/karpulix/macosloginwatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpulix%2Fmacosloginwatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpulix%2Fmacosloginwatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpulix%2Fmacosloginwatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpulix%2Fmacosloginwatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karpulix","download_url":"https://codeload.github.com/karpulix/macosloginwatcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpulix%2Fmacosloginwatcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32749472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["homebrew","macos"],"created_at":"2025-06-18T02:05:18.030Z","updated_at":"2026-05-07T17:39:35.110Z","avatar_url":"https://github.com/karpulix.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MacOSLoginWatcher\n\nA macOS daemon that monitors system login events and sends notifications to Telegram when the system is unlocked.\n\n## Features\n\n- 🔔 Sends Telegram notifications when your Mac is unlocked\n- 🚀 Sends startup notification when the service starts\n- 🔄 Automatically retries sending messages if internet is not available\n- 📝 Maintains detailed logs of all events\n- 🔒 Secure configuration storage\n- ⚡ Runs as a system daemon\n- 🛠️ Easy installation and setup\n\n## Installation\n\n### Using Homebrew\n\n```bash\n\nbrew tap karpulix/homebrew-tools\nbrew install karpulix/homebrew-tools/macosloginwatcher\n\n```\n\n### Manual Installation\n\n1. Download the latest release from the [releases page](https://github.com/karpulix/macosloginwatcher/releases)\n2. Make the script executable:\n   ```bash\n   chmod +x macosloginwatcher.sh\n   ```\n3. Move it to a directory in your PATH:\n   ```bash\n   sudo mv macosloginwatcher.sh /usr/local/bin/macosloginwatcher\n   ```\n\n## Setup\n\n1. Create a Telegram bot using [@BotFather](https://t.me/BotFather) and get the bot token\n2. Get your Telegram chat ID (you can use [@userinfobot](https://t.me/userinfobot))\n3. Run the setup wizard:\n   ```bash\n   sudo macosloginwatcher --setup\n   ```\n4. Follow the prompts to enter your bot token and chat ID\n\n## Usage\n\n### Start the Service\n\n```bash\nsudo macosloginwatcher --start\n```\n\n### Stop the Service\n\n```bash\nsudo macosloginwatcher --stop\n```\n\n### Check Version\n\n```bash\nmacosloginwatcher --version\n```\n\n## Configuration\n\nThe configuration is stored in `~/.config/macosloginwatcher/config` (you need root privileges for access) with the following format:\n```\nBOT_TOKEN=your_bot_token\nCHAT_ID=your_chat_id\n```\n\n## Logs\n\nLogs are stored in `~/.config/macosloginwatcher/`:\n- `output.log` - Contains successful operations\n- `error.log` - Contains error messages\n\nLogs are automatically rotated when they reach 5MB in size, with a maximum of 5 log files.\n\n## Features in Detail\n\n### Telegram Notifications\n\n- 🔓 Unlock notifications: Sent when your Mac is unlocked\n- 🚀 Startup notifications: Sent when the service starts\n- 🔄 Automatic retry: If internet is not available, the service will retry sending messages up to 30 times with 10-second intervals\n\n### Security\n\n- Configuration files are stored with restricted permissions (600)\n- The daemon runs as root to ensure proper system access\n- All sensitive information is stored in the user's home directory\n\n### Logging\n\n- Detailed timestamps for all events\n- Automatic log rotation\n- Separate logs for successful operations and errors\n- Maximum log size: 5MB\n- Maximum number of log files: 5\n\n## Troubleshooting\n\nIf you're having issues:\n\n1. Check the logs:\n   ```bash\n   sudo cat ~/.config/macosloginwatcher/error.log\n   sudo cat ~/.config/macosloginwatcher/output.log\n   ```\n\n2. Verify the service is running:\n   ```bash\n   ps aux | grep macosloginwatcher | grep -v grep\n   ```\n   Note: You should see two processes - the main daemon and a child process for message handling.\n\n3. Check the LaunchDaemon status:\n   ```bash\n   sudo launchctl list | grep macosloginwatcher\n   ```\n   Note: Status 0 is normal - it means the daemon successfully started and spawned its child process.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpulix%2Fmacosloginwatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarpulix%2Fmacosloginwatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpulix%2Fmacosloginwatcher/lists"}