[Android][1.0][2.0] Pebble Bike

NicJacksonNicJackson Posts: 78Member
edited November 2013 in Pebble Watchapp Directory
Hi,

Since the 2 way SDK has come out I have been working on a little App to replicate the functionality offered by a standard handle bar mounted cycling computer.    The app automatically detects when you are cycling and switches your pebble into cycling computer mode displaying speed, distance and average speed.  I have been testing the app on my commute to work today and it seems to be working pretty good.  The app is not intended as a replacement for Strava or Runkeeper, personally when I am training I will use Strava to record my data and Strava have indicated a desire to integrate with pebble.  I wrote this as I wanted a quick way to show my speed and distance when commuting or just cycling for fun and to show speed as a stopgap until Strava implements this functionality.

When not cycling the battery drain is next to nothing so it is possible to leave this app running 24/7 without any negative affect to the battery.

Over the last couple of days I have a pretty good proof of concept running the following work is complete:

1.  Android app recognises you are cycling and switches the pebble to the Cycling computer watch face.
2.  GPS enabled on the phone and data sent to custom pebble app.
3.  Android app recognises you are no longer cycling and shuts down custom pebble app returning to time.
4.  GPS automatically disable on the phone saving battery when not cycling.
5.  Tested on Android 4.1

ToDo:
1.  Finalise styling to custom watch app.
2.  Add settings to android app to manually disable automatic detection (possible currently by closing app).
3.  Add option to disable app when run keeper is active.
4. Implement compatibility for Android 2.2+

Wish list:
1.  Route planning and turn by turn on the pebble powered by google maps
2.  Compatibility with bluetooth heart rate monitors.
3.  Automatically send data to Fitbit or Jawbone Up for more accurate activity data.
4.  Possibly integration with Strava / Runkeeper

Give me a couple of days more testing and I should have something a little stable for people to try out and I will post the watch face and android app for you all.
Post edited by NicJackson on
·
«13456711

Comments

  • ImanuelVottelerImanuelVotteler Posts: 6Member
    This sounds great! Might even cause me to get my bike out of the back of the garage... :)
    ·
  • RideTiRideTi Posts: 222Member Regular
    edited May 2013
    Great! Can you make an option within your automatic settings to launch the display when the app is opened? Then android users could launch it with tasker via one of the tasker-enabled watch apps, or when tasker recognizes a cycling app has been launched.

    So you're using the sports display now, but you're writing a watchapp? (Based on "switches the to the Cycling computer watch face")

    Can't wait to see it.
    Post edited by RideTi on
                                                                                                                             
    Android 4.3
    ·
  • JonasHeikkilaJonasHeikkila Posts: 22Member Pebbler
    Sounds intriguing, I ride my bike daily and have lost my bike computer so I will gladly try this :)
    ·
  • Keule01Keule01 Posts: 4Member
    Very nice!
    ·
  • ReinhardMitschangReinhardMitschang Posts: 461Member Regular
    will there be an option for Android users, to disable the automatic cycling-recognition and only start / stop manually?
    ·
  • NicJacksonNicJackson Posts: 78Member
    Yes, absolutely will be building this in.
    ·
  • mmacemmace Posts: 10Member
    I'd love this, 2 questions though
    1) could I still use runkeeper on the phone at the same time? (I keep all my runs & cycles logged on there)
    2) could you make it so it doesn't turn GPS off when you're finished? (I always have location reporting on my phone)
    ·
  • KilianGulichKilianGulich Posts: 1Member
    I want this in my life. Could you perhaps include an altitude curve? The turn by turn function you are describing has long been something I'd like to have/develop.
    ·
  • Keule01Keule01 Posts: 4Member
    I want this in my life. Could you perhaps include an altitude curve? The turn by turn function you are describing has long been something I'd like to have/develop.
    me to!
    ·
  • NicJacksonNicJackson Posts: 78Member
    @mmace - yes and yes
    ·
  • mark reedmark reed Posts: 269Member Regular
    sounds ace. quick question - how does it detect you're cycling? is it by speed/movement or something else, or via a sensor on a wheel - like other bike computers? just wondered, no big deal.
    www.markspebblefaces.com
    ·
  • AnaAlipitAnaAlipit Posts: 1Member Pebbler
    Just got my Pebble today and so excited for this.  Go Nic!!!
    ·
  • NicJacksonNicJackson Posts: 78Member
    It works with GPS to detect speed so no extras other than a phone and a pebble.

    Tested again on my way home and I have a few bugs to iron out but a beta will be here for the weekend.
    ·
  • NicJacksonNicJackson Posts: 78Member
    @kilian good idea, could use the buttons on the watch to switch display from speed settings to altitude, time etc same as Garmin does.
    ·
  • NicJacksonNicJackson Posts: 78Member
    You might have to wait a few more days for the iOS version as I would have to push it to the app store but if your willing to beta test there may be a way.
    ·
  • bn326160bn326160 Posts: 21Member
    What is wrong with run keeper? It can keep track of your cycling workouts.
    ·
  • KelvinKelvin Posts: 20Member
    edited May 2013
    Very keen to do any beta testing on a galaxy s3

    Post edited by Kelvin on
    ·
  • NicJacksonNicJackson Posts: 78Member
    Not sure if the run keeper app has speed or if it is still displaying pace.  The app i am building is not designed as a replacement to runkeeper but a generic cycling computer replacement.

    I might have an hour or two tonight, I forgot to check in my code on my work computer so I cant work on my Android app so i might give a simple iOS app a go with the SDK.
    ·
  • NicJacksonNicJackson Posts: 78Member
    I can upload the PBW to google drive link below, i have just pushed a new fix as when i tried to run on my phone it bailed badly.

    PBW Link:

    This now runs on my phone, switched to the watch face and sends the speed but the GPS data might be a bit dodgy until i ride to work tomorrow i wont know.

    Nic
    ·
  • NicJacksonNicJackson Posts: 78Member
    edited May 2013
    Just jumped through hells hoops to sort out my distribution cert. Latest added to git seems not to build with Mac build server tho.


    Forewarning there is lots to do with this app but for a nights work...
    Post edited by NicJackson on
    ·
  • NicJacksonNicJackson Posts: 78Member
    Watch face is a bit rubbish at the moment will sort that tonight.
    ·
  • JonasHeikkilaJonasHeikkila Posts: 22Member Pebbler
    Just installed it, will try it when going home in 5 hours.
    ·
  • MM Posts: 13Member Pebbler
    edited May 2013
    can you share an android preview too?
    no hoop jumping required for that.
    i'm quite excited about your project.

    some weeks ago i was thinking about acquiring a bike computer, just for the current speed, as that's something that i can't get yet. (i use endomondo but am using runkeeper too, just to send data to pebble...)
    Post edited by M on
    ·
  • NicJacksonNicJackson Posts: 78Member
    I tested myself on the way to work, bit of latency when you stop moving, not sure if this is GPS or pebble buffer. I will finish the watch face tonight and add avg speed/ distance. Android has a few bugs, give me till sat and I will share. Nic
    ·
  • FrederikFrederik Posts: 19Member
    If you're going to add Bluetooth HR support, could you then add Bluetooth Speed and Cadence support aswell?
    ·
  • julienjulien Posts: 94Member
    Hey, is there someone able to deal with notification from google maps in france (e.g. get vibration of the twist)?
    can't get it working here (and already search in the forum) -
    any help would be great thanks
    (non jb iphone 5)

    ·
  • NicJacksonNicJackson Posts: 78Member
    Yes, I have not implemented the average speed or distance.  The watch face looks like cr@p at the moment, I have only coded this functionally, going to do this tonight so I will push an update which has all these features for you.  I actually built the watch face on the plane home on Monday and had no way of testing.  As it turns out I need to learn a little more about Fonts and the pebble :)

    I have not tested this and I will on my way home but I am 99% positive that you can use this app with Strava, because they both use the GPS there should be no additional drain on the battery.

    I am also planning to implement an additional page on the watch face which would show time,  and a couple of other things (TBD) which could be switched from a button on the pebble.
    ·
«13456711
Sign In or Register to comment.