Author Topic: Strava Hunting  (Read 2918 times)

0 Members and 1 Guest are viewing this topic.

Offline rando

  • 4,000 and up!
  • ****
  • Join Date: Jan 2011
  • Posts: 4,474
Re: Strava Hunting
« Reply #30 on: March 20, 2012, 10:21:20 PM »
Probably a bug that lets him read data flagged as private.  Knock it out of the park before they fix it.

Offline bam

  • General Member
  • *
  • Join Date: Oct 2011
  • Posts: 111
  • Member
Re: Strava Hunting
« Reply #31 on: March 21, 2012, 02:43:04 AM »
Interesting, thanks. Some of them shows me #2 or some other place with a different person as KOM, though when I go to that segment, I am KOM and that person's name isn't on the leaderboard...?

probably cause you got beat by some chick named Wendy: http://app.strava.com/rides/617328#33802793

;)

no, the api returns all efforts even if they were flagged on strava so it may not match the site data. this is sort of a bug so i pinged them about it. but on the other hand they do post review on flagged efforts so it's probably easier for them to just return all the results. you can flag the effort on your page which will hide it.

Offline jwible

  • General Member
  • *
  • Join Date: Jan 2011
  • Posts: 793
Re: Strava Hunting
« Reply #32 on: March 21, 2012, 04:15:00 PM »
strava's search function sucks. club passcode? that's not very "social"  :shh:

http://modbog.no-ip.org/strava/club_kom.php?club_id=1961
http://modbog.no-ip.org/strava/club_map.php?club_id=1961

That is too cool.

Any chance you'd be willing to share the code?  I'd just like to read through it.

Offline ygduf

  • internet bully
  • Forum Friend
  • *
  • Join Date: Jan 2011
  • Posts: 6,988
  • Location: Mountain View
    • Strava Profile
    • 2837
Re: Strava Hunting
« Reply #33 on: March 21, 2012, 06:44:55 PM »
That is too cool.

Any chance you'd be willing to share the code?  I'd just like to read through it.


and gimme access to your hosting space so I can try to play with it?!

Offline bam

  • General Member
  • *
  • Join Date: Oct 2011
  • Posts: 111
  • Member
Re: Strava Hunting
« Reply #34 on: March 21, 2012, 08:18:33 PM »

and gimme access to your hosting space so I can try to play with it?!

have you gotten past "hello world" yet?

That is too cool.

Any chance you'd be willing to share the code?  I'd just like to read through it.

sure.

backend:

http://bogdanmarian.com/src/gather_rides_by_club.pl.html

display:

http://bogdanmarian.com/src/club_kom.php.html
http://bogdanmarian.com/src/club_map.php.html

Offline globecanvas

  • Ninny
  • 2,000 and up!
  • **
  • Join Date: Mar 2012
  • Posts: 2,082
  • Location: The Gunks
    • Strava Profile
Re: Strava Hunting
« Reply #35 on: March 21, 2012, 09:08:30 PM »
Is StravaDB.pm something of yours or do they have an SDK somewhere? 

If it's yours, can we have that too please?

Offline bam

  • General Member
  • *
  • Join Date: Oct 2011
  • Posts: 111
  • Member
Re: Strava Hunting
« Reply #36 on: March 22, 2012, 12:49:33 AM »
Is StravaDB.pm something of yours or do they have an SDK somewhere? 

If it's yours, can we have that too please?

it doesn't really do anything exciting. just returns the handler from DBI->connect

Offline jwible

  • General Member
  • *
  • Join Date: Jan 2011
  • Posts: 793
Re: Strava Hunting
« Reply #37 on: March 22, 2012, 10:16:11 AM »
Nice.  Thank you.  I was a DB guy in a former life time and did some java stuff.  Looks like I need to brush up on Perl.

It's be cool to bring in weather info for each ride from Wunderground.com.  Hmmm.....

Offline Seth

  • 1,000 and up!
  • *
  • Join Date: Apr 2011
  • Posts: 1,878
  • Location: Okrahoma
  • Member
    • Strava Profile
Re: Strava Hunting
« Reply #38 on: March 22, 2012, 11:23:52 AM »
bam, can you add club 669 please? Thanks.

Offline rando

  • 4,000 and up!
  • ****
  • Join Date: Jan 2011
  • Posts: 4,474
Re: Strava Hunting
« Reply #39 on: March 22, 2012, 02:16:32 PM »
I'm subtly getting the feeling that this could go in very good directions. 


Jwible, if you can make that interface smoothly it could be nice but I question the authenticity of the data unless it is smart enough to switch to the nearest station throughout the ride.  I would think that adding a graph of the barometric data collected by the units that have a sensor would be an easier solution.  It is the one useful metric strava completely ignores that those devices collect.


Bam, after VL noticed the ghost data your program picks up I reviewed some of the 2nd place standings it shows I have.  I found at least one segment that strava shows I hold the KOM on yet you return a very recent ride that shows otherwise which doesn't show in that persons public rides.  Once again I want to take a moment to thank you sincerely for this gift. 


 :shh:

Offline jwible

  • General Member
  • *
  • Join Date: Jan 2011
  • Posts: 793
Re: Strava Hunting
« Reply #40 on: March 22, 2012, 04:35:16 PM »
For the weather info I think just pulling info by station closest to coordinates at start / end and start plus start-end (middle) would give an adequate picture.

I don't have the time to fool with something like that myself.  Plus I'd need all the source from bam

Offline rando

  • 4,000 and up!
  • ****
  • Join Date: Jan 2011
  • Posts: 4,474
Re: Strava Hunting
« Reply #41 on: March 22, 2012, 04:45:34 PM »
Not trying to lay it on your doorstep at all but you did bring it up.  I have lived many places that 2 miles could have been a different time zone weather wise some days.  Especially in the mountains or near the Great Lakes.  The inland zone that is heaviest effected by Lake Michigan starts about 20 miles from my doorstep and can have greatly varied pockets once inside it.




Offline ygduf

  • internet bully
  • Forum Friend
  • *
  • Join Date: Jan 2011
  • Posts: 6,988
  • Location: Mountain View
    • Strava Profile
    • 2837
Re: Strava Hunting
« Reply #42 on: March 22, 2012, 08:12:24 PM »
Not trying to lay it on your doorstep at all but you did bring it up.  I have lived many places that 2 miles could have been a different time zone weather wise some days.  Especially in the mountains or near the Great Lakes.  The inland zone that is heaviest effected by Lake Michigan starts about 20 miles from my doorstep and can have greatly varied pockets once inside it.


Every datapoint in the file has lat/lon coordinates. You could parse up weather info for 1 point each minute and plot that trend along with the rest of the ride data.


--notthatIknowhowtodoanyofthis

Offline bam

  • General Member
  • *
  • Join Date: Oct 2011
  • Posts: 111
  • Member
Re: Strava Hunting
« Reply #43 on: March 23, 2012, 01:11:21 AM »
bam, can you add club 669 please? Thanks.

done

Offline bam

  • General Member
  • *
  • Join Date: Oct 2011
  • Posts: 111
  • Member
Re: Strava Hunting
« Reply #44 on: April 04, 2012, 02:13:52 AM »
i got around to moving this off the notebook at home onto my hosting account. so you can change the domain/path from http://modbog.no-ip.org/strava/ to http://bogdanmarian.com/strava/

also started playing around with a KOM thievery script. so if you're interested in being taunted via email when someone steals your KOM, you know..

Code: [Select]
KOM STOLEN! Erick Pierce stole Elena to top of Page Mill [3787] from Chris Evans [2837] by 104 seconds
KOM STOLEN! L. Porkstacker stole Upper Barlow to Upper Umunhum [636592] from Patrick Herlihy [4237] by 14 seconds
KOM STOLEN! Brian Lucido stole Viscaino Rd (East Side) [676449] from Dirk dB [6797] by 0 seconds
KOM STOLEN! Bill Johnstone stole Las Flores Rd Climb [693982] from Patrick Herlihy [4237] by 637 seconds
KOM STOLEN! matthew kramer stole Lost Spring Trail [780474] from Patrick Herlihy [4237] by -701 seconds
KOM STOLEN! Doug Hall stole Portola Sprint [798810] from Chris Evans [2837] by 0 seconds
KOM STOLEN! Erick Pierce stole Elena to Skyline [835794] from Chris Evans [2837] by 103 seconds
KOM STOLEN! Brian Lucido stole Hillview Ave - Arastradero to Coyote Hill [957622] from Dirk dB [6797] by 0 seconds
KOM STOLEN! h. martin stole Sherwin Creek Rd Climb [974175] from bogdan marian [5445] by 272 seconds
KOM STOLEN! W. Vagnetti stole Valle Vista Switchbacks [1167689] from John Vandercook [122614] by 43 seconds