-
-
Save beenker/dfa31708fcba2da19f3ea00a57e4619f to your computer and use it in GitHub Desktop.
Config,js file for setting the Slack status based on Wi-Fi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
slackToken: "xoxp-.....", //Paste your own slack token here | |
statusByWiFiName: { | |
"OFFICE": { //wifi SSID | |
"status_text": "In the office", | |
"status_emoji": ":office:" | |
}, | |
"HOME": { | |
"status_text": "Working from home", | |
"status_emoji": ":home:" | |
}, | |
"HOTSPOT": { | |
"status_text": "Working outside", | |
"status_emoji": ":outside:" | |
} | |
}, | |
//updateInterval: 1000 // every second | |
//updateInterval: 5000 // every 5 seconds | |
//updateInterval: 300000 // every 5 minutes | |
//updateInterval: 600000 // every 10 minutes | |
updateInterval: 1800000 // every 30 minutes | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment