Username: Password:

Author Topic: Gunbot Monitor - Oversee all GUNBOTs in one screen  (Read 223862 times)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #60 on: June 12, 2017, 10:42:57 AM »
hi, is there a possibility, parameter, to close the old task and open a new one in the Batch.
Cant use Taskill, be course the PID changes .

Can you explain a little bit more?



i want to updated but update command don't work.

What command did you use?
What error did you get?



You get a five beachguy rating  8) 8) 8) 8) 8)

:D



Is there a way to make gmon include manual sells into -P option? I'm ok with adding lines into trade or general log :) I even tried without success :)

You need to add a line like this to the file market-BTC_XXX-log.txt:
Code: [Select]
2017/06/12 09:02:28 Profit 0.0014662869891060035


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline AllYourBaseRBelong2Us

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #61 on: June 14, 2017, 04:26:59 AM »
gmon update
Version 0.0.31

Changelog

- Displays market in front of pair name.
- Displays strategy per pair.
- 422's are hidden behind the --show-all-errors flag.
- Hide inactive trade pairs with the --hide-inactive option.
- Set amount of displayed digits with the --digits (-d) option.
- Improved # Buys and # Sells alignment.
- Renamed last colum to "Errors"

You sir, are a genius, and this summary view of Gunbot activity and progress is indispensable.  I have it running on my Windows VPS and this is the most watched window I have in ANYTHING I do, work or personal.

A couple of very minor suggestions for future consideration:

- Have "Available Bitcoins" display either total for all exchanges being shown, or per exchange.  I am running Polo and Bittrex and the total shown is only for Polo (I think, they're about the same balance).

- Maybe next to "Available Bitcoins" show either a percent utilized or percent available compared to Total in BTC currently in other coins listed.  I'm constantly doing that quick mental math to see if I need to adjust my "Max Balance to Trade" numbers up or down to fully utilize available BTC.  As a bonus, showing average BTC utilization over last 24 hours (or since monitor was started, whichever is easier).

- When there is more than one exchange being used, have a subtotal per exchange so you can see how one is doing compared to the other.  A simple "P TOTAL" line under the Polo grouping and "B TOTAL" line under the Bittrex grouping, etc, with grand totals still at bottom.

- Consider adding Strategy to the small view.  It is very narrow and really the only missing piece of info I find myself constantly going back to Gunbot to look up (when you're watching 20-30 pairs or more).

Thanks for your awesome contribution and an invaluable tool!

- Chris OCC

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #62 on: June 14, 2017, 09:56:40 AM »
You sir, are a genius, and this summary view of Gunbot activity and progress is indispensable.  I have it running on my Windows VPS and this is the most watched window I have in ANYTHING I do, work or personal.

Thank you. Glad gmon helps you.  8)

I've added you suggestions to the wishlist: https://github.com/BeerK0in/gunbot-monitor/issues/15

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline dyvosvit

  • Rookie
  • *
  • Posts: 30
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #63 on: June 14, 2017, 10:50:20 AM »
What's new in
"Version 0.0.32"?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #64 on: June 14, 2017, 10:56:47 AM »
What's new in
"Version 0.0.32"?

Just a small fix if you have more than one similar entry in the trades-log. Does not really fix the issue of counting sells which are not executed at the exchange market. So there was just a small hint in the Telegram group about v0.0.32.

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline pipks

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #65 on: June 14, 2017, 08:01:58 PM »
Hello,
Is there a way to automatically close the screen for inactive trade pairs?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #66 on: June 14, 2017, 08:12:41 PM »
Is there a way to automatically close the screen for inactive trade pairs?

Depends on what "automatically" means to you.
You can start gmon with the --hide-inactive <hours> paramenter:

Code: [Select]
--hide-inactive <hours>  Hides trading pairs which last log entry is older than given hours. Min = 1, max = 854400. [Default: 720]

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline pipks

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #67 on: June 14, 2017, 08:35:41 PM »
Depends on what "automatically" means to you.
You can start gmon with the --hide-inactive <hours> paramenter:

i want to automatically kill screen.

i use ubuntu and guncontrol

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #68 on: June 14, 2017, 10:02:02 PM »
i use ubuntu and guncontrol

Wrong thread. Please ask your question here: https://gunthy.org/index.php?topic=278

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline pipks

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #69 on: June 14, 2017, 11:38:47 PM »

Offline chrysophylax

  • Rookie
  • *
  • Posts: 6
  • --- ChainWorks Industries ---
    • View Profile
    • --- ChainWorks Industries ---
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #70 on: June 20, 2017, 11:35:34 AM »
Is it a bug, a limitation of mine or something else? I'm running it through cmd with WinServ2016.

Maybe you lost connection to your server?

BK

I don't think so, I'm using a Contabo VPS and never experienced a lost connection before. But I will check it.

Could this be a Windows cmd issue?

Either way, the cmd window stays there so with 2 commands I can set up the monitor again so it really isn't that big of an issue.

it does this on occasion in linux also ( centos 7 x64 ) ...

so you are not alone with this ... read back on my posts earlier - which seem to have been ignored ...

with centos 7 - its as simple as writing a small script to restart the service - but im guessing this is just as simple in a windows system also ...

its a superb piece of code - and will upgrade now to the latest version ...

tanx beer ...

#crysx
grn - Gfz2cXMkhMZYWSFvLEMnM8bXk7X5Mtq2J2 . exchange - https://www.cryptopia.co.nz/Exchange/?market=GRN_BTC . cwi thread - https://bitcointalk.org/index.php?topic=1563601 . email - crysx@gnxs.com .

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #71 on: June 20, 2017, 02:07:46 PM »
read back on my posts earlier - which seem to have been ignored ...

Sorry, I missed that post.  :(



so how can we commission you to create a private one? ...
Sorry, I don't understand. What do you mean with "a private one"?
building something similar to this ( console ) but for our own internal use ... private - not gpl ...

gmon is licensed under the MIT license. So you are free to do what ever you want with it:
https://github.com/BeerK0in/gunbot-monitor/blob/master/LICENSE



- os is centos 7 x64 ...
there is no reason given in the console why it has abruptly stopped ...

Never did tests on centOS. Will do some in the future. There are also coming some fixes to gmon with to much open files. Maybe that will also fix your problems.



also - ALL the bot specs ( .js ) need to be in the one directory for this to work well - where we have each pair in a different directories for logistics sakes ... is there a way to inform this package of the different directories? ... or must they all be bundled into one directory as they are now? ...

There will be an update which allows scanning multiple folders. I hope end of this week.

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #72 on: June 20, 2017, 03:30:07 PM »
The current way how gmon counts the number of your trades and your profit is wrong. What you see is the number of TRIES of trades, not the real trades.

So please read those values as "ah, Gunbot is doing something" - but your actual number of trades and your actual profit is lower than those!

Not sure if there is a performant way of reading only the successful trades from the log. The way to go is to read this from the markets. There is something on the horizon - but for now:
Please ignore "# Buys", "1 6 h d +", "# Sells", "1 6 h d +" and "Profit" values in gmon.

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline dcb942

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #73 on: June 21, 2017, 04:01:51 AM »
How do you use pm2 and why is there nothing in that field for me?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #74 on: June 21, 2017, 08:35:18 AM »
How do you use pm2 and why is there nothing in that field for me?

1. The field is empty if there is no pm2 process with the pair name.
2. I use the generator (https://gunthy.org/index.php?topic=277.0) to start Gunbot as pm2 process.


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline infebious

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #75 on: June 21, 2017, 08:26:44 PM »
Gmon crashes after a couple hours of running, this error appears and I don't know how to fix it.  Running on Ubuntu, 71% memory used, 6% CPU load, 12 pairs on Polo.  I am able to restart gmon, but it will crash again in a couple hours;

events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: spawn netstat EMFILE
    at exports._errnoException (util.js:1050:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #76 on: June 22, 2017, 12:14:00 AM »
Gmon crashes after a couple hours of running, this error appears and I don't know how to fix it.

I just released v0.0.33 - it should be fixed now.

Run this to update gmon on your VPS:
Code: [Select]
npm install -g gunbot-monitor


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Diesel

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #77 on: June 22, 2017, 11:43:07 PM »
1st: LOVE this!
2nd: YES, build a web display for this sucker, people will probably buy (I would).  I do see someone has a webgui out there, but I'm not willing to buy it sight unseen. And I'm not sure I need all those features, just a display.
3rd: What would it take to group (sort) the coins we are holding vs the coins waiting to buy? This would make it much easier to keep an eye on trends for buy vs sell.... just a thought.

Keep up the good work! Also - where do we send beer?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #78 on: June 23, 2017, 08:49:48 PM »
2nd: YES, build a web display for this sucker, people will probably buy (I would).
3rd: What would it take to group (sort) the coins we are holding vs the coins waiting to buy?

I put it on the wishlist.
https://github.com/BeerK0in/gunbot-monitor/issues/15



Keep up the good work! Also - where do we send beer?

Thanks! BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Gunbot Monitor - Oversee all GUNBOTs in one screen
« Reply #79 on: June 23, 2017, 08:58:32 PM »
gmon update
Version 0.0.37

Changelog

- Monitor multiple folders.
- Shortcut parameter for --hide-inactive and --show-all-errors (-H and -E).
- Fixed Bug "netstat ENFILE" (thx to Jeff B).
- Adding Strategy column to the small view (-s).
- Fixed NaN bug for bittrex logs.
- Displays available BTC for all markets.
- Added connection gauges for bittrex and kraken.
- Connections gauges are only visible if there are pairs for those markets.



Update

Run
Code: [Select]
npm install -g gunbot-monitor to update/install it on your server.



Monitor multiple folders

You can monitor multiple folders now. Use the -p parameter and separate the paths by colons.

Code: [Select]
gmon -p /path/to/the/logs:/another/path:a/relative/path


Usage

All available options can be displayed with
Code: [Select]
gmon -h

Code: [Select]
  Usage: gmon [options]

  Options:

    -h, --help                   Output usage information
    -v, --version                Output the version number
    -p, --path <path>            Path to the GUNBOT folder. Separate multiple paths with ":" (like: -p /path1:/path2). [Default: current folder]
    -c, --compact                Do not draw row lines
    -s, --small                  Reduce columns for small screens
    -d, --digits <digits>        Amount of digits for all numbers. Min = 0, max = 10. [Default: 4]
    -r, --refresh <seconds>      Seconds between table refresh. Min = 10, max = 600. [Default: 60]
    -P, --profit                 Use to activate the parsing of the profit. THIS WILL SLOW DOWN YOUR SYSTEM!
    -H, --hide-inactive <hours>  Hides trading pairs which las log entry is older than given hours. Min = 1, max = 854400. [Default: 720]
    -E, --show-all-errors        Use to list 422 errors in the last column.

You can also combine the options like:

Code: [Select]
gmon -csPr 120 -p /path/to/GB/:another/path --hide-inactive 1 -d 3 -E


Support & Tips

You like gmon and it helps you earning money?

- Report bugs in this forum thread or via pm in Telegram at @BeerK0in
- Support gmon and send a tip to BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT