Categorygithub.com/huantt/mac-keeper
repositorypackage
1.0.2
Repository: https://github.com/huantt/mac-keeper.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Install

go install github.com/huantt/mac-keeper@latest
export PATH=$PATH:$(go env GOPATH)/bin

Power monitor

Alerts to "Alerting channels" when your macbook is unplugged. Run it, then feel free to go to the WC in the coffee shop!

Supported alerting channels:

  • Sound [default]
  • Slack

Command

Usage:
   mac-keeper monitor-power [flags]

Flags:
  -h, --help                       help for monitor-power
      --slack-channel string       Slack channel
      --slack-webhook-url string   Slack webhook URL
      --sos-sound string           Path to sound file (default "data/sos_sound.mp3")

Sample

mac-keeper monitor-power \
--slack-webhook-url='https://hooks.slack.com/services/X/Y/Z' \
--slack-channel='#JackTT'