Client

UnixWeb

Date

1 May 2017

Category

Software Developer

Similar to most of the projects to begin I had to connect to a 'server of sorts'. This time it was a MQTT server. Data was easily obtained and parsed for later, then printed to a Raspberry Pi Display-o-Tron Hat.

Link to the Github page where the project is stored

When displayed, the colour of the backlight will change based on the pressure value. This was particularly hard because I couldn't think how to pass the values out of the loop. In this case I used a While loop. This was to avoid using the normal infinite loop that MQTT wants to use. This meant constantly checking for updates but, whilst the animation of scrolling was taking place the MQTT local server would cache new messages for use later which worked out in my favour.

Single Project