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.js
with your informations. - For first time running and testing code
node index.js
- And
cat tracker.json
ta 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.js
line with your location