From 0adda68d66d0c13b20de6e0a2bfe6c6802d21971 Mon Sep 17 00:00:00 2001 From: notheowner <86596679+notheowner@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:41:35 +0200 Subject: [PATCH 1/6] Update PTC login and an oopsie --- pages/docs/dragonite/config.mdx | 4 ++-- pages/docs/setup/docker.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/docs/dragonite/config.mdx b/pages/docs/dragonite/config.mdx index bcc7f29..c09d10d 100644 --- a/pages/docs/dragonite/config.mdx +++ b/pages/docs/dragonite/config.mdx @@ -10,13 +10,13 @@ import { Callout } from 'nextra-theme-docs' ```toml [general] -login_delay = 20 +login_delay = 0 ... ``` | Key | Default | Description | | :-- | :-- | :-- | -| `login_delay` | 20 | Seconds to sleep in-between PTC authenticating with one proxy. For "unlimited" proxies we recommend setting this value to 1. | +| `login_delay` | 0 | Seconds to sleep in-between PTC authenticating with one proxy. For "unlimited" proxies we recommend setting this value to 1. | | `stats` | false | Whether raw worker stats are written to the Dragonite database. | | `api_host` | 127.0.0.1 | Host listener address for Dragonite API. | | `api_port` | 7272 | Host port address for Dragonite API. | diff --git a/pages/docs/setup/docker.mdx b/pages/docs/setup/docker.mdx index 8653aee..c4b5ba5 100644 --- a/pages/docs/setup/docker.mdx +++ b/pages/docs/setup/docker.mdx @@ -4,7 +4,7 @@ import { Callout } from 'nextra-theme-docs' ## Prerequisites -- [Docker](https://docs.docker.com/engine/install/) - If you are not familiar working with Docker see [Standard Setup](https://unownhash.com/docs/setup/standard) +- [Docker](https://docs.docker.com/engine/install/) - If you are not familiar working with Docker see [Standard Setup](/docs/setup/standard) - Compatible Database - See [Database Setup](/docs/other/database) ## Install services with Docker From e5934aa089bf87767e5b39951344188fc43c564d Mon Sep 17 00:00:00 2001 From: notheowner <86596679+notheowner@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:43:10 +0200 Subject: [PATCH 2/6] docker setup and config --- pages/docs/dragonite/config.mdx | 11 ++++++----- pages/docs/setup/docker.mdx | 19 ++++++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pages/docs/dragonite/config.mdx b/pages/docs/dragonite/config.mdx index c09d10d..2213cb4 100644 --- a/pages/docs/dragonite/config.mdx +++ b/pages/docs/dragonite/config.mdx @@ -10,13 +10,13 @@ import { Callout } from 'nextra-theme-docs' ```toml [general] -login_delay = 0 +login_delay = 0 #As of now there is no known login limit, this might change in the future. ... ``` | Key | Default | Description | | :-- | :-- | :-- | -| `login_delay` | 0 | Seconds to sleep in-between PTC authenticating with one proxy. For "unlimited" proxies we recommend setting this value to 1. | +| `login_delay` | 0 | Seconds to sleep in-between PTC authenticating with one proxy. For "unlimited" proxies we recommend setting this value to 0 or 1. | | `stats` | false | Whether raw worker stats are written to the Dragonite database. | | `api_host` | 127.0.0.1 | Host listener address for Dragonite API. | | `api_port` | 7272 | Host port address for Dragonite API. | @@ -58,9 +58,10 @@ dynamic_route_split = true | `dynamic_route_split` | true | When enabled Dragonite will update the route that workers are using as they connect or disconnect from an area. | | `recycle_gmo_limit` | 4900 | (Advanced) Recommend keeping this value commented out. When the GMO limit is reached for a specific account it will be be rotated. | | `recycle_encounter_limit` | 9900 | (Advanced) Recommend keeping this value commented out. When an account has encountered this amount of pokemon it will be rotated. | -| `recycle_on_jail` | false | Enabling this setting will utilize significantly more accounts. Currently three accounts are assign to one worker and will rotate while the worker is running. | +| `recycle_on_jail` | false | Enabling this setting will utilize significantly more accounts. Currently five accounts are assigned to one worker and will rotate while the worker is running. | | `location_delay` | 0 | This value, in milliseconds, will add a slight wait period while a worker is moving to a new location. Adding a slight delay has proven to decrease empty GMO results and positively impact scans overall. Recommend starting with 100, 200, 300, etc and monitoring overall results. | | `fort_location_delay` | 0 | This value, in milliseconds, is the same as `location_delay` however it only impacts fort scans (gyms/pokestops). | +| `minimum_account_reuse_hours` | 0 | This sets the amount of hours for accounts to "rest" until they can be reused. Recommended value is 169 hours (7 days). | ## Rotom section @@ -113,13 +114,13 @@ golbat_api_secret = "" ```toml [db.dragonite] -host = "0.0.0.0" +host = "127.0.0.1" ... ``` | Key | Default | Description | | :-- | :-- | :-- | -| `host` | "0.0.0.0" | Database host address. | +| `host` | "127.0.0.1" | Database host address. | | `port` | 3306 | Database port address. | | `user` | "" | Database username. | | `password` | "" | Database password. | diff --git a/pages/docs/setup/docker.mdx b/pages/docs/setup/docker.mdx index c4b5ba5..1743546 100644 --- a/pages/docs/setup/docker.mdx +++ b/pages/docs/setup/docker.mdx @@ -136,21 +136,21 @@ import { Callout } from 'nextra-theme-docs' endpoint = "ws://rotom:7071" [processors] - #golbat_endpoint = "http://golbat:9001" + golbat_endpoint = "http://golbat:9001" golbat_raw_bearer = "" golbat_api_secret = "golbat1234" - # if this is present then dragonite will not send raws to the httpendpoint + # if this is present then dragonite will not send raws to the httpendpoint. You still need the regular endpoint for API calls. golbat_grpc_endpoint = "golbat:50001" [db] - host = "0.0.0.0" + host = "127.0.0.1" port = 3306 user = "" password = "" name = "dragonite" ``` - ```toml filename="golbat_config.toml" {2,4, 7-10} + ```toml filename="golbat_config.toml" {1,2,4, 7-10} port = 9001 # Listening port for golbat grpc_port = 50001 # Listening port for grpc raw_bearer = "" # Raw bearer (password) required @@ -163,8 +163,17 @@ import { Callout } from 'nextra-theme-docs' db = "" ``` + **Highly recommend** setting secret if Rotom is accessible from the public internet. - ```json filename="rotom_config.json" {3} + ```json filename="rotom_config.json" + "deviceListener": { + "port": 7070, + "secret": "" + }, + "controllerListener":{ + "port": 7071, + "secret": "" + }, "client": { "port": 7072, "host": "0.0.0.0" From a36dd8b698286eb42e2d8a9457d8e2cd14a3c952 Mon Sep 17 00:00:00 2001 From: notheowner <86596679+notheowner@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:10:05 +0200 Subject: [PATCH 3/6] db and words --- pages/docs/setup/docker.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/docs/setup/docker.mdx b/pages/docs/setup/docker.mdx index 1743546..ab1066a 100644 --- a/pages/docs/setup/docker.mdx +++ b/pages/docs/setup/docker.mdx @@ -131,7 +131,7 @@ import { Callout } from 'nextra-theme-docs' Using Golbat's gRPC endpoint (default port 50001) is recommended over the raw endpoint (default 9001). - ```toml filename="dragonite_config.toml" {2,5,7,9,11-16} + ```toml filename="dragonite_config.toml" {2,5-7,9,11-16} [rotom] endpoint = "ws://rotom:7071" @@ -143,14 +143,14 @@ import { Callout } from 'nextra-theme-docs' golbat_grpc_endpoint = "golbat:50001" [db] - host = "127.0.0.1" + host = "db" port = 3306 user = "" password = "" name = "dragonite" ``` - ```toml filename="golbat_config.toml" {1,2,4, 7-10} + ```toml filename="golbat_config.toml" {1-4, 7-10} port = 9001 # Listening port for golbat grpc_port = 50001 # Listening port for grpc raw_bearer = "" # Raw bearer (password) required @@ -159,11 +159,11 @@ import { Callout } from 'nextra-theme-docs' [database] user = "" password = "" - address = "127.0.0.1:3306" - db = "" + address = "db:3306" + db = "golbat" ``` - **Highly recommend** setting secret if Rotom is accessible from the public internet. + It is **highly recommended** setting a secret if Rotom is accessible from the public internet. ```json filename="rotom_config.json" "deviceListener": { From d172fc136f6f0d5bb936aec74c528a0263443763 Mon Sep 17 00:00:00 2001 From: notheowner <86596679+notheowner@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:47:09 +0200 Subject: [PATCH 4/6] Remove dynamic route split. --- pages/docs/dragonite/config.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/docs/dragonite/config.mdx b/pages/docs/dragonite/config.mdx index 2213cb4..3b4c18e 100644 --- a/pages/docs/dragonite/config.mdx +++ b/pages/docs/dragonite/config.mdx @@ -55,7 +55,6 @@ dynamic_route_split = true | Key | Default | Description | | :-- | :-- | :-- | -| `dynamic_route_split` | true | When enabled Dragonite will update the route that workers are using as they connect or disconnect from an area. | | `recycle_gmo_limit` | 4900 | (Advanced) Recommend keeping this value commented out. When the GMO limit is reached for a specific account it will be be rotated. | | `recycle_encounter_limit` | 9900 | (Advanced) Recommend keeping this value commented out. When an account has encountered this amount of pokemon it will be rotated. | | `recycle_on_jail` | false | Enabling this setting will utilize significantly more accounts. Currently five accounts are assigned to one worker and will rotate while the worker is running. | From ab7bc43df5a7a4b203f879fa3922bba21f310131 Mon Sep 17 00:00:00 2001 From: notheowner <86596679+notheowner@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:50:28 +0200 Subject: [PATCH 5/6] Update tuning --- pages/docs/dragonite/config.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/docs/dragonite/config.mdx b/pages/docs/dragonite/config.mdx index 3b4c18e..203413c 100644 --- a/pages/docs/dragonite/config.mdx +++ b/pages/docs/dragonite/config.mdx @@ -49,7 +49,12 @@ bearer_token = "KOJI_SECRET" ```toml [tuning] -dynamic_route_split = true +#recycle_gmo_limit = 4900 +#recycle_encounter_limit = 9900 +#recycle_on_jail=false +#minimum_account_reuse_hours = 169 +#location_delay = 0 +#fort_location_delay = 0 ... ``` From 4341d653cd40f9d02b7f209964fa0e5a167216b6 Mon Sep 17 00:00:00 2001 From: notheowner <86596679+notheowner@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:53:35 +0200 Subject: [PATCH 6/6] dots --- pages/docs/dragonite/config.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/docs/dragonite/config.mdx b/pages/docs/dragonite/config.mdx index 203413c..064da6d 100644 --- a/pages/docs/dragonite/config.mdx +++ b/pages/docs/dragonite/config.mdx @@ -55,7 +55,6 @@ bearer_token = "KOJI_SECRET" #minimum_account_reuse_hours = 169 #location_delay = 0 #fort_location_delay = 0 -... ``` | Key | Default | Description |