Update Slack status based on your location (using Wi-Fi SSID).
- macOS 10.12 Sierra
- Bash
- curl
I'm waiting your PR :)
git clone https://github.com/kuy/slack-loc.git
cd slack-loc
Create scripts/config.sh
from scripts/config.sh.example
.
TOKEN
: Slack API token. See below.OFFICE
: Wi-Fi SSID of your work place.EMOJI_*
: Emoji notation.TEXT_*
: Status text.
Here: https://api.slack.com/custom-integrations/legacy-tokens
If you don't have a token, create new app for an integration.
./macos/enable.sh
./macos/disable.sh
Disable the job, append below lines, and re-enable it.
<key>StandardOutPath</key>
<string>/Users/<< USERNAME >>/stdout.txt</string>
<key>StandardErrorPath</key>
<string>/Users/<< USERNAME >>/stderr.txt</string>
Please post error message to GitHub issue.
MIT
Yuki Kodama / @kuy