Map-A-Droid / MAD

Map PoGo stuff with Android devices
211 stars 133 forks source link

Use gmail in trs_visited #564

Open Axiangel opened 4 years ago

Axiangel commented 4 years ago
Today, visited locations for levelup mode is stored in trs_visited along with the device origin. When an account hits lvl30 MAD is instructed to change account. However trs_visited is not cleaned and the new account gets the remaining stops from the previous. MAD knows which account is being used (unless manually changed) and MAD also knows when an account is lvl 30. Instead of storing the device origin in trs_visited, the gmail info should be stored and the button "Clear Levelup Data" could be replaced with "Next account" for the purpose of telling MAD to switch to the next account in line, since MAD cannot pickup "max stop/week" unless we store gmail in trs_visited and no manual switshing occurs. Im fairly certain that leveling could be completely automatic for weeks in rows, if only enough accounts are provided initially.
ColdShadow80 commented 4 years ago

MAD works with gmail and PTC login. Even if some people have trouble with PTC login, it works (do not disable PTC as a way to fix level up please). Considering that, gmail adress is not the correct way to implement, it should be done by login user or PoGo player name.

fosJoddie commented 4 years ago

I'll look into using player name for this, but there's still the need to clear this info form the database anyhow.

Your second point

button "Clear Levelup Data" could be replaced with "Next account" for the purpose of telling MAD to switch to the next account in line

A better way would be to swap accounts once we hit spin limit by flag. But this is not something I will look into anytime soon

ColdShadow80 commented 4 years ago

We could just keep it dumb and simple. Considering general behaviour of levelers (using Paris and such) and using as a base point that we could actually store the data based on player name/account login, we could just "dumb" delete data older than 30 days because, lets face it, if you have not leveled up in 30 days you are not gonna do it on that account (and if you ever resume that it will just gather recent data when you finally decide to start again).