HowTo join http://stats.soilcoin.xyzPlease note: You need a running gsoil instance with --rpc (rpc enabled) on you pc/server in order to join the stats
Ubuntu:Install node.js:
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
Get and install eth-net-intelligence-api:
git clone https://github.com/soilcurrency/eth-net-intelligence-api.git
cd eth-net-intelligence-api
npm install
sudo npm install -g pm2
Edit the app.json file:
[
{
"name" : "node-app",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"max_restarts" : 10,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
"env":
{
"NODE_ENV" : "production",
"RPC_HOST" : "localhost",
"RPC_PORT" : "39421",
"LISTENING_PORT" : "39420",
"INSTANCE_NAME" : "YOUR NODE NAME",
"CONTACT_DETAILS" : "EMAIL, WALLET, WHATEVER",
"WS_SERVER" : "http://45.63.4.165:3000",
"WS_SECRET" : "ilikesoil1.4.0",
"VERBOSITY" : 2
}
}
]
Finally run the process with:
pm2 start app.json
Windows:Install python:
Choose add "python to path" in the dialog window.
PythonInstall nodejs:
https://nodejs.orgGet eth-net-intelligence-api:
DownloadExtract it to e.g. "C:\Users\username\Desktop"
Edit "INSTANCE_NAME" in the file app.json:
[
{
"name" : "node-app",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"max_restarts" : 10,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
"env":
{
"NODE_ENV" : "production",
"RPC_HOST" : "localhost",
"RPC_PORT" : "39421",
"LISTENING_PORT" : "39420",
"INSTANCE_NAME" : "YOUR NODE NAME",
"CONTACT_DETAILS" : "EMAIL, WALLET, WHATEVER",
"WS_SERVER" : "http://45.63.4.165:3000",
"WS_SECRET" : "ilikesoil1.4.0",
"VERBOSITY" : 2
}
}
]
Double-click "init.bat"
Double-click "start.bat" to register yourself to the node.
Double-click "stop.bat" to deregister yourself to the node.