Skip to main content

The Concept of the Literary Clock

A literary clock is a unique fusion of literature and timekeeping. Every minute of the day is represented by a corresponding quote from a literary work, providing not just the time, but a nugget of wisdom, humor, or beauty from the world of books. This idea transforms the mundane act of checking the time into a delightful literary experience. The initial concept, as outlined by the original Literary Clock Project, involves creating a clock that displays quotes from various literary works for every minute of the day. This concept not only appeals to book lovers but also serves as an artistic and educational piece, bringing literature into everyday life in a novel way. For example, as we type this the time is twenty one minutes to five and the quote from the database, including the book name is:

 

“I was told that in his vest pocket he kept a chronometer instead of a watch. If someone asked him what time it was, he would say, “”A minute and twenty-one seconds to five.””” Book: The Collected Stories

Crowdsourcing the Literary Database

An essential aspect of this project was the crowdsourcing of the literary database. The Literary Clock Project engaged a global community of literature enthusiasts to contribute quotes for every minute of the day. This collaborative effort created a diverse and rich collection of quotes, encompassing a wide range of genres, periods, and authors. Contributors from around the world submitted their favourite passages, transforming this project into a communal celebration of literature. The concept was taken a step further by tjaap who cleaned up the database and ported it onto a Kindle, complete with a full instructable on how to build you own.

The Kindle Literary Clock by tjapp

Porting to MQTT

MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol designed for small sensors and mobile devices optimized for high-latency or unreliable networks. It’s perfect for the Internet of Things (IoT) applications where bandwidth and battery power are at a premium. It is also good for transmitting short text messages to display across multiple devices at the same time, as long as a device is connected to an MQTT broker, it will automatically display messages as they arrive.

As such, as have created a Python script to read the database and publish the time quotes every minute to our MQTT broker on the following address: /personal/ucfnap/timequote (its a little but like tuning a radio, but in the case of MQTT, subscribing to topics).

How It Works:

1. Data Collection: We are using the extensive CSV file containing literary quotes provided by the Kindle Literarty Clock project, where each quote is tagged with a specific minute of the day. To make it work with our script we tidied things up a little.

2. Publishing: This CSV is processed and published via the MQTT feed. Each minute, a new message is sent out containing the current time and the corresponding quote.

3. Subscription: Any device can subscribe to this MQTT feed to receive the quotes in real-time. This could be an e-ink screen, a smart display, or even a mobile application – ie at 10.47 a device would receive the following message:

10.07 am: In a meeting with Rod, Momo and Guy. We are rehearsing the final for the third time, with Rod and Guy taking the parts of the clients, when Rod’s secretary, Lorraine, bursts in. Book: I Don’t Know How She Does It

Applications

E-Ink Screens

Perhaps one of the most elegant implementations of this concept is using e-ink screens. E-ink displays are known for their paper-like readability and low power consumption, making them perfect for a literary clock. For an example of this, you can check out our detailed guide on setting up an e-ink screen with MQTT via our previous project THE: Time Headlines and Environmental Information here.

Literacy Clock using MQTY
Literary Clock using MQTT

Smart Displays and Mobile Apps

Beyond e-ink screens, this feed can be integrated into various smart displays and mobile applications. For example, we have intergrated it into our Home Assistant Dashboard, updating the time with a quote every minute. You could also add it to a HUB75 LED Matrix – below is our example of using an LED Matrix as a general data feed, but by simply changing the MQTT feed, it transforms into a Literary Clock.

https://youtu.be/kG3OStmfXLk?si=Yyi-UZIeQ3KHTFnd

 

Setting Up Your Literary Clock

Setting up your device is easy –

1. Choose Your Device: Select a device that can run an MQTT client. This could be an e-ink screen, a Raspberry Pi with a display, or a smartphone.

2. Install an MQTT Libary: There are numerous MQTT libraries available, we mainly use Paho.

3. Subscribe to the Feed: Point your client to the feed /personal/ucfnap/timequote 

Configure your client to display the received messages. Our open MQTT Broker is mqtt.cetools.org on Port 1883

 

Of course you may not want to bother with Raspberry Pi’s or other about with MQTT, or hack a Kindle – in which case, for those looking for a ready-made commercial version, check out the Author Clock.

The Rather Lovely Author Clock

The Author Clock is a beautifully designed literary clock that comes pre-loaded with thousands of quotes from a wide array of literary works. It’s an excellent choice for those who want to enjoy the literary clock experience without the need for a DIY setup.

With our MQTT messages, any device can now be simply converted into a Literary Clock.

Leave a Reply