> ## Content Index
> Fetch the complete content index at: https://www.stephenbryan.co.uk/llms.txt
> Use this file to discover other available public pages before exploring further.

# Building a Real-Time Home Server Status Display Using an Arduino UNO R4 WiFi and MQTT
- URL: https://www.stephenbryan.co.uk/building-a-real-time-home-server-status-display-using-an-arduino-uno-r4-wifi-and-mqtt/
- Published: 2026-11-22T16:03:31.000Z
- Updated: 2026-11-22T16:49:34.000Z
- Author: Stephen Bryan

I wanted a simple way to monitor my Ubuntu home server without opening a browser, SSH session or dashboard. The goal was to create a dedicated display that would show live server statistics and immediately alert me if the server stopped responding.

After a few hours of experimentation, I built a monitoring system using an Arduino UNO R4 WiFi, Mosquitto MQTT, Docker and the built-in LED matrix display. The Arduino side of the project was written in C++ using the Arduino framework and subscribes to MQTT messages published by my Ubuntu server.

## The Goal

The display needed to show:

- CPU usage
- RAM usage
- Temperature
- Uptime

I also wanted automatic fault detection so that if the server stopped sending updates, the display would clearly indicate a problem.

0:00 

/0:20 

1× 

Arduino-powered real-time monitoring for my Ubuntu home server using MQTT and an Arduino UNO R4 WiFi.

## The Hardware

The project uses:

- Arduino UNO R4 WiFi
- Built-in 12x8 LED matrix
- Ubuntu Server
- Home Wi-Fi network

The UNO R4 connects to my wireless network and subscribes to MQTT messages published by the server.

## The Software Stack

The server runs:

- Ubuntu Server
- Docker
- Mosquitto MQTT
- A custom Bash script
- A systemd service

The Arduino runs:

- WiFiS3
- PubSubClient
- Arduino LED Matrix libraries

## Architecture

Ubuntu Server publishes monitoring information via MQTT:

```text
Ubuntu Server
      │
      ▼
Mosquitto MQTT
      │
      ▼
Arduino UNO R4 WiFi
      │
      ├── LED Matrix
      └── Web Status Page

```

## MQTT Broker

Mosquitto was deployed in Docker and listens on port 1883.

The Arduino subscribes to the topic:

```text
display/text

```

Any message published to this topic is immediately displayed on the LED matrix.

For example:

```bash
mosquitto_pub -h localhost -t display/text -m "CPU HIGH"

```

updates the display instantly.

## Live Statistics Script

A Bash script collects system information and publishes it to MQTT every few seconds.

The script rotates through:

- CPU utilisation
- RAM utilisation
- CPU temperature
- System uptime

The Arduino receives each update and scrolls the text across the LED matrix.

## Automatic Startup

The script runs as a systemd service:

```bash
sudo systemctl enable server-display

```

This ensures monitoring starts automatically whenever the server boots.

## Offline Detection

One of my favourite additions was a heartbeat mechanism.

The Arduino records the timestamp of the last MQTT message received. If no update arrives for 30 seconds, the display automatically changes to:

```text
SERVER OFFLINE

```

```cpp
if (millis() - lastMessageTime > 30000) {

  if (displayText != "SERVER OFFLINE") {

    displayText = "SERVER OFFLINE";
    updateMatrix();
  }
}

```

This means I can immediately tell if:

- The server crashes
- Mosquitto stops
- The monitoring script fails
- Network connectivity is lost

## Current Features

✅ Wi-Fi connected Arduino

✅ MQTT integration

✅ Docker-based Mosquitto broker

✅ Live CPU monitoring

✅ Live RAM monitoring

✅ Temperature monitoring

✅ Uptime monitoring

✅ Automatic startup via systemd

✅ Automatic offline detection

✅ Built-in web status page

## Future Improvements

Possible future additions include:

- Disk usage monitoring
- Docker container health checks
- Nextcloud status monitoring
- Immich status monitoring
- Internet connectivity checks
- Tailscale status monitoring
- Amateur radio alert notifications
- Home Assistant integration

## Final Thoughts

What started as a simple experiment turned into a genuinely useful monitoring tool.

The Arduino no longer acts as a standalone device. Instead, it functions as a dedicated network display that receives real-time server information via MQTT and immediately alerts me when something goes wrong.

For a relatively inexpensive setup, the result is a surprisingly capable server monitoring dashboard that sits permanently on my desk.