'THE' is a mini MQTT Information Display for Time, News and Environmental Information. Using a 4.2-inch eInk screen, its concept is simple - to display information on a rotational basis, updating every couple of minutes. The data can be any feed - from the latest news headlines through to your smart home, energy usage, live local environmental conditions or simply the time - THE - Time, Headlines & Environment.'THE' is built from two simple off the shelf components (an eInk InkyWHAT screen from Pimoroni and a Raspberry Pi) the code and the 3D printed casing are open source, allowing you to modify or redesign your own. You can follow along here or also take a look at the build at Instructable - https://www.instructables.com/id/Make-Your-Own-MQTT-EInk-Display-for-Time-News-and-/ The concept comes from a long tradition of viewing data on a screen, from systems such as Teletext, through to the beloved Chumby, onwards to the Sony Dash and then they current iterations of the Echo Show and Google Home. Yet there is a need for a simple information display that does not listen in, does not play music or videos and does not rely on having cloud-based data. Something that simply displays information, at a glance using a beautiful non lit eink screen, on widgets that cycle at predetermined intervals. One brilliant example is the eInk Status Display, using the InkyPhat see https://jsutton.co.uk/eink-mqtt-status/ for details. Thus with these in mind and some code to work on 'THE' was born, one cold weekend in November in deepest Norfolk, while thinking about the Connected Environments Curriculum back at University College London.At its heart, THE is powered by Message Queuing Telemetry Transport (MQTT), allowing it to receive messages as soon as they are broadcast, via series of scripts, written in Python. THE subscribes to the topic (THE/messages) which are displayed on the eInk screen whenever a new one arrives. This allows the hub of THE to simply be a displayer of a single message topic with the timings and subjects configured by external scripts. The configuration allows the system to display a wide range of data sources from internal sources around Smart Home Automation Systems through to the news headlines, personal messages to friends or family or simply to display the time.To Make a THE you require:
- A Raspberry Pi (a Pi zero, or a Pi 3 ) - we used a Pi 3 for ours.
- An InkywHAT screen;
- If using a Pi 3 - a right angled USB cable (so the cable fits in the case);
- An MQTT broker - either running on your Pi or elsewhere. Don't worry if you do not have one or are not sure what MQTT is, its quick and easy to set up and once installed it will automatically run - take a look at https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/ for a full and easy to follow tutorial on getting MQTT running - in this case mosquitto on your Pi.
- An easy to fit case - head over to Thingiverse to download and print our open source case.
- Our free and open source scripts to collect the Time, News and Environment conditions.
curl https://get.pimoroni.com/inky | bashThe one-line-installer puts everything in place to get your eInk screen up and running, we recommend you head over to the Pimoroni Getting Started with InkyWhat for more info and examples - just to check its working.
sudo crontab -eThis sets up a new cron process - if asked select option '2' to edit with nano - copy the following into the cron file and save (cntl x).
*/5 * * * * python3 /home/pi/scripts/timetomqtt.py */12 * * * * python3 /home/pi/scripts/rsstomqtt.py */18 * * * * python3 /home/pi/scripts/darkskytomqtt.py @reboot sleep 10 && python3 /home/pi/scripts/THE_pi_what.py */60 * * * * sudo rebootThe scripts run at set times - change them to any time to wish. We reboot the pi every hour to keep things fresh - this is not required and we know it is not the best of practice but we have found it keeps things running for our purposes.Step Five Reboot your Pi and sit back and wait - your feeds will appear according the time intervals you set in your cron scripts. You can edit the files and add as many sources of information as you like. Do let us know if you make one, edit any scripts or remix the case.