dkesberg / StarboundUserCount

Displays a png of active users on a starbound server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StarboundUserCount

Displays a png of active users on a starbound server

Example

Server Status

Requirements

  • PHP5.4+
  • Composer

Installation

PHP

Clone github directory

git clone https://github.com/dkesberg/StarboundUserCount.git

change into project directory and run composer

cd StarboundUserCount
composer install

Cron

Create a cronjob to check network connections and update usercount.txt. Change filepath to match your system.

*/5 * * * * lsof -i TCP:21025|grep ESTABLISHED|wc -l > /var/www/starbound/app/storage/data/usercount.txt

About

Displays a png of active users on a starbound server


Languages

Language:CSS 62.9%Language:PHP 36.2%Language:Shell 1.0%