This is a json data extractor made with node.js for Torrust Tracker by Torrust..
Program require Nodejs.
- Download code with
git clone https://github.com/babico/torrust-tracker-json.git - Enter downloading folder
cd torrust-tracker-json - Setup Node.js modules with
npm install - Edit
index.jswith your informations. - For first time running and testing code
node index.js - And
cat tracker.jsonta daaaaa.
After all these if you want, you can open it to the internet with a web server (like nginx, apache).
Setting crontab for every 5 minute.
- Enter crontab editing
crontab -e - Add this
*/5 * * * * sudo /usr/bin/node /<use all location>/torrust-tracker-json/index.jsline with your location