You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.
This will auto-spin PokeStops within 30m with no cooldown.
###
PokemonGoMITM = require './lib/pokemon-go-mitm'
LatLon = require('geodesy').LatLonSpherical
forts = null
currentLocation = null
server = new PokemonGoMITM port: 8081
.addRequestHandler "*", (data) ->
currentLocation = new LatLon data.latitude, data.longitude if data.latitude
false
.addResponseHandler "GetMapObjects", (data) ->
forts = []
for cell in data.map_cells
for fort in cell.forts
forts.push fort
false
.addRequestHandler "*", (data, action) ->
if currentLocation and forts
for fort in forts
if fort.type is 'CHECKPOINT'
if not fort.cooldown_complete_timestamp_ms or (parseFloat(new Date().getTime()) - (parseFloat(fort.cooldown_complete_timestamp_ms)-(3600*2*1000))) >= 300000
position = new LatLon fort.latitude, fort.longitude
distance = Math.floor currentLocation.distanceTo position
fort.cooldown_complete_timestamp_ms = new Date().getTime().toString();