Nocheto HTTP API
Yes, It can be missused for cheating, but thats not why it is created and we DO NOT provide any help with such activity.
Nocheto also provides simple HTTP server, which you can use to deliver HTML, CSS, JS or other files to user's browser (see example below).
HTTP API is disabled by default, you need to enable it by http command.
It is available sinc version 2.4.0 as experimental feature. You need to run nocheto with --future option to get http command.
Nocheto 2.4.0 contains API version 0.1. This version is not documented, but you can download and study example application, see below.
Example v 0.1
Unpack the zip archive and move the
http/ directory into
Add the following section into your configuration file (
~/.nocheto/config/nocheto.ini) and edit values for port and address properties.
[http] port = 8080 address = "127.0.0.1" whitelist = "new;move;flipboard;uu;redo;r;r<;r>;goto;cut;delete;branchup;loadresults;lr;hint;analyze;nag;setnag;comment;bcomment;level;seconds;autoplay;setoption;board;b;undo;u;moves;play;p;switchsounds;fen;tag;stop;speach;echo;ipv4;quit" rootdir="/home/petr/.nocheto/http/"
Now you can run http command and open corresponding url in your browser (for example http://127.0.0.1:8080/).