Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] output stats from status bar to console #52

Open
quixfz opened this issue Jan 23, 2017 · 4 comments
Open

[feature request] output stats from status bar to console #52

quixfz opened this issue Jan 23, 2017 · 4 comments

Comments

@quixfz
Copy link

quixfz commented Jan 23, 2017

the status bar screen has many important statistics that are not visible when running with --no-status-bar.

i'm running it like this and barely get any useful info:
nohup python3.6 scan.py --no-status-bar --log-level INFO > /tmp/pm2 &

it would be great if the stats would appear every few minutes. i'm mostly interested in number of captchas, number of active accounts, skipped spawnpoints, average hash_key usage, known/unknown spanws.

@evenly-epic-mule
Copy link
Contributor

evenly-epic-mule commented Jan 23, 2017

I had the Idea that it wouldn't be to hard to create a status file /tmp/pokeminer.stat or so.
The status thread still runs but is printed to that file overwriting it every time.
https://github.com/Noctem/pokeminer/blob/develop/pokeminer/overseer.py#L141
That is the line, which would have to be changed

And /tmp is really important as otherwise it may kill ssd based systems ^^

@quixfz
Copy link
Author

quixfz commented Jan 23, 2017

there are people running multiple scanners... ;- ) so, one would need to be able to set the filename. or just output that to the console... hmm, have to see what happens when i start it without --no-status-bar

PS: just went through the code... that looks doable. i'll see what i can come up with.

@quixfz
Copy link
Author

quixfz commented Jan 24, 2017

thanks for the pointer! i added another variable to check():
last_log_info = now

and the following code to the while loop:

                if not self.paused and now - last_log_info > 60:
                    self.logger.info(self.get_status_message());
                    last_log_info = now

it gets the job done

@evenly-epic-mule
Copy link
Contributor

#73 not quite up to date, but will do the job

RobTwoThree pushed a commit to RobTwoThree/Monocle that referenced this issue Dec 25, 2017
Updated labels and colors for Gyms and Pokemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants