Programming The Raspberry Pi

The Raspberry Pi acts as a server for the website and is also home to the REST API that acts as the layer between website and Arduino. I had an old Raspberry Pi Model B and case hanging around so I used that. Since this project doesn’t require a high specification I’ve experienced no issues so far.

Website

Since I wanted to learn React this seemed a good project to get my teeth into. My intention was to create a site that both replicated the scoreboard in appearance but was also adaptive enough to be used in portrait mode on a phone. An example of the site I came up with can be seen here. The full code for the site is available on github.

REST API

The rest API is written in Python using the Flask microframework . It is intentionally minimal and hopefully easily used by others undetaking a similar project. Code can be found here.

One thought on “Programming The Raspberry Pi

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.