Go to file
f c36c8014c4 Add 'README.md' 2019-08-01 12:43:16 +00:00
web change dark styling, add more backgrounds 2019-04-19 06:24:22 +02:00
.gitignore use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00
README.md Add 'README.md' 2019-08-01 12:43:16 +00:00
convert-logs.py use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00
favicon.xcf proper website 2019-03-19 05:10:11 +01:00
generate-html.py use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00
makeline.py use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00
pyvenv.cfg use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00
template.html use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00
update-status.py mark offline after 110sec, dynamic <details> background for dark themes 2019-03-25 05:55:11 +01:00
xkcdstatus.service added robots.txt and systemd unit files 2019-03-19 05:30:54 +01:00
xkcdstatus.timer added robots.txt and systemd unit files 2019-03-19 05:30:54 +01:00
xkcraftia-monitor.sh use virtualenv, pytz, added status monitor, target folder as parameter 2019-03-19 05:16:27 +01:00

README.md

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:

  1. Install Python 3.x
  2. Perform pip install mcstatus in the monitor folder
  3. Set the PATH in xkcdstatus.service to the monitor folder.
  4. Optionally move the web subfolder to a location in your webserver root
  5. Set the arguments in xkcraftia-monitor.sh to point to the web subfolder
  6. Move xkcdstatus.service and xkcdstatus.timer to /etc/systemd/system/
  7. 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