Making a Slack Printer for Fun

Making a Slack Printer for Fun

I have been rather bored lately due the repetitive nature of things around me. To get rid of my boredom, I turned to Iron Man 3 for advice.

Slide to 1:33 - "why don't you just build something?"

I looked around me for boring and uninspiring things I could fix in a fun way. I found one - my very high number of unread messages in Slack.

No alt text provided for this image

While Slack is an excellent communication software, it does lack personality as a platform - unless you are into emojis. It is just another boring messaging software that require users to sit behind a keyboard or touch screen (phone) to interact. It is boring.

Let's turn this boring messenger into something cooler. I tried it already with my 'Slack Shoes'. The most unconventional and fun way to fix Slack's boredom issue is actually inspired by Short Stories' brilliant story dispensers.

No alt text provided for this image

Slack notifications should be:

  1. more tactile
  2. be easy to read
  3. be disposable and "take-away"

Essentially, Slack messages to channels (that I were important to me) had to be printed in a successive flow and in a disposable way.

Requirements

  1. Thermal Printer
  2. Thermal Paper
  3. Slack Bot and Events feature access in the workspace
  4. A Raspberry Pi for handling actuation *pi zero would work too for this concept
  5. A Server for the event parsing and triggering

The Concept

No alt text provided for this image

In order to maximise the use of the printer, I decoupled the event/message parsing from the actuation. In the future, other software could use the printer.

No alt text provided for this image

How does it work?

Users send messages via Slack.

Slack POST messages via to the 1st server (running Flask). In this case, I have used an always-on container (Ubuntu 18 + Flask) on Codeanywhere (my favourite IDE these days). it has been ngroked (custom domain assigned to the server).

No alt text provided for this image

The slackevents library is used to listen to events in the python bot script. The domain is configured in Slack's Events.

No alt text provided for this image
No alt text provided for this image

Messages received from selected channels are sent to the Raspberry Pi (GET method - I should have used POST but for the ease of network debugging, opted for GET). The pi has its domain mapped via Dataplicity.

The PI runs Flask (auto runs /etc/rc.local )and receives requests from the Condeanywhere container. The Pi also has the ESC/POS libraries installed to interact with the printer which was connected via USB. A quick lsusb in the terminal reveals the printer's device information.

Upon receiving the message from the container, the Pi signals the printer to print it.

No alt text provided for this image

Issues faced while making this Slack Printer

  1. Ngrok's free package is a no-go. I had to go for the basic package for the custom fixed domain.
  2. The printer was bulkier than I planned.

The Final Output

Since it's April and everybody is looking forward to Easter, I themed the output around Easter - got some fake grass, some eggs, and a case from Hobbycraft. The wooden case was smaller than the printer, hence the reason for it to be sideways.

No alt text provided for this image
No alt text provided for this image

Slacking and Printing!!!!

No alt text provided for this image

Code:

Now, this is fun! My desk is now cooler and ready for Easter! Future improvements - switch method to POST (from 1st server to Pi), feature basic key authentication to avoid misuse, and adding Jira support. It would be great to print Jira tickets for scrum updates (using an old school physical board).

When bored, build something! Woo!


Shah M F Auckburaully

SaaS Engineer | Product Developer | Maker

5 年

The Sequel -?Making the Slack Printer more versatile through a Chrome Extension - https://www.dhirubhai.net/pulse/making-slack-printer-more-versatile-through-chrome-shah-auckburaully

回复
Dennis Yurkevich ????

Working on the next project.

5 年

This is quality, where do we buy one?

回复
Anthony Wong

Global Marketing Procurement at TikTok

5 年

Great read Shah!

回复

要查看或添加评论,请登录

Shah M F Auckburaully的更多文章

  • Valentine's Day Love Knick-Knack

    Valentine's Day Love Knick-Knack

    February 14th is fast approaching and we are all bombarded with advertisements about gift ideas including but not…

    7 条评论
  • The Cheeto Grabber

    The Cheeto Grabber

    One of the many things that grinds my gears is having my fingers turned orange whenever I eat Cheetos. This headache…

    5 条评论
  • Making the Slack Printer more versatile through a Chrome Extension

    Making the Slack Printer more versatile through a Chrome Extension

    Following up the deployment of the Slack Printer - https://www.linkedin.

  • MiQ Hack `18 - A Smart Aquaponics System

    MiQ Hack `18 - A Smart Aquaponics System

    Hack`18, the annual hackathon organised by MiQ Digital was a success. Not only were there 20 Red Bull-fuelled brilliant…

    2 条评论
  • My New Cap

    My New Cap

    I am currently refreshing my electronics stash - some my unused items were a bunch of UnicornHats. They are super easy…

  • Upgrading my Slack Socks with an unofficial 'Slack Shoe-Add-on'

    Upgrading my Slack Socks with an unofficial 'Slack Shoe-Add-on'

    I recently ordered a pair of Slack-themed socks from the Slack Shop. I love swag! A Slack-themed Swag is a must-have in…

    5 条评论
  • Just Smile - Media iQ Hack' 17

    Just Smile - Media iQ Hack' 17

    I had the esteemed privilege to participate in Hack iQ 2017 organised by Media IQ Digital last week. There were sixteen…

    3 条评论
  • My Connected Hat

    My Connected Hat

    Since last year, I have been using MARP and my physical web beacon watch to share content in the physical world. Those…

    4 条评论
  • Taking my Linkedin content shares to the next level - Proximity Sharing (PhyWeb)

    Taking my Linkedin content shares to the next level - Proximity Sharing (PhyWeb)

    This is a follow up to my last post - MARP (Mobile Augmented Reality Physical) Business Cards Behold! My hairy arm!!!…

    1 条评论
  • MARP (Mobile Augmented Reality Physical) Business Cards

    MARP (Mobile Augmented Reality Physical) Business Cards

    This post chronicles how I developed my super awesome MARP Business Card for fun! For past four months, I have been…

    6 条评论

社区洞察

其他会员也浏览了