Status monitor

Some time ago I found a free screen on Marktplaats. I picked it up by bike in the town next door.
Once connecting it, though, I realised it's quality was surprisingly high. Viewing angles weren't the best, but it was better than the stock screens most Thinkpads do.

On the left side I have a tmux session open on my server, which at the moment has a watch command on a script that checks the progress of verifying/syncing the Bitcoin blockchain.

In the top right, I have made a script that pings every device every 30 seconds and checks if it gets a response within 1 second. With that information it displays if each of these hosts are online or not.

Below that is a terminal running tty-clock.

And in the bottom right is a ncmpc session running with the host 'hochbahn' which is my Raspberry Pi 4. under my desk.

How does it run?

A raspberry pi zero (without WiFi) is the brain behind it. A 16gb SD card is in there running a copy of the Raspbian. On boot, it runs startx on tty1. This starts up awesomewm, whose configuration file (rc.lua) I had to modify. I made the following modifications:
No titlebar
No menubar
Grey borders
Autostart on the terminals with the following:

awful.spawn("urxvt -e /usr/bin/bash -c \"ssh jan@valleilijn\" &", {
tag = "1"})
awful.spawn("urxvt -e /usr/bin/bash -c \"ncmpc --host=hochbahn --port=6600\" &", {
tag = "1"})
awful.spawn("urxvt -e /usr/bin/bash -c \"tty-clock -c\" &", {
tag = "1"})
awful.spawn("urxvt -e /usr/bin/bash -c \"watch -t -c -n30 /home/pi/\" &", {
tag = "1",
callback = function(c) awful.client.setmaster(c) end})

Lastly, the screen turns of during the night. By using crontab -e, I was able to create a cron job that turns off the display at 22:30 and turns it on again at 7 in the morning:
30 22 * * * /usr/bin/vcgencmd display_power 0
00 07 * * * /usr/bin/vcgencmd display_power 1