The Raspberry Pi is a great piece of hardware which can be used to build many things – including a self-updating message board system that displays information across multiple screens in different locations.
This post series will show you how to build one such system, using WordPress, a TV screen and a Pi. This first post focuses on building the self-updating website, using WordPress as the content management system, while the second post will cover the use of the Pi.
There are plenty of tutorials out there detailing how WordPress themes are put together and how you can build your own, so I won’t focus on that side of things. Instead I’ll be showing you how you can get your theme to load posts from WordPress via AJAX automatically.
So let’s get started. Download WordPress and set it up on your webserver. Once done, create a new folder in “Themes” called “messageboard”. In this folder create a couple of files: index.php, style.css, and functions.php. These are the bare minimum files we will need.
style.css contains the CSS used to style the HTML, as well as the theme name and description.
functions.php will hold some functions that allow WordPress to respond to our AJAX requests and return content for the message board.