I’ve included the Illustrator file and a PDF template for the graphics I created for this project (letter size paper). But you can use any emoji supported by your workspace–just hover over it in the emoji panel to discover its label, and type it into your Arduino sketch. The last step is to decide which actual statuses you want to toggle between and create some indicator graphics to go along with them.įor composing Slack statuses, I found this emoji cheat sheet to be very helpful. Download Your Statuses and Indicator Graphics If you want to add more switch positions, you can remove the serial debugging from the code and use RX and TX pins to get two more inputs on the ESP8266, or upgrade to the ESP32 for even more pins. Download it from the bottom of this step. I’ve included the basic rotary switch code for six statuses. In this case, I also added some LEDs to the prototype to help me debug my code. I always like to make a solderless breadboard prototype of my projects before committing to the final form. 10K pull-up resistor between pin 16 and 3V (this pin does not have an internal pullup like the others).Switch leads to ESP8266 GPIO pins 13, 12, 14, 4, 5, and 16 (NodeMCU pins marked D7, D6, D5, D2, D1, and D0).The circuit diagram details the following connections: I used a multimeter to figure out which switch leads connect to which dial positions. I chose to use a rotary switch to dial in my status from a bunch of choices around the circle. Run Arduino Slack API Library Sample Codeįrom here, it’s all about the physical interface and what statuses you program it to set for you. As an Amazon Associate I earn from qualifying purchases you make using my affiliate links. To keep up with what I’m working on, follow me on YouTube, Instagram, Twitter, Pinterest, and subscribe to my newsletter. 3D printer (I used a Creality CR-10s Pro).Slack access token (learn how to get this in the next step).ESP8266 wifi board such as NodeMCU or D1 mini.If you’re new to Arduino, try my free Arduino class first. You might remember my YouTube subscriber counter, which was also written using one of Brian’s API libraries. This project is a collaboration with Brian Lough, who’s an ESP whiz and author of many Arduino API libraries including this new one for Slack. I thought it would help me remember to have a physical device on my desk that can set my Slack status for me. Feel free to respond in a conversational manner as Geekbot is designed to understand you.Forget to set it when you leave your desk, and you may get interrupted by somebody who thinks you’re available. Simply send a direct message to Geekbot using the command “/geekbot out of office.” Geekbot will then prompt you to provide the details of your absence. From there, you can easily create your first workflow and set up your out-of-office bot in Slack. Once the installation process is finished, the bot will send you a direct message containing a link to its dashboard. Install Geekbot for your Slack workplace. Here’s how you can use Geekbot to set out-of-office notifications in Slack: While you can synchronize calendar events with Slack through automation tools such as Zapier, using a Slack bot is free and easier to set up. Sometimes you need to set up your out-of-office status in Slack preemptively.įor example, you’re having a business trip in a couple of weeks or a small vacation. How to Automatically Update Out-Of-Office Slack Status: There you go! Now you know how to set up an out-of-office Slack status using the desktop, web, or mobile Slack app. For example, if you choose the “In a meeting” preset, your status will automatically become “Inline” in 60 minutes. Default presets come with pre-configured duration. Set the duration of your custom status.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |