brusselopole / worldopole Goto Github PK
View Code? Open in Web Editor NEWWorldopole is a third party extension for RocketMap showing some nice statistics.
License: MIT License
Worldopole is a third party extension for RocketMap showing some nice statistics.
License: MIT License
Hi,
0 pokemon, 0 gyms and 0 lures it says.
Recent pokemons:
Notice: Undefined variable: pokemon in \pages\home.page.php on line 49 Call Stack #TimeMemoryFunctionLocation 10.0038148968{main}( )...\index.php:0 20.0251681648include( '\pages\home.page.php' )...\index.php:112
If I go to ./pokestops, ./gyms or ./pokemon it works just fine.
In the home section, the gyms that are not part of any teams is wrong, you can check at central.pokechatel.ml
hey, I am feeding info to a vserver running mysql into a database called "Map", can i also use this data to feed worldopole with data ? and is there a way to show a spawnmap (like pogom or PokemonGo-Map do in their standalone) ?
thanks! :)
time_ago function needs option to accept language specific strings for month, day, minute and so on, currently it can render English time diffs only
Drop the link!
( we'll add them to the Wordlopole page on Brusselopole http://brusselopole.be/worldopole )
See German Translations on the Website.
Translated Words are just blank/hidden/not showing on the Page.
This file - https://github.com/brusselopole/Worldopole/blob/master/core/json/translations.json
does not have an entry for 'POKEMON_CANDIES' which is then attempted to be read on line 128 of this file - https://github.com/brusselopole/Worldopole/blob/master/pages/pokemon.page.php
The error_log file on the webserver shows an exception error
Add in the 'POKEMON_CANDIES' entry into the translation file
load the an individual pokemon's info page e.g. blah.com/pokemon/10 and then see that it says
Next Evolution Requirements : 12 Caterpie
without the word candy on the end.
I question the use of the "home.page.php"'s most recent spawns in its current state. It's nice to see the scanner live but further the information provided for the user is pretty low.
What someone likes to see there is on the one hand really rare spawns and how long ago this was.
Shows rare spawns in the area with link to the Pokédex page. No further information is provided.
Its more like a note to @56k-amaury
Implementation for GA. in the mean time you can drop the tracking code in bottom of the index.php
$ grep -R '2 HOUR' *
core/cron/pokestop.cron.php:$req = "SELECT COUNT(*) as total FROM pokestop WHERE lure_expiration > (NOW() - INTERVAL 2 HOUR)";
core/cron/pokemon.cron.php:$req = "SELECT COUNT(*) as total FROM pokemon WHERE disappear_time > (NOW() - INTERVAL 2 HOUR);";
core/cron/pokemon.cron.php:$req = "SELECT pokemon_id FROM pokemon WHERE disappear_time > (NOW() - INTERVAL 2 HOUR);";
Note the hardcoded 2 hours.
Should be replaced with time_interval
just a rarity table generated from your database
POKE IMAGE / POKENAME(with link to pokedex) / spawn time / %
Wont be hard to be made, i tried and i faild :/
Bugs
Ideas
aru.php
? Right now we do things twice.<=|=|=|==|==|==|===|== | | >
Level 7 | Prestige: 434634
Effect "wow", like "pokemon-single" for blue glow, should do something. It is coded for the very most recent Poké on "home.page.php".
It's just not there.
Implement another hover effect in the css file like "pokemon-single" and add a .png to "img" folder.
Hi
I set up the page for my city.
On the front page it shows 0 Pokémon and 0 gyms.
But if I go to the gym page or Pokémon page everything works.
When clicking on a link like "All Pokemon" the /pokemon page should display something.
The pages like /pokemon are 404 not found.
When I'm trying to go to the "All pokemon" page or "Gym" page I get a 404
. However when I look into the .htaccess
file and enter the real adress like index.php?page=gym
, it works.
I have mod_rewrite enable, I checked with sudo a2enmod rewrite
and the .htaccess
is the original.
The directory with Worldopole is /var/www/Worldopole
and my apache2 site conf file is :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/Worldopole
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I followed the instructions and everything is working fine except for the time information.
I'm located on the US East Coast (EST: GMT-4) and I have to choose between getting the correct "last seen" information, or the correct graph.
If I set the variables.json "time_interval" to -4, then the last seen time, and the "current pokemon" is not working properly.
If I set the variables.json "time_interval" to 0, then the last seen time works, but the graph on the pokemon page is offset by 4 hours.
I would expect that setting the time interval and timezone would work, but it is not working correctly.
Either the last seen or the graph is "offset" by the +/- number provided.
Properly use the time interval and timezone settings, or simply ask for the information once.
I think the problem may be due to the information being both in the config.php and variable.json that it may be counted twice in some situations.
Maybe I'm not using the "timezone" in the json correctly. I have it set to "New_York/America"
Set up the site and check the "last seen" vs the "graph" in the pokemon page.
After 24 hours it may be hard to notice, since you will have data points for all hours, but if you start from scratch, the data is offset.
The src of the images of related pokemons are missing the .png extension
Hi there !
The way you include files in index.php (https://github.com/brusselopole/Worldopole/blob/master/index.php#L95) could be abused to include arbitrary files if the server is running an outdated version of PHP (<5.3 if I'm not mistaken).
Reference: http://php.net/manual/en/security.filesystem.nullbytes.php
Cheers,
Q
On the main page, the 'last spawns' list should apply the translations for the selected language (in my case German) when a new spawn is added.
On a page load, the translations are correctly applied. When a new Pokémon spawn is added to the list, it appears with the English name instead of the desired translation.
The site doesn't work if you put it in a subfolder and DocumentRoot doesn't point to this subfolder, because all links are absolute paths to DocumentRoot.
So something like this doesn't work out of the box:
DocumentRoot /srv/www/vhosts/domain.com/htdocs/
https://domain.com/wordpress --> /srv/www/vhosts/domain.com/htdocs/wordpress
https://domain.com/worldopole --> /srv/www/vhosts/domain.com/htdocs/worldopole
This would result in 404 for image and css files like --> https://domain.com/core/pokemons/96.png
Shoulde be: https://domain.com/worldopole/core/pokemons/96.png
What do you think about it?
Use relative paths or add another config parameter site-url or something like this?
Or add some additional htaccess options?
Seems some files/dir require chmod before running?
Also seeing "undefined index: REQUEST_SCHEME in ... config.php on line 25" errors. Replacing it with http or https works of course, but there should be a fallback if that SERVER var is not avail on some installs.
If entering a search String in the search field at the Pokédex,
it only will search in all "seen XX" strings below the pictures.
Examples:
It should say "X Pokémon in Y right now."
It acutally says "X Pokémon in Y right now" (so the dot at the end is missing)
I made and ugly fix adding a " . " in line 17 in home.page.php
<?= sprintf($locales->WIDGET_POKEMON_SUB->$lang, $config->infos->city); ?></a>.</p>
Show Pokemon on Website
Website says "0 Pokemon in $City right now",
but is showing Gyms, Pokestops and recent Spawns
Please tell me, i have no clue 👯
I'm using mariadb and the database is connected. Pokestops and even gyms are enabled on the PokemonGo-Map. But it shows:
"No Pokestop found is your database"
Thanks
I encountered this issue when setting up the app. by default, short_open_tag are disabled in php.ini. I enabled this to get it to work.
The behavior I was experiencing was raw php code displayed on the screen, some of the site was working some wasn't.
Thanks!
Level : '.substr($data->gym_points,0,1).'
I'm pretty sure that gym level isn't calculated this way :D Now it shows gyms with 10k+ prestige as lvl 1.
Pokémon total spawn graph shows all days and is slow as hell
In dashboard.graph.js.php:
Around line 50:
$now = time();
$yesterday = $now-86400;
$lastweek = $now-604800;
$i=0;
foreach($stats as $data){
if($data->timestamp > $lastweek){
$labels_global[] = '"'.date('d/m h:i a', $data->timestamp ).'"';
$total[] = $data->pokemon_now;
}
if($data->timestamp > $yesterday){
And for lure:
if($data->timestamp > $lastweek){
$labels_stops[] = '"'.date('d/m - h:i a', $data->timestamp ).'"';
$lure[] = $data->lured;
}
Current solution is to add the date to the X axis by the following:
if($data->timestamp > $yesterday){
$labels[] = '"'.date('d/m h:i a', $data->timestamp ).'"';
and:
if($data->timestamp > $yesterday){
$labels_gym[] = '"'.date('d/m h:i a', $data->timestamp ).'"';
I followed all the install recommendations but when I tried to open the page it just show some links (all corrupted) and "0 Pokémons / 0 Gyms / 0 Lures". Checking the error.log of apache I have this message:
"[Sun Aug 28 19:38:38.564788 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 49 [Sun Aug 28 19:38:38.564949 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 51 [Sun Aug 28 19:38:38.564989 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 51 [Sun Aug 28 19:38:38.565780 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 51 [Sun Aug 28 19:38:38.565845 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Fatal error: Cannot access empty property in /var/www/html/Worldopole/pages/home.page.php on line 51"
Could be a error related to PHP and mysql connection?
Gym count should stay the same the whole time.
2k in my case.
From time to time it drops ~300 in my case
But as you can see sum of team gym count is ~2k. So it should be around 2k not 1.7k
Reloading the site fixes the count --> back to 2k.
current
My pokemon count on the front page is working but the ammount of pokemons is only rising and not decreasing when the pokemon dissapear. The count should update every time a pokemon dissapear.
I already have +11k pokemons on my live count and I can guarantee my city doesn't have this ammount of pokemons.
I don't know
Follow a second button "Full list" instead of "Search" on "trainer" page to obtain a full view of all trainers, without their Pokémon, which loads around 50 trainers dynamically when scrolling further down. This list can be sorted by "name","level" and "gym Pokémon".
We just have the top 30 (for some pages top 100) list which is nice for the top player but uninteresting to watch for all the other user.
Create a new page "alltrainer.page.php" with less content of detail for the trainer div-pattern. Change data.loader.php or ajax to handle the desired job. Also possible to cache this page every X hours wie cron to take stress from the DB. Quick implementation by copy/paste the trainer page data loader and some deprecations of Pokémon CP, IVs etc. for the DB request.
Implement sort options, clickable by column label, by using multisort and reload list.
name: name->level
level: level->gym Pokémon
gym Pokémon: gymPokémon -> level.
Can't open Pokémon detail page (e.g /pokemon/1)
Error:
unexpected '<' in pokemon.page.php on line 130
<tr>
<td class="col-md-8 col-xs-8"><strong><?= $locales->POKEMON_EVOLUTION->$lang ?> :</strong></td>
<td class="col-md-4 col-xs-4"><?php if(isset($pokemon->candies)) { echo $pokemon->candies . " ". $pokemon->candy_name . " " . <?= $locales->POKEMON_CANDIES->$lang ?> ;} else { echo $locales->POKEMON_FINAL->$lang; } ?></td>
</tr>
Remove inside the echo function:
<tr>
<td class="col-md-8 col-xs-8"><strong><?= $locales->POKEMON_EVOLUTION->$lang ?> :</strong></td>
<td class="col-md-4 col-xs-4"><?php if(isset($pokemon->candies)) { echo $pokemon->candies . " ". $pokemon->candy_name . " " . $locales->POKEMON_CANDIES->$lang ?> ;} else { echo $locales->POKEMON_FINAL->$lang; } ?></td>
</tr>
When modifying the social links in the variables.json, they are not updated in the website.
small maps showing of where gyms are located and their respective team color
same for stops/lured stops
everything works fine, except all the small maps are missing and there is a big white space instead
no idea at all
it appeared yesterday on another VPS. i got a new one and set that up and still got the same error
In the translations.json, they're all the string for the website and UI elements. When using "fr" : true, it is not updating the main site language.
I'm Trying to get it to work on my Mac, but I get this response:
Bad formated time_interval in variables.json. Please use +X or -X format only (eg for Brussels : +2) without leading or ending space.
I didn't change it, it still is:
"time_inverval" : "+2",
Am I missing a step?
Hey, at my site:
www.dapole.zockfreunde.de
All Strings are missing :|
Apache Error log tells me:
[Mon Aug 29 19:37:16.047158 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/core/inc/meta.inc.php on line 36, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047331 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/core/inc/meta.inc.php on line 42, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047379 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/core/inc/meta.inc.php on line 46, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047438 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 62, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047559 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 65, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047627 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 5, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049055 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 17, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049089 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 22, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049115 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 22, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049138 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 28, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049162 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 28, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049196 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 33, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050177 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 43, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050484 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 67, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050519 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050544 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050570 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050595 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050623 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 129, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050648 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 130, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050675 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 131, referer: http://www.dapole.zockfreunde.de/pokestops
Like this: https://github.com/PokemonGoMap/PokemonGo-Map/pull/782
Add some icons and load based on gym level. Really easy.
This can be closed, figured out the time_interval variable needs to be the difference between the local time of the mysql server compared to the time coming in from pogomap
Having a chart showing trainer level distribution in dashboard would be nice!
Nothing like this exists
Integrate these graphs in dashboard. Unfortunately I can't contribute to dashboard because it's not available right now ;-)
Have gym-info enabled in PokemonGo-Map
Something like this (trainers of ~2500 gyms):
SELECT level AS trainerlevel, count(level) AS count FROM trainer GROUP BY level;
SELECT level AS trainerlevel, count(level) AS count FROM trainer WHERE teamid=1 GROUP BY level;
SELECT level AS trainerlevel, count(level) AS count FROM trainer WHERE teamid=2 GROUP BY level;
SELECT level AS trainerlevel, count(level) AS count FROM trainer WHERE teamid=3 GROUP BY level;
PS: Maybe add average trainer level per team to gym page as well?
We should refactor pokelist_XX.json way more I think.
So we have one global pokedex.json with:
{
"typecolors": {
"Grass":"#008000",
"Poison":"#EE82EE",
"Water":"#0000FF"
},
"1": {
"max_cp":"1072",
"max_pv":"82",
"candy_id":"1",
"quick_move":"Vine Whip",
"charge_move":"Power Whip",
"spawn_rate":0.0159,
"candies":"25",
"atk":"126",
"def":"126",
"stam":"90",
"types":["Grass", "Poison"]
},
"2": { .., .. }
}
This will have: type translations, move translations and pokemon translations:
{
"moves": {"Tackle":"bla", "Quick Attack":"bla bla bla" },
"types": {"Grass": "blablabla", "Water":"bla" },
"1": {
"name":"Bulbasaur",
"description":"bla bla bla"
}
"2": { ... }
}
Then merge both json files programmatically and replace moves and types with translations. Maybe resolve candy_id as well.
This way we can update stats/optimal moves whatever and it will be translated automatically 😉
All cronjobs need to touch pokedex.json only.
└── core
├── json
│ ├── pokedex.json
│ └── locales
│ ├── DE
│ │ ├── pokes.json
│ │ └── translations.json
│ ├── EN
│ │ ├── pokes.json
│ │ └── translations.json
│ └── FR
│ ├── pokes.json
│ └── translations.json
└── process
├── locale.loader.php
└── timezone.loader.php
Still looks bad on mobile see #104
The page should be displayed
The page is blank.
I'm trying to host the site on my Ubuntu 16.10 VPS. But when I enable mod_php the page stays blank. When I disable mod_php it works (with the php parts not working of course).
I tested on my Debian Jessie stable on my local computer and I managed to make it work there.
I tried both php7.0 and php5.6 on the Ubuntu server.
On my local Debian computer I have php5.6 and it works
After completing the installation steps, and enabling short tags, I receive this error on http://myserver/Worldopole/index.php
Fatal error: Call to a member function fetch_object() on boolean in /var/www/html/Worldopole/core/process/data.loader.php on line 500
Tried it with PHP7, downgraded to PHP5.6, issue remains the same.
Would It be possible to add the dashboard you have on your page to the repo ?
When was it last seen? 1 day or 2 days ...
When was it last seen? 1 day 2day ....
functions.php: line 80
if ( $difference_value <= 1 ) {
better: if ( $difference_value < 1 ) {
But this does not solve the day display, only solves correct week display.
I have no idea what so change. The calculation in functions.php seems correct.
When I look on other Worldopole pages from other users, some have a problem here, some not.
This is a reminder from my message in discord with @Obihoernchen
I'm getting this error in the "When was it last seen?" section of any pokemon page
Fatal error: Uncaught exception 'Exception' with message 'Timestamp is in the future' in /home/pokenata/public_html/functions.php:38 Stack trace: #0 /home/pokenata/public_html/pages/pokemon.page.php(101): time_ago(1472448094) #1 /home/pokenata/public_html/index.php(100): include('/home/pokenata/...') #2 {main} thrown in /home/pokenata/public_html/functions.php on line 38
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.