Stats for Opencaching sites

Du suchst die richtigen GPS-Geräte, Geocaching-Software oder sonstiges Geocaching-Zubehör? Tausche Dich hier mit anderen Usern aus.

Moderator: mic@

Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

Hi Tomasz,
have You found a solution for this problem above.

For example if You go to https://tomaszg.pl/geo/
and search for "mic@", the websites produces a nice statistic.

But if You enter "LEMANIDA" instead the result is a blank page,
although this user has many caches found:
https://www.opencaching.de/viewprofile. ... rid=406156
?!?!
Benutzeravatar
tomaszg
Nano
Nano
Beiträge: 32
Registriert: 28.01.2020, 03:18

Sorry, I must have missed the previous message. Maybe I just didn't open forum after your "thank you" post and PHPBB didn't notify me about subsequent posts.

I fixed the issue, it was related to permissions to write. It was working fine for users which already used it in the past, but was failing to create a new image file.

Incidentally I noticed that not found/owned maps are not being rendered properly for OCde due to the fact that my copy of database got out of sync and I can no longer grab full dump of database for some reason. I only get the error "No fulldump found. Try again later. If this doesn't help contact site administrator and/or OKAPI developers."
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

Cool, it works now also for user "LEMANIDA":
--> https://tomaszg.pl/cgi-bin/geo-form.pl? ... ap=Germany
The OKAPI message was forwarded to an OC developer. Hope he can fix it.
Best wishes, Mic@
Benutzeravatar
tomaszg
Nano
Nano
Beiträge: 32
Registriert: 28.01.2020, 03:18

I've been notified by one cacher about a possible problem. It seems that number of caches found reported on my webpage differs from the one reported on OCde. I didn't go through a list of 1000 caches to find the ones that are missing, but my preliminary guess is that OCde (via OKAPI) doesn't report logs of some of the caches which are archived for some reason. I don't know if it is OC/OKAPI bug or intended behaviour of which I am not aware. Anyway, there doesn't seem anything I can do on my end.
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

Sometimes there are caches which are "gesperrt+versteckt", which means "archived with no logs possible and hided".
This status can only be set from OC support team and in used in very extreme situations, e.g. copyright issues.
So we hide this listing from the public and thus also from OKAPI, and this listing can NOT be seen anywhere except
by OC support team. So it is wise that OKAPI don´t show them, otherwise the copyright issue would occur again.
Benutzeravatar
tomaszg
Nano
Nano
Beiträge: 32
Registriert: 28.01.2020, 03:18

I don't think it's that. I could see these caches normally. For example this one doesn't show up in your logs: https://www.opencaching.de/viewcache.php?cacheid=103950
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

tomaszg hat geschrieben:For example this one doesn't show up in your logs: https://www.opencaching.de/viewcache.php?cacheid=103950
Interesting... the listing says:
# Das Benutzerkonto des Cachebesitzers war zum Zeitpunkt der Umstellung auf die neue Datenlizenz nicht mehr aktiv.
# Da er der neuen Lizenz nicht zustimmen konnte, wurden seine Cachebeschreibungen entfernt.

At opencaching.de we had moved to a new license model: "Creative Commons Attribution-NonCommercial-NoDerivs 3.0".
All OC-users were informed about this change, but some users were already deactivated before that switch day.
So I believe that above listing does not have the needed copyright flag and thus OKAPI could not use it.


I have a smiliar problem regarding webcam finds by user "nordlandkai".
According to his OC profile he found 50 webcams, here is the list:
https://www.opencaching.de/search.php?q ... tby=byname
But the statistic says that only 49 webcams are found... which is the missing one?
https://tomaszg.pl/cgi-bin/geo-form.pl? ... ap=Germany



Another bug for the same user:
He found a cache on 29.02.2020:
https://www.opencaching.de/viewcache.ph ... log1306372
But according to "Caching days matrix" this day has zero finds ?!

Greetings from Berlin, Mic@
Benutzeravatar
tomaszg
Nano
Nano
Beiträge: 32
Registriert: 28.01.2020, 03:18

The missing webcam is this: https://www.opencaching.de/viewcache.php?cacheid=155889 The owner is indeed disabled.

Well, it seems I can't do anything about the problem, maybe just put some disclaimer.
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

tomaszg hat geschrieben:The missing webcam is this: https://www.opencaching.de/viewcache.php?cacheid=155889 The owner is indeed disabled.
OK, it seems that "gesperrte" (= locked) Caches are not shown by OKAPI.
I have problems to open this listing via c:geo too.

And have You found the bug regarding 29.02. ?
Benutzeravatar
FriedrichFröbel
Vereinsmitglied
Vereinsmitglied
Beiträge: 597
Registriert: 04.09.2012, 18:21

Yes, the aforementioned locked webcam cache cannot be accessed using the OKAPI, see output of https://www.opencaching.de/okapi/servic ... er_key=XXX:

Code: Alles auswählen

{
  "error": {
      "developer_message": "Parameter 'cache_code' has invalid value: This cache is not accessible via OKAPI.",
      "reason_stack": [
        "bad_request",
        "invalid_parameter"
      ],
      "status": 400,
      "parameter": "cache_code",
      "whats_wrong_about_it": "This cache is not accessible via OKAPI.",
      "more_info": "https://www.opencaching.de/okapi/introduction.html#errors"
    }
}
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

FriedrichFröbel hat geschrieben:Yes, the aforementioned locked webcam cache cannot be accessed using the OKAPI
This is a bug of OKAPI, or does it make sense to block contents of locked caches?
I have informed the OKAPI Team about this wrong behaviour.
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

Hi Tomasz, is Your geo statistic site down?
Benutzeravatar
tomaszg
Nano
Nano
Beiträge: 32
Registriert: 28.01.2020, 03:18

Seems to be working for me. But I was doing some changes last few days (mostly related to OCpl features), so I might have broken something.
Benutzeravatar
mic@
Vereinsmitglied
Vereinsmitglied
Beiträge: 6623
Registriert: 04.12.2009, 00:31

tomaszg hat geschrieben:Seems to be working for me.
And I only see a big white screen:
https://tomaszg.pl/cgi-bin/geo-form.pl? ... ap=Germany
Benutzeravatar
tomaszg
Nano
Nano
Beiträge: 32
Registriert: 28.01.2020, 03:18

Fixed now. Apparently some OC sites store some data as a number and other store it as a string...
Antworten