To install PTMagic on a raspberry Pi3 is pretty easy. Follow the steps below
- curl https://packages.microsoft.com/keys/microsoft.asc | gpg –dearmor > microsoft.gpg
- sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
- sudo apt-get update
- sudo apt-get install curl libunwind8 gettext
- curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/2.0.4/dotnet-runtime-2.0.4-linux-arm.tar.gz
- sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet*.tar.gz -C /opt/dotnet
- sudo ln -s /opt/dotnet/dotnet /usr/local/bin
- cd /home/pi
- wget https://github.com/Legedric/ptmagic/releases/download/1.5.2/Raspberry.PI.PTMagic.1.5.2.zip
- unzip *.zip
- mv Raspberry PI PTMagic 1.5.2 ptmagic
- mv ptmagic/PTMagic ptmagic/bot1
- cd ‘ptmagic/_default settings PT 1.x/’
- cd ‘_default settings BTC or ETH/’
- cp *.* /home/pi/ptmagic/bot1
- cd Monitor
- cp *.* /home/pi/ptmagic/bot1/Monitor
- cd /home/pi/ptmagic/bot1
- nano settings.general.json
- Change the path for your PT “ProfitTrailerPath”: “YOUR PROFIT TRAILER PATH”, example: /home/pi/ProfitTrailer
- “Exchange”: “Bittrex”, <—- change to exchange you are using
- “TimezoneOffset”: “+0:00”, <—- change to desired timezone
- Press CRTL and O, then Press Enter. Then press CRTL and X
- cd Monitor
- nano appsettings.json
- “PTMagicBasePath”: “YOUR PT MAGIC PATH”, <—- example /home/pi/ptmagic/bot1
- Press CRTL and O, then Press Enter. Then press CRTL and X
- cd ..
- nano pm2-PTMagic.json
copy/paste text below. You can change the “name” to something different or bot2 if you are installing another bot.{
“apps”: [{
“name”: “PTMagic-bot1”,
“cwd”: “.”,
“script”: “PTMagic.dll”,
“node_args”: [],
“log_date_format”: “YYYY-MM-DD HH:mm Z”,
“exec_interpreter”: “dotnet”,
“exec_mode”: “fork”,
“autorestart”: false
}]
} - Press CRTL and O, then Press Enter. Then press CRTL and X
- nano pm2-PTM-Monitor.jsonCopy/paste text below. You can change the name here as well or if adding another bot
{
“apps”: [{
“name”: “PTMagic-monitor-bot1”,
“cwd”: “.”,
“script”: “Monitor/Monitor.dll”,
“node_args”: [],
“log_date_format”: “YYYY-MM-DD HH:mm Z”,
“exec_interpreter”: “dotnet”,
“exec_mode”: “fork”,
“autorestart”: false
}]
} - Press CRTL and O, then Press Enter. Then press CRTL and X
- pm2 start pm2-PTMagic.json pm2-PTM-Monitor.json
- The first time running this will take a few minutes. Depending on CPU and network speed.
- Once done you can go to http://ip:5000 http://raspberrypi:5000 (assuming you are using raspbian OS
Amazon Auto Links: No products found.