Coder Social home page Coder Social logo

web_mcstatus's Introduction

WebMcstatus

WEB API/Widget to query Minecraft status.

__        __   _     __  __          _        _             
\ \      / /__| |__ |  \/  | ___ ___| |_ __ _| |_ _   _ ___ 
 \ \ /\ / / _ \ '_ \| |\/| |/ __/ __| __/ _` | __| | | / __|
  \ V  V /  __/ |_) | |  | | (__\__ \ || (_| | |_| |_| \__ \
   \_/\_/ \___|_.__/|_|  |_|\___|___/\__\__,_|\__|\__,_|___/

Requirments

  • Python
  • [mcstatus] 1
  • [Bottle] 2
  • [SlimIt] 7
  • [uWSGI] 3 (option)
  • [nginx] 4 (option)

Install

Build-in server

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

Nginx + uWSGI

#. 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

Upgrade

cd /var/www/web_mcstatus
git pull
rm -rf /tmp/web_mcstatus_js/* #. clean JS cache files

Usage

API

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

WIDGET

see [web_mcstatus.html] 5.

TODO

  • Configuation system
  • ...

Author

Timothy.Lee a.k.a MarlboroMoo.

License

Released under the [MIT License] 6.

web_mcstatus's People

Contributors

marlboromoo avatar

Stargazers

Samuel Bishop avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.