matt-yml / pk

PK's Public system to track issues and update on work
0 stars 0 forks source link

Spawn Point migration #47

Closed matt-yml closed 1 year ago

matt-yml commented 2 years ago

Along with the OSM update Niantic is updating spawn points. This ticket tracks its impact and efforts to update from the migration.

  1. Discover the new points.
  2. Find the TTH timing of all (new) unknown points.
  3. Remove old spawn points that haven't been updated recently

1- Discovery Round (IV fence only)

2- Timing each spawn point (TTH)

3- Remove defunct points

matt-yml commented 1 year ago

spawn points have significantly changed in Asheville. this was the last area to be scanned before the migration, but hasn't been regularly scanned since.

will need to do blank scanning of all areas, remove spawn points that don't meet 'last seen criteria'.

this matches the announcement. rural areas will get many new spawn points, city not so much.

Image

matt-yml commented 1 year ago

Found new non-event spawn points in Asheboro for the entire thing, not just monster areas. Now added to auto TTH time finding route, which is fence based. New spawn points: 12967 Unknown TTH(Red): 8668 Known TTH(Blue)

Image

Image

matt-yml commented 1 year ago

Extensive database rework done for migration. Includes SQL commands to modify.

Adding new first_seen column to spawn points.

ALTER TABLE spawnpoint
ADD COLUMN first_seen TIMESTAMP DEFAULT CURRENT_TIMESTAMP;

Added green regular indices for despawn_sec and first_seen as well. This may slow insertion times into the db, but is necessary now while developing a plan. May remove later, or it may not be an issue as new points aren't being added constantly.

Image

Rough SQL scratch for Asheboro coord tracking

-- Asheboro new spawn points tracking
SELECT * FROM spawnpoint
WHERE lat BETWEEN 35.606356 AND 35.764605
-- seen since monday midnight
-- AND last_seen >= 1671426000
-- unknown spawn point
AND despawn_sec IS NULL
-- first seen epoch 2022-12-21 03:11:14
AND first_seen > '2022-12-21 03:11:14'
-- AND first_seen >= '2022-12-21 19:07:00'
AND lon BETWEEN -79.892942 AND -79.715541;

Rough SQL scratch for CAM coord tracking

-- CAM spawn point tracking
SELECT * FROM spawnpoint
WHERE lat BETWEEN 35.721821 AND 35.814978
-- seen since monday midnight
-- AND last_seen >= 1671426000
-- unknown spawn point
-- accountAND despawn_sec IS NULL
-- first seen epoch 2022-12-21 03:11:14
AND first_seen > '2022-12-21 03:11:14'
-- AND first_seen >= '2022-12-21 19:07:00'
AND lon BETWEEN -78.918606 AND -78.773371;
matt-yml commented 1 year ago

Will likely need to add new bots to scan all the new areas within a reasonable amount of time. Let's add 10 because we're also adding Charlotte and Pittsboro.

matt-yml commented 1 year ago

RDU has added a LOT of new points. ~233k so far

Image

matt-yml commented 1 year ago

11 more bots added to system bringing us to 101 total. In theory that's 660 more phones. Noice

Seem to be leveling off at 21000 tcp connections.

Image

matt-yml commented 1 year ago

Let's start measuring the spawn points and unknowns for the overall map. Yellow=Unknown - need to scan Green=Total new points found That means the timing has been found for 239,301 new points. 👀

Image

matt-yml commented 1 year ago

More than half of unknown points now timed.

Image

matt-yml commented 1 year ago

Whoo hoo! CabCo is the second area to complete spawn point timings!

Image We've discovered and isolated ~96k new spawn points.

Say goodbye to ??? spawn times on alerts. Now timings will be even more accurate and setting up new fences will be much quicker.

Spot Light Hour and CDs of course have their own unique timings so we'll have to build sample data for that over time.

Red dots are unknown points Image

matt-yml commented 1 year ago

Yikes they're falling like dominos. GSO finished up today as well.

Image

GSO has added and isolated ~42,000 new spawn points!

Image

matt-yml commented 1 year ago

Database has been sanitized of all old spawn points before the 21 Dec 2022 scanning epoch. Assuming Niantic's migration is complete we are complete.

Now fairly stable at 1.6M spawn points.

Hooray, this was a mess and a lot of work.

Image