Skip to content

martin-bucinskas/autoslackstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

AutoSlackStatus (ASS)

Auto Slack Status or ASS for short, is a script which sets your slack status acording to the WiFi SSID you are connected to.

Installation

Clone the repository and a cronjob to run it!

git clone git@github.com:martin-bucinskas/autoslackstatus.git ~/autoslackstatus
chmod +x ~/autoslackstatus/slack-status.sh
crontab -e

Add this entry to cron to run every 30 minutes. Simple!

30 * * * * cd ~/autoslackstatus & ./slack-status.sh

Configuration

To set up your newly installed ASS, you'll need your slack token and fill out the statuses.

SLACK_TOKEN=""
# Default status if no SSID matches
STATUS=""
EMOJI=""

STATUSES=("Home Lab;WFH;:house:"
          "Engine-Internal;At GPS;:office:"
          "iPhone;Working Remotely;:wave:"
          "GreenMan;At the pub;:beer:")

You can leave the default status and emoji blank or set to something else, this will only be set if no WiFi SSID is matched.

The syntax for setting your status follows this:

WIFI_SSID;STATUS;EMOJI

Do not forget the colons in the emoji part!

License

MIT

About

Auto Slack Status updater based on the WiFi SSID

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages