The reddit button

To put my RaspberryPi (which was only laying around) to good use i decided to do a quick hack. Combined with a small 2.4 inch display, it shows the current status of the button from reddit.

 

the_button

 

A small python script connects to the reddit websocket server and displays the status of the timer, the number of participants and the current record since the script is running.

To run the script:

  1. install the websocket-client library 
  2. install Adafruit display library
  3. enable SPI interface
  4. connect the display

Python script

11 thoughts to “The reddit button”

    1. I don’t have this display, so i can’t really tell. But i assume it is connected like i connected my display, so it should work as long as the spi bus is not occupied by the kernel.

      1. Hey! I talked to you on reddit earlier (fredrikaugust), about not having the font etc. I fixed that issue, but after that I started using the screen as the main display for the raspberry pi (aka. it is occupied by the kernel). Do you know how to un-do that?

        1. Sorry, i never used a tft module as the main display, so i don’t really know if it could be shared between the kernel and another program. My guess is that you have to deactivate it as your main display. But if i find the time to experiment some more i might find a solution… but that will take a while.

  1. Hi, I ordered a screen which has arrived today. It looks to be the same as yours however the guide you have linked to has a different screen so I am a bit stuck on this part. Are you able to take a photo or something to show the exact connections you made with this specific screen? Many thanks!

  2. Nice idea – i want to build a buylist marker this way. Just press one of the wifi buttons in my kitchen boards and my pie is collecting the “signal” and is generating a buylist for next drive to the supermarket.

Leave a Reply

Your email address will not be published. Required fields are marked *