To install PTMagic on a raspberry Pi3 is pretty easy.  Follow the steps below

  1. curl https://packages.microsoft.com/keys/microsoft.asc | gpg –dearmor > microsoft.gpg
  2. sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
  3. sudo apt-get update
  4. sudo apt-get install curl libunwind8 gettext
  5. 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
  6. sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet*.tar.gz -C /opt/dotnet
  7. sudo ln -s /opt/dotnet/dotnet /usr/local/bin
  8. cd /home/pi
  9. wget https://github.com/Legedric/ptmagic/releases/download/1.5.2/Raspberry.PI.PTMagic.1.5.2.zip
  10. unzip *.zip
  11. mv Raspberry PI PTMagic 1.5.2 ptmagic
  12. mv ptmagic/PTMagic ptmagic/bot1
  13. cd ‘ptmagic/_default settings PT 1.x/’
  14. cd ‘_default settings BTC or ETH/’
  15. cp *.* /home/pi/ptmagic/bot1
  16. cd Monitor
  17. cp *.* /home/pi/ptmagic/bot1/Monitor
  18. cd /home/pi/ptmagic/bot1
  19. nano settings.general.json
  20. Change the path for your PT  “ProfitTrailerPath”: “YOUR PROFIT TRAILER PATH”, example: /home/pi/ProfitTrailer
  21. “Exchange”: “Bittrex”, <—- change to exchange you are using
  22. “TimezoneOffset”: “+0:00”, <—- change to desired timezone
  23. Press CRTL and O, then  Press Enter.  Then press CRTL and X
  24. cd Monitor
  25. nano appsettings.json
  26. “PTMagicBasePath”: “YOUR PT MAGIC PATH”, <—- example /home/pi/ptmagic/bot1
  27. Press CRTL and O, then  Press Enter.  Then press CRTL and X
  28. cd ..
  29. 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
    }]
    }
  30. Press CRTL and O, then  Press Enter.  Then press CRTL and X
  31. 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
    }]
    }

  32. Press CRTL and O, then  Press Enter.  Then press CRTL and X
  33. pm2 start pm2-PTMagic.json pm2-PTM-Monitor.json
  34. The first time running this will take a few minutes.  Depending on CPU and network speed.
  35. Once done you can go to http://ip:5000  http://raspberrypi:5000  (assuming you are using raspbian OS