GitHub - AboveColin/spotamon: Submit Pokemon spots to a db and store in a sortable table/map, supports webhooks. Import gyms from gymhuntr.com or pokemongomap.info :D (Crowdsourced Map) · GitHub
Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
AboveColinPublic archive

About

Submit Pokemon spots to a db and store in a sortable table/map, supports webhooks. Import gyms from gymhuntr.com or pokemongomap.info :D (Crowdsourced Map)

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

477 Commits

Folders and files

Repository files navigation

SPOTAMON - Crowdsourced Pokemon Go map.

Demo map: (spots only remain 15 seconds) here

Requirements

  • Hosting with SSL / HTTPS
  • PHP 5.x or above
  • MySQL database
  • cURL extension
  • Google Maps API key (for reverse geocoding and Javascript API)

Optional Requirements

  • Mailserver

Discord

Install

  • Create Database,
  • Connect to DB in config and load site, on first load it will auto create tables.
  • Set /userpics/ folder permissions to 777 / 757

Default Login

Username: admin
Password: admin

Webhooks (DISCORD ONLY)

  • Enable cURL in your webhosting backend / WAMP / etcetera to use webhooks.
  • Edit the following lines in your config:
//Webhook Setup
$webhook_url = "https://www.yourwebhookurlgoeshere"; // <-- Webhook URL of your Discord channel
$viewurl = "https://www.spotamon.com"; // <-- Enter your FULL Spotamon url here including http:// or https:// example: https://www.mysite.com < NO BACKSLASH AT THE END!
$viewtitle = "View on Spotamon"; // <-- Text showing for the MAP-link @ Discord

Google reCaptcha key instructions

  1. Go to https://www.google.com/recaptcha/admin
  2. Under "Label" fill in your site name.
  3. Choose "reCaptcha V2" under "Choose the type of reCAPTCHA"
  4. Fill in your domain under "Domains"
  5. Accept the reCAPTCHA Terms of Service.
  6. Click Register
  7. Copy and paste The site key and the secret key in to your config.php

Cronjob Commands

Set your Cronjob to check each minute:

Pokemon spots: /usr/bin/wget 'https://www.siteurl/frontend/spotscron.php'
Raid spots: /usr/bin/wget 'https://www.siteurl/frontend/raidcron.php'
Egg spots: /usr/bin/wget 'https://www.siteurl/frontend/eggcron.php'

Importing Gym/Stop CSV's

  1. First download the browser-extension 'Tampermonkey'.
  2. In Tampermonkey go to the "Utilities"-tab and in the URL-field enter this url: https://www.spotamon.com/gymscript.js and click Import -> Install
  3. Go to http://pokemongomap.info, search your location and from the top part of the map click 'S2-Grid'. This wil open a popup-menu.
  4. In this menu click 'Save stops as CSV' or 'Save gyms as CSV'.
  5. Login as admin with password admin and upload the CSV's on your profile-page.

Cronjob Documentation

https://code.tutsplus.com/tutorials/scheduling-tasks-with-cron-jobs--net-8800
https://docs.plesk.com/en-US/onyx/customer-guide/scheduling-tasks.65207/
https://www.plothost.com/kb/working-cron-jobs-directadmin/
https://documentation.cpanel.net/display/68Docs/Cron+Jobs

Make Cronjob online

https://www.setcronjob.com
https://cron-job.org/en/

Configuration

config.php

// Connect to Database
$servername = "";
$username = "";
$password = "";
$database = "";
// Set maps default location example: 
// Example:
// $mapcenter = "51.9720526, 6.7202572";
$mapcenter = "";
//24HR-Clock (default = false = 12HR) 
$clock = "";
//Google Maps key
$gmaps= "";
//Webhook Setup
$webhook_url = ""; // <-- Webhook URL of your Discord channel
$viewurl = ""; // <-- Enter your FULL Spotamon url here including http:// or https:// example: https://www.mysite.com < NO BACKSLASH AT THE END!
$viewtitle = ""; // <-- Text showing for the MAP-link @ Discord

Notes

  • Scan location is intended for mobile use. Location on PC might be wrong!

Todo

  • Make all table content sortable on frontend
  • Add locales for frontend
  • Add quests

About

Submit Pokemon spots to a db and store in a sortable table/map, supports webhooks. Import gyms from gymhuntr.com or pokemongomap.info :D (Crowdsourced Map)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages