WEB API/Widget to query Minecraft status.
__ __ _ __ __ _ _
\ \ / /__| |__ | \/ | ___ ___| |_ __ _| |_ _ _ ___
\ \ /\ / / _ \ '_ \| |\/| |/ __/ __| __/ _` | __| | | / __|
\ V V / __/ |_) | | | | (__\__ \ || (_| | |_| |_| \__ \
\_/\_/ \___|_.__/|_| |_|\___|___/\__\__,_|\__|\__,_|___/
sudo su -
cd /var/www/
git clone https://github.com/marlboromoo/web_mcstatus.git
cd web_mcstatus
git submodule update --recursive --init
pip install bottle slimit
python ./web.py
#. ubuntu 12.04
sudo su -
apt-get install uwsgi uwsgi-plugin-python nginx
pip install bottle slimit
cd /var/www/
git clone https://github.com/marlboromoo/web_mcstatus.git
cd web_mcstatus
git submodule update --recursive --init
#. uWSGI config
cp doc/uwsgi.xml /etc/uwsgi/apps-available/web_mcstatus.xml
ln -s /etc/uwsgi/apps-available/web_mcstatus.xml /etc/uwsgi/apps-enabled/
/etc/init.d/uwsgi restart
#. nginx config
cp doc/nginx.conf /etc/nginx/sites-available/web_mcstatus
ln -s /etc/nginx/sites-available/web_mcstatus /etc/nginx/sites-enabled/
/etc/init.d/nginx restart
cd /var/www/web_mcstatus
git pull
rm -rf /tmp/web_mcstatus_js/* #. clean JS cache files
curl http://127.0.1.1/
curl http://127.0.1.1/status?host=localhost&port=25565
curl http://127.0.1.1/rules?host=localhost&port=25565 #. full status
see [web_mcstatus.html] 5.
- Configuation system
- ...
Timothy.Lee a.k.a MarlboroMoo.
Released under the [MIT License] 6.