Skip to content

AI, robotics and 3D, built by RESBROTHERX.

Watch us YouTube @resbrotherx
Contact Us
Operations · Desktop app

Vending Monitor

A live dashboard and watchdog for a vending service. It reaches the server over SSH and shows the heartbeat, vends, errors, server load, security checks and the live log.

An electronics workbench with test equipment and tools

What it does

Vending Monitor watches a vending service running on a server and shows its health on one screen: the heartbeat, completed vends, errors, server load, security checks and the live log. It connects over SSH, stays connected until it is told to disconnect, and reconnects by itself if the network drops.

Designed to be safe on a production server

  • It writes nothing on the server and never touches the database or other containers.
  • It reads metrics every 2 seconds and slower checks every 10 seconds, using a short list of small read commands.
  • The only action it can take is restarting the vending container, and only when a person presses the button or has switched auto-restart on.
  • IP addresses and server names are hidden on every page until "Show IPs" is clicked.

The watchdog

A stall is declared when the log shows no heartbeat for 45 seconds while the container is running. With auto-restart on, the monitor restarts the container, waits before trying again and stops after three restarts in an hour, so a broken service cannot be restarted forever.

A desktop app that updates itself

Vending Monitor also runs as a desktop app with a Windows installer. It checks GitHub Releases for a newer version when it starts, every 30 minutes and whenever the connection comes back, downloads the update in the background and asks before restarting.

More work

Other projects

An aisle of server racks in a data centre
E-commerce · Backend

Hair Store API

A Django REST backend for selling hair products: accounts, products with variants, basket, checkout, coupons, ratings, comments and payments through Flutterwave and Paystack.

Read more
Source code on a computer screen
Content API · Backend

Company Portfolio API

A REST API that powers a company website or dashboard, with endpoints for services, team members, about information and contact messages. Built with Node.js, Express, MongoDB and Docker.

Read more

Have a project in mind?

Tell us what you want to build. We read every message.

Start a conversation