A simple script to update Slack Status based on wifi locations.
- Obtain an API token from Slack
- Edit
slackstatus.shto include your API key - Edit
local.status.plistto point to your localApplication Supportfolder (changekellycaylorto your user name) - Change the values of
$ssidandstatus_text, andstatus_emojiin the API calls (curlcommands) to the stuff you want. - Put
local.status.plistin your~/Library/LaunchAgentsfolder - Put
slackstatus.shin your~/Library/Application Supportdirectory and make sure it is executable (e.g.> chmod 775 slackstatus.sh).
Notes:
These strings in your API calls need to be URL encoded.
Emoji names must match the Slack-approved emoji for your organization (e.g. :coffee:)