Upgrading 3.3.2 to 3.3.3 - Sjakil/gunthy-gui GitHub Wiki
I want to highlight a few things when it comes to upgrading the GUI from version 0.95 to version 0.96. Gunbot version 3.3.3 has brought many changes, allow me to explain how the GUI handles them.
Single instance vs. multiples instances
Since the gunbot no longers spawns multiple instances, there is now a circular button available up top which starts/stops the gunbot. The switches per individual pair no longer control an instance of the gunbot as before, but now add/remove the particular pair to/from the gunbot configuration file.
Please note that the gunbot won't start if you have disabled every pair in the GUI, it needs at least one pair. Also, when the gunbot is running and you disable the only pair that is enabled, the gunbot will shut down.
In the example below, the gunbot is turned off, but the only pair visible is enabled (present in the gunbot configuration).
Configuration structure
As you are probably aware, gunbot version 3.3.3 has introduced a new configuration structure. This means there is now only one file that needs to be configured. Version 0.96 of the GUI introduces easy to use editors to handle changes in your configuration. It allows you to add/remove settings as well as change their name, value and type.
Value types:
- a-Z - String value, accepts any string value.
- 0-9 - Number value, accepts only numeric values.
- Y/N - Boolean value, accepts yes/no.
Adding new pairs
Another thing that has changed since gunbot version 3.3.3 is the way it handles pair names. It now uses the orignal pair name used by the exchanges. The GUI allows you to add any of them in a simple way. Use the filter to look for specific pairs (comma separation supported).
Not all pairs have been tested, please report any bugs that you find.
PM2
As of version 0.96, PM2 is no longer required to be installed on your system in order to use the GUI. The GUI can now spawn a PM2 instance on it's own. It uses version 2.5.0 of PM2 internally, any later version breaks support for reading log output of the gunbot. If you want to install PM2 on your system anyway, for example to monitor processes, this is fine. But please make sure you install version 2.5.0 of PM2. Also, to be sure, please reset PM2 one time by using the commands below (be aware: this will stop any bots managed by PM2).
pm2 kill
pm2 ping
You can check the current version number of PM2 using this command:
pm2 -V
If you are on a later version than 2.5.0, please downgrade using commands below (be aware: this will stop any bots managed by PM2).
pm2 kill
npm uninstall pm2 -g
npm install [email protected] -g
pm2 ping