App::Web::NAOdash - Analyze NetHack xlogfiles and extract statistics (web interface)
# In app.psgi use App::Web::NAOdash; use Plack::Builder; builder { mount '/dash/' => App::Web::NAOdash->new->to_app; mount '/json/' => App::Web::NAOdash->new(json => 1)->to_app; ... }
App::Web::NAOdash is a web interface to NetHack::NAOdash.
It handles URLs of the form /username, where username is a NAO username. It retrieves the xlogfile from NAO and returns the result of the analysis.
/username
Two query parameters are accepted: include_versions and exclude_versions, both of which can take multiple values by specifiying them multiple times. They are passed directly to the naodash_user function, see the documentation of NetHack::NAOdash for an explanation of their function.
The constructor takes a single named parameter, json, that is false by default. The result will be returned as HTML is json is false, as JSON if json is true.
NetHack::NAOdash, App::NAOdash
Marius Gavrilescu, <marius@ieval.ro>
Copyright (C) 2015 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.
To install NetHack::NAOdash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetHack::NAOdash
CPAN shell
perl -MCPAN -e shell install NetHack::NAOdash
For more information on module installation, please visit the detailed CPAN module installation guide.