1.0 KiB
1.0 KiB
A minimalist systemd service that periodically polls a minecraft server and logs player activity. This requires the minecraft server to have enable-query=true.
The script is currently set up to poll xkcd.cbouton.com and produce a graph for the past hour, day, month, 4 months and 18 months. The graph is generated from template.html, an SVG inside an auto-refreshing HTML page.
Installation
Nothing in the installation process is automated so far:
- Install Python 3.x
- Perform
pip install mcstatusin the monitor folder - Set the
PATHinxkcdstatus.serviceto the monitor folder. - Optionally move the web subfolder to a location in your webserver root
- Set the arguments in
xkcraftia-monitor.shto point to the web subfolder - Move
xkcdstatus.serviceandxkcdstatus.timerto/etc/systemd/system/ - Enable and start the timer
sudo systemctl enable xkcdstatus.timer
sudo systemctl start xkcdstatus.timer
Demo
See a live version of the monitor at xkcd.flumble.nl