Wanted: Statshunters for Hammerhead

Comments

43 comments

  • Avatar
    Marcus Mason

    +1. Love this idea. Always have to get my phone out to see if I have 'collected' the tile.

    I personally prefer using 'squadrats.com' as the mapping IMO is clearer. Thanks.

    0
    Comment actions Permalink
  • Avatar
    Javiuchi

    Hi, Timklge is working on it. Here is the link to his application.

    https://github.com/timklge/karoo-tilehunting

    0
    Comment actions Permalink
  • Avatar
    timklge

    I tried my hand at building an extension for StatsHunters: https://github.com/timklge/karoo-tilehunting

    After you have installed it and entered your sharing code obtained from StatsHunters, it will draw the outlines of explored and unexplored tiles around your location onto the karoo's map. It uses colors similar to the StatsHunters page, so gray means unexplored, blue means explored in biggest square, green means explored in cluster, red means just explored. You get an alert if you ride into a previously unexplored tile. If you want to navigate to an unexplored tile, you can use the karoo's native routing by scrolling to it on the map and dropping a pin there with a long-press. If the tile outlines get in the way too much while riding, the karoo allows you to hide them the same way you can toggle the native heatmap.

    Both the extension and hammerhead's support for drawing stuff onto the map are very fresh, so there might be issues with it still. I currently can't do much real-world testing because the weather is continuously bad at my place.

    Currently, the app will always draw the tiles around your location in a fixed range of 3 tiles, and will not render more tiles when you scroll far away on the map, only when you ride there. I hope hammerhead will add support for extensions to do that in a future SDK update.

    If you try it, I'd appreciate any feedback here or on github :-)

    6
    Comment actions Permalink
  • Avatar
    Markus Burkhardt

    Great thing, it looks great from the description.

    As long as you can hide the tiles with a tip, that's great.

    I can't test it at the moment, but I'll give you feedback as soon as I can.

    0
    Comment actions Permalink
  • Avatar
    timklge

    Yes, Hammerhead has added a toggle to hide the extension layers when you tap the little stack icon on the map.

    0
    Comment actions Permalink
  • Avatar
    Marcus Mason

    This is simply superb. Thank you.

    0
    Comment actions Permalink
  • Avatar
    Gregory Gregory

    @timklge I don't try it yet but I will this! Please, tell me, does your ext. download information about your squares and store it in Karoo's memory and use it durning ride in offline mode? If yes, it is very, very good! Please try with Squadrats to! It seams to be better than Statshunters. More possibilities and lighter in my opininion.

    0
    Comment actions Permalink
  • Avatar
    timklge

    Yes, it downloads all your explored tiles from statshunters.com and will store it on the Karoo so you don't need an active internet connection while riding.

    I am not very familiar with squadrats.com, but I like its design. It looks a bit cleaner than statshunters, and the tile concept and everything is the same. However, the link sharing functionality of Statshunters is what enabled me to build the extension in the first place, because Statshunters allows to instantly download all tiles and activities for a given share link. I considered downloading activities directly from Strava instead of statshunters, but the Strava API doesn't encourage bulk downloads and heavily rate limits requests, so downloading tiles and activities could take a very long time and would require an intermediate web service I have to run to enforce the rate limits. It looks to me like squadrats does not have a sharing feature.

    What I could adjust is the way the extension draws the tiles onto the Karoo's map. I could add a setting to use a color palette more akin to what squadrats uses, and maybe settings that disable the separate outlines and colors of the yards / clusters (currently green tiles) and biggest square / Übersquadrat (currently blue tiles) so that it looks simpler

    0
    Comment actions Permalink
  • Avatar
    Gregory Gregory

    I did the first tests. I like the concept of the extension, but I haven't mastered it yet. It doesn't display my routes, some of them are there but only for a moment. The squares also disappear after changing the profile and I can't get back to them. I think I need to restart Karoo. After entering the extension settings, there's no way to exit it by touching the screen, so I do it with the left, lower button. How do I enter extensions during a ride? For example, to turn on/off or change the range of the displayed squares? I can't do that in K without using developer mode, where I have access to all applications.

    @Timklge thanks for your job!

    0
    Comment actions Permalink
  • Avatar
    timklge

    Thanks for testing the initial version! Currently, if you select the "show activity lines" option, it will try to draw the part of the last 50 lines of your activities that is inside the 3x3 tile cluster it draws. It will not draw lines outside of that.

    There are some issues with how I have implemented the drawing; The extension tries to be too smart about it and only tells the karoo to draw lines that it thinks aren't on screen yet, which results in lines / tiles missing if they are dropped from the map for reasons the extension doesn't know about (e. g. by changing the profile).

    I have not added a touch back button to the menu yet, you currently can only exit it with the physical back button.

    You should be able to get to the karoo main menu by long pressing the lower left button during a ride, and Hammerhead has recently added the capability to cycle between open apps by long-pressing the lower right one, so that should open the tilehunting extension menu if you had opened it before.

    I will work on the extension some more in the next weeks when I have time and let you know once I think I've stabilized it and done some testing myself. I've pushed an update to 1.0-beta6 though which should fix the issue of disappearing tile lines.

    2
    Comment actions Permalink
  • Avatar
    Carsten Weigandt

    I don't get a release code. What am I doing wrong?

    0
    Comment actions Permalink
  • Avatar
    Gregory Gregory

    @timklge thanks a lot!

    0
    Comment actions Permalink
  • Avatar
    Jim C

    After generating a share link and entering it correctly I keep getting an "Error downloading activities" Response status "404 Not Found"

    You can read how to resolve 'NoTransformationFoundException' at [docs link]

    0
    Comment actions Permalink
  • Avatar
    Jim McCorison

    I've been wanting something like this for years. Thank you for creating it.

    I've also learned more about the functionality of my Karoo just by reading these comments. For example, I never knew about the long press options.

    0
    Comment actions Permalink
  • Avatar
    timklge

    @Jim C: Did you enter the whole link? You must only enter the code part of the link (example highlighted in red in the dialog). If you selected it to share the heatmap, it should work and so far has been working fine in my tests.

    0
    Comment actions Permalink
  • Avatar
    Jim C

    Done. Thank you. I got confused with terminology. Statshunters refers to it as a share link - so I entered the whole link instead of only the code part. Sorry :)

    0
    Comment actions Permalink
  • Avatar
    timklge

    Great 👍 It's a bit clunky at the moment, but the easiest way to get access to the tile data I am aware of. I'll add a trim in the next update that deletes the link prefix if you enter the whole thing instead of just the code.

    1
    Comment actions Permalink
  • Avatar
    timklge

    After some successful test rides, I am now confident that the extension is stable enough and the main features work, so I have labeled it as version 1.0 .

    It's available for sideloading at https://github.com/timklge/karoo-tilehunting

    0
    Comment actions Permalink
  • Avatar
    Michael

    App works like a charm. Thanks a lot for your work. :)

    Would appreciate to have an option to mute the sound when entering a new tile.

    2
    Comment actions Permalink
  • Avatar
    Markus Burkhardt

    Yesterday I was finally able to test the extension. What can I say, it's really great.

    As soon as you drive into a new tile, you get a notification and you can see on the map where tiles are still missing

    I am thrilled

    I would love to see more great extensions from you

    1
    Comment actions Permalink
  • Avatar
    timklge

    Thanks! I'll add it in a future release: https://github.com/timklge/karoo-tilehunting/issues/29

    0
    Comment actions Permalink
  • Avatar
    Marcus Mason

    Continue to love and fully use this app.

    2
    Comment actions Permalink
  • Avatar
    Jaakko Valaskivi

    Wow! This is great stuff! Have been looking for this solution and here it is! ❤️

    0
    Comment actions Permalink
  • Avatar
    Jaakko Valaskivi

    First ride done! Very happy with this, thanks @timklge!

    0
    Comment actions Permalink
  • Avatar
    timklge

    Thanks! I'll do one more iteration of the extension before I consider it "feature-complete" and add statshunters achievements. I think that feature is not as popular as tilehunting, but I personally enjoy badge hunting and will try to tick off all the climbs in my area that have statshunters badges.

    So the next version will pull in your achievements from statshunters (if you enable it for your sharing link). It shows a list of achievements in the menu and also adds them to the karoo map as POIs you can navigate to. You can also initiate the pin drop from the badge list.

    0
    Comment actions Permalink
  • Avatar
    Markus Burkhardt

    timklge

    Thanks! I'll do one more iteration of the extension before I consider it "feature-complete" and add statshunters achievements. I think that feature is not as popular as tilehunting, but I personally enjoy badge hunting and will try to tick off all the climbs in my area that have statshunters badges.

    So the next version will pull in your achievements from statshunters (if you enable it for your sharing link). It shows a list of achievements in the menu and also adds them to the karoo map as POIs you can navigate to. You can also initiate the pin drop from the badge list.

     

     

    Personally, I'm happy with the extension as it is, I don't need Statshunters Achievements.

    Can you say something about the battery consumption of your extension?

    I use it and have a very high battery drain.

    1
    Comment actions Permalink
  • Avatar
    timklge

    Do you use the activity line drawing feature? That's rather unoptimized and likely has a big battery impact because it goes through all your activities and clips the path to the currently viewed tile area every time that changes, and this uses a lot of cpu even on the k3. I don't use it myself and am not sure anyone does, so I have not spent the effort to optimize it yet https://github.com/timklge/karoo-tilehunting/issues/7.

    The tile drawing should not have that big of an impact, as the extension will only redraw the tiles on the map when the tile you are currently in changes. If you have set it to the default 3 tile draw range, that should be cheap to do and there's no heavy computation involved. Could you test if you experience less drain if you disable the extension overlay in the karoo map? The toggle is right next to the heatmap toggle. In the (unpublished) upcoming version of the extension, I've also added a toggle to disable the tile drawing so that you don't have to uninstall the extension if you don't want to use it for some rides.

    On my device, I have it enabled all the time though because it's not intrusive. Together with the headwind, reminder, powerbar, routegraph and spintunes extensions I experience about 10 % battery usage per hour depending on the screen brightness, and there's not much difference compared to without any extensions.

     

    0
    Comment actions Permalink
  • Avatar
    Markus Burkhardt

    Do you use the activity line drawing feature? That's rather unoptimized and likely has a big battery impact because it goes through all your activities and clips the path to the currently viewed tile area every time that changes, and this uses a lot of cpu even on the k3. I don't use it myself and am not sure anyone does, so I have not spent the effort to optimize it yet https://github.com/timklge/karoo-tilehunting/issues/7.

    The tile drawing should not have that big of an impact, as the extension will only redraw the tiles on the map when the tile you are currently in changes. If you have set it to the default 3 tile draw range, that should be cheap to do and there's no heavy computation involved. Could you test if you experience less drain if you disable the extension overlay in the karoo map? The toggle is right next to the heatmap toggle. In the (unpublished) upcoming version of the extension, I've also added a toggle to disable the tile drawing so that you don't have to uninstall the extension if you don't want to use it for some rides.

    On my device, I have it enabled all the time though because it's not intrusive. Together with the headwind, reminder, powerbar, routegraph and spintunes extensions I experience about 10 % battery usage per hour depending on the screen brightness, and there's not much difference compared to without any extensions.

     

    I have to check this evening but I think I have not activated the ‘activity line drawing’ 

    I have use statshunters, reminder and kdouble as extensions and I have a consumption of 12-14%.

    How do I deactivate the expansion overlay in the Karoo map? Do you mean that the tiles are not displayed on the map?

    .

    0
    Comment actions Permalink
  • Avatar
    timklge

    Yes. Hammerhead added a toggle to show / hide all map data contributed by extensions.

    (Screenshot was posted by PierrickP on github)

    0
    Comment actions Permalink
  • Avatar
    Markus Burkhardt

    activity line drawing’ is active. I deactivate and hope the battery consumption will be better.

    0
    Comment actions Permalink

Please sign in to leave a comment.