Plays chime sounds off of the on-board speaker every 15 minutes.
Go to file
Matthias Portzel e1b4d9d30e Add missing E
I was wondering why the full hour sounded so wrong
2022-03-19 11:10:10 -04:00
src Add missing E 2022-03-19 11:10:10 -04:00
.gitignore v1.0 2022-03-18 11:02:29 -04:00
build.zig v1.0 2022-03-18 11:02:29 -04:00
chime.service v1.0 2022-03-18 11:02:29 -04:00
chime.timer v1.0 2022-03-18 11:02:29 -04:00
README v1.0 2022-03-18 11:02:29 -04:00
time_test.c v1.0 2022-03-18 11:02:29 -04:00
time_test.zig v1.0 2022-03-18 11:02:29 -04:00

This project uses the Linux's `ioclt` command KDMKTONE to play clock-tower chimes on the internal tty "speaker" every 15 minutes. It needs to be run as root in order to do this.

I wanted to do this because the computer that I use as a server in my room doesn't have a real speaker and I didn't want to buy any hardware to achive my dream of being able to hear a clock tower.

Also, I used this project as an excuse to learn Zig. The Zig code I've written is probably not the nicest way to do things, and I'd welcome feedback on it.

Also included are the Systemd service and timer files that I use to run this script every 15 minutes.
```
sudo cp chime.* /etc/systemd/system/
```

This is free and unencumbered software released into the public domain, under the terms of The Unlicense.