Skip to content
All work

[ N-07 / 07 ]In production·2026·Next.js · Android

Dyżur

A company has one number for customers. The app forwards calls to whoever is on call and checks that the forwarding really works.

Sync
every 30 s
Verification
up to 3 network queries
Deploy
GHCR → Portainer
Role
solo, end to end
Dyżur: the web panel with the current shift and the app on the on-call phone
Dyżur: the web panel with the current shift and the app on the on-call phone

AWhy it exists

Previously, someone had to carry the on-call phone or remember to forward calls by hand. One slip and a customer could not get through. Forwarding cannot be set from a server, so the phone itself has to follow the rota around the clock.

BWhat came out of it

Dyżur is in use by a real team. Nobody carries the on-call phone anymore, and the panel shows who is answering and warns at once when the phone stops responding or loses signal.

CFor technical readers: how it is built

A Next.js 16 panel (Prisma, SQLite) is the single source of the rota. The Android app (Kotlin, Jetpack Compose) runs as a foreground service: every 30 seconds it asks the server who is on call and dials **21*…# on change. It then queries the network up to three times and only reports “confirmed” once the carrier agrees. The phone authenticates with a device key. GitHub Actions builds and tests the image, pushes it to GHCR, and Portainer deploys it; the database is backed up daily.

→How it works, briefly

  1. 01
    Web panel
  2. 02
    Server (SQLite)
  3. 03
    On-call phone
  4. 04
    GSM carrier

↳What it does

Technologies

  • Next.js 16
  • Prisma
  • SQLite
  • Kotlin
  • Jetpack Compose
  • Docker
  • GitHub Actions

01

Shifts across midnight

A night shift that starts one day and ends the next shows up in a single weekly rota.

02

Confirmed with the carrier

The phone asks the network whether forwarding really works and only then reports success.

03

Alarm when the phone goes quiet

The panel warns when the phone stops checking in or loses signal.

04

Backups and export

A daily data backup and on-call hours exported to CSV.

“It works. Nobody has to carry the on-call phone around or waste time forwarding calls by hand anymore.”

The team using Dyżur

▢Screens

How it works: rota in the panel, the phone polls every 30 seconds, forwarding confirmed with the network
How it works: rota in the panel, the phone polls every 30 seconds, forwarding confirmed with the network
Panel: on-call hours statistics and an alarm when the phone stops responding
Panel: on-call hours statistics and an alarm when the phone stops responding

Privacy

Screenshots come from a demo instance: names and numbers are made up.

↗Contact

Got an app worth testing? Get in touch.

Next project · N-01

Rysa