Close

Inspirational Slogans

A project log for Message Board

4 32x8 LED Dot-Matrix displays connected to a Raspberry Pi connected to the internet.

pinski1Pinski1 08/21/2014 at 16:250 Comments

One cool thing I really like about Cambridge Makespace is the number of posters dotting the walls with slogans like: "Perfect is the enemy of done." or "Get excited and make things." or "Leave this space tidier than you found it." So I decided to duplicate them on the MessageBoard.

I've done this by having the slogans in text files (took a bit of time to find all the posters and copy the slogans!) and then using the python "linecache" function to bring a specifically numbered line into my python script and then print it via the bash terminal.

Of course I also wanted to have other sayings occasionally appear on the MessageBoard so I created separate text files for Makespace specific things which encourage members to help out and tidy up as well as another file containing a "Work in Progress" message. I then modified the script to pull lines sequentially from every text file in a directory every 30 seconds. This allows me to add lines to files later on easily as well as add new files for different types of messages.

Discussions