icius / lbschedstats Goto Github PK
View Code? Open in Web Editor NEWscripts for scheduling and displaying minecraft Log Block stats
scripts for scheduling and displaying minecraft Log Block stats
LB SchedStats =============================================================================== This package is meant for Minecraft server administrators who wish to see statistics from the LogBlock server plugin. The package uses efficient SQL queries to retrieve data from the MySQL LogBlock database on a set schedule. The data is then presented to the administrator using concise graphs and reports. Version =============================================================================== Version 1.0 is the first generally available version of LB SchedStats Pre-Requisites =============================================================================== LB SchedStats makes use of Highcharts JavaScript graphing tools. Highcharts is available at the following site: http://www.highcharts.com Instructions for installing Highcharts is available from the site. In addition to Highcharts the following packages are also required before using LB SchedStats: Linux Packages libmysqlclient-dev Perl Modules DBI-1.616 DBD-mysql-4.020 Installation =============================================================================== 1. Copy the following files to a location of your choice. lbcollector.pl config.cfg 2. Copy the lbssweb directory to your webserver directory (example: /var/www/). Please ensure that the lbssweb directory is at the same directory level as the highcharts directory you created when installing Highcharts. Example: /var/www/lbssweb /var/www/highcharts 3. Edit the config.cfg file copied in step 3. Follow the instructions in the file to properly configure your copy of LBSchedStats. 4. Schedule the lbcollector.pl script to run via cron (or your scheduler of choice) at your desired interval. Once an hour is a good starting point. 5. Access the main LBSchedStats page on your web server using a browser. The URL depends on where you installed lbssweb in step 4. Example: http://yourserver/lbssweb/index.htm
Most likely, that is because you use @Hours to address hours in query response.
for my $array_hour(@Hours)
{
$created_line .= ",$hour_created_hash{$array_hour}";
$destroyed_line .= ",$hour_destroyed_hash{$array_hour}";
}
In query rows hours are 0,1, 2, 3, ... , 9.
In @Hours they are "01", "02", "03", ... , "09"
For obvious reasons, hour #23 is not guaranteed to be stored completely. Unless it is made sure that the script runs perfectly in 23:59:59, which isn't a reliable solution, or some workaround is developed in the script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.