Autor Thema: Stats for Opencaching sites  (Gelesen 4990 mal)

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #15 am: 02. März 2020, 00:02:37 »
Well, I can't do anything about it, it's Opencaching which is open and shares all the data with everybody :) I'm not asking anyone their OC password to identify them. It might be possible to devise some way to do it (not easily for me), but that wouldn't change the fact that all this data is for anyone to grab. Just entering somebody's OC profile you can see where and when he was in the past just by listing caches found. It even offers the possibility to export this data in easily parsable form, like gpx or kml. Simply dropping it into Google Maps would yield similar result.

Bottom line - it is something which could be resolved in a meaningful way only on OC end

Online mic@

  • Moderator
  • Large
  • *****
  • Beiträge: 6457
  • oc-only Verstecker
Re: Stats for Opencaching sites
« Antwort #16 am: 24. Mai 2020, 18:50:52 »
Zitat von: tomaszg
I'm developing a tool to compute various statistics related to Opencaching activity and a cache map. It supports all OC sites which use OKAPI. The tool itself is accompanied by a simple webpage to visualize the results and you can check it out here: http://tomaszg.pl/geo/.

Is it possible to offer this tool on https too?

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #17 am: 24. Mai 2020, 19:04:46 »
Sorry, my server doesn't support it. I never learned how to set it up properly. I'll look into it if I find the time :)

Online mic@

  • Moderator
  • Large
  • *****
  • Beiträge: 6457
  • oc-only Verstecker
Re: Stats for Opencaching sites
« Antwort #18 am: 24. Mai 2020, 19:54:45 »
Zitat von: tomaszg
Sorry, my server doesn't support it.

Have You ever talked to oc.pl team? They use https  8)
https://www.opencaching.pl
Maybe they could inherit Your tool in their code?

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #19 am: 24. Mai 2020, 20:18:27 »
In principle, everybody is free to deploy the tool wherever they wish. It is enough to grab the source and compile it.

I've been in contact with OCpl team. They are always looking for people to work on the service. It would be best just to incorporate it with the stats on the webpage. Regretfully that would require knowledge of PHP and I don't know enough to do it. My tool is written in C++.

I didn't consider the lack of https before to be relevant to the webpages I have. I just started the investigation and it might turn out to be quite simple. I'll need to contact IT support before though and if they reply quickly enough, I may have it working tomorrow.

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #20 am: 29. Mai 2020, 23:17:58 »
Okay, it should work now with https.

Online mic@

  • Moderator
  • Large
  • *****
  • Beiträge: 6457
  • oc-only Verstecker
Re: Stats for Opencaching sites
« Antwort #21 am: 29. Mai 2020, 23:43:36 »
Okay, it should work now with https.

Perfect  8)

One more thing:
When I go to https://tomaszg.pl/geo and want to start with myself (nick=mic@ / map=Germany)
then the result is:
https://tomaszg.pl/cgi-bin/geo-form.pl?nick_pl=&nick_de=mic%40&nick_us=&nick_nl=&nick_ro=&nick_uk=&stamp=15&start_date=&end_date=&map=Germany

But
https://tomaszg.pl/cgi-bin/geo-form.pl?nick_de=mic%40&stamp=15&map=Germany
works the same...

So my question is: Could You erade useless information like &nick_nl=&

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #22 am: 30. Mai 2020, 00:02:18 »
I would need to plug in some javascript to do it, as this is normal behaviour for HTML. I'm reluctant to use JS for such trivial thing, even more so since it is purely aesthetic :)

Online mic@

  • Moderator
  • Large
  • *****
  • Beiträge: 6457
  • oc-only Verstecker
Re: Stats for Opencaching sites
« Antwort #23 am: 30. Mai 2020, 08:31:10 »
Zitat von: tomaszg
I would need to plug in some javascript to do it

I agree, no need for JS. My wish was only a "nice-to-have" feature for a smaller URL, but it works with long URL too.
THX again for all Your work, its brilliant.
Maybe You should call it Project OC  8)

Best wishes, Mic@

Online mic@

  • Moderator
  • Large
  • *****
  • Beiträge: 6457
  • oc-only Verstecker
Re: Stats for Opencaching sites
« Antwort #24 am: 03. Juni 2020, 22:56:00 »
One minor bug. Please take a look at the Difficulty / terrain matrix:
https://tomaszg.pl/cgi-bin/geo-form.pl?nick_de=zelda&stamp=15&map=Germany
The calculated values (Total 26 combinations found out of 81) are wrong.

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #25 am: 04. Juni 2020, 00:11:20 »
Thanks for spotting! It was caused by simple copy/paste error, fixed now.

Online mic@

  • Moderator
  • Large
  • *****
  • Beiträge: 6457
  • oc-only Verstecker
Re: Stats for Opencaching sites
« Antwort #26 am: 24. Juni 2020, 12:08:11 »
Zitat von: tomaszg
Okay, it should work now with https.

Have You stepped back to http?

Because http://tomaszg.pl/cgi-bin/geo-form.pl?nick_de=mic%40&stamp=15&map=Germany  works,
but https://tomaszg.pl/cgi-bin/geo-form.pl?nick_de=mic%40&stamp=15&map=Germany is not working anymore?!

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #27 am: 24. Juni 2020, 12:11:41 »
I have some temporary configuration problems and I'm now working to fix it. Broke something last night, it seems.

Edit: I think everything is fixed now.
« Letzte Änderung: 24. Juni 2020, 13:38:58 von tomaszg »

Offline JoDaEmPA

  • Aktive User
  • *
  • Beiträge: 3
Re: Stats for Opencaching sites
« Antwort #28 am: 02. Juli 2020, 23:44:46 »
HeyHo !
Thangs tomaszg ! It a very cool project ! Stats for Opencaching !
Can and do you want to install a filter for all FTF hunters that counts the FTF ?

https://project-gc.com/ProfileStats/jodaempa#FTF

Great Thangs JoDaEmPa !

Offline tomaszg

  • Nano
  • **
  • Beiträge: 21
Re: Stats for Opencaching sites
« Antwort #29 am: 04. Juli 2020, 21:53:10 »
I wanted to implement some FTF stats, but regretfully it is rather difficult. I can't in a straightforward way check it via Okapi without parsing all log entries. I'm trying to find a way to do it in a reasonable way, but didn't figure it out yet.

FWIW, Project-GC checks for word "FTF" in the log to figure it out. I don't think many people put it in their logs (I know I don't usually) so it is not the best approach.