Skip to content

Enable captcha support

Obihörnchen edited this page Jan 26, 2017 · 7 revisions

There is support for 2 different ways to show a captcha graph:

  1. Search PokemonGo-Map workerstatus DB for accounts which triggered a captcha
  2. Use 2captcha API to get amount of solved captchas

1. Enable general captcha support

First edit your variable.json to activate captcha graph on Dashbord ( "captcha_support" : true ) This entry will add the captcha graph and will query the database when cron run to see how many accounts are stuck behind captchas.

2. Enable 2captcha API support

First of all do step 1. Then you have to install and enable php-curl. The package is called php5-curl or php7-curl. If you use 2captcha API you need to activate captchas and set your API key in /core/json/variable.secret.json by setting "captcha_key" : "Your2CaptchaAPIKey"

BE SURE TO PROTECT THIS FILE FROM OUTSIDE !!! (.htaccess or any other solution. We provide a .htaccess for Apache 2.4+)

If your captcha.stats.json file is empty the cron script will query the last 7 days.

Add CRONTAB captcha file

To create the captcha graph our crontab script we'll need to create a JSON file (captcha.stas.json) with all datas. This file will be added in core/json/ so ensure your crontab user can read/write in the directory.

BASH SETUP

see Add Dashboard page