Feature request: using pebble watch as alarming device and/or sleep tracker

3,229 views
Skip to first unread message

Maxim Ignatenko

unread,
Sep 6, 2013, 6:50:41 AM9/6/13
to sleep-as...@googlegroups.com
Hai,

I found that using pebble as vibrating alarming device is very convenient and I would like Sleep As Android to use it instead of sound alarm.
Also it has accelerometer, so it can be used instead of a phone to detect sleep phases, but I'm not sure how fast it would drain it's battery.

Petr Nalevka

unread,
Sep 6, 2013, 4:30:43 PM9/6/13
to sleep-as...@googlegroups.com
Hello Maxim, 

we are looking into this, but did not yet find a way how to access the accelerometer - this is marked as coming soon in the doc.

Regarding vibrations alarm in pebble. This may be possible with https://play.google.com/store/apps/details?id=com.alk.k9&hl=en and some automation app such as Tasker or Reactor. I did not try but if you would be interested to go through this it would be great if you would share your experience.

Please check out these resources:

Thank you very much.

Best regards,

Petr

 


--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,

Petr

Maxim Ignatenko

unread,
Sep 6, 2013, 5:05:50 PM9/6/13
to sleep-as...@googlegroups.com, pe...@nalevka.com
Is intent "com.urbandroid.sleep.ACTION_LULLABY_STOP_PLAYBACK" only outbound or inbound too? E.g. will Sleep As Android stop making any sound if I broadcast it?
Another problem is that default notifications in Pebble are pretty poor (or I just can't find documentation explaining any additional features): you can't say how long it should vibrate, what should it send back when buttons are pressed etc., but I'm planning to write application specifically for notifications which should fix that.

Petr Nalevka

unread,
Sep 6, 2013, 5:14:13 PM9/6/13
to sleep-as...@googlegroups.com
Hello Maxim,

sending com.urbandroid.sleep.ACTION_LULLABY_STOP_PLAYBACK will stop the lullaby playback - is it is inbound.


Thank you very much.

Best regards,

Petr

 
On Fri, Sep 6, 2013 at 11:05 PM, Maxim Ignatenko <gelra...@gmail.com> wrote:
com.urbandroid.sleep.ACTION_LULLABY_STOP_PLAYBACK




--
Best regards,

Petr

Andres Paz

unread,
Sep 6, 2013, 5:52:44 PM9/6/13
to sleep-as...@googlegroups.com, pe...@nalevka.com
If you could write a native Pebble app that would be awesome. Of course, it would be perfect if/when Pebble allows developers access to the sensors, but I think it would have to be directly integrated with SaA.

Anyways, I set up some tasks people could use with Tasker for now, though they're not too pretty. This way actually spams your notifications, so if you don't turn it off right away your watch will be full of alarm notifications.

Task Name: Start Vibrate
Actions: 
  1. Pebble Notifier
    • Title - "Wake up!"
    • Body - "%TIME"
  2. Wait - 1 second
  3. Go to - Action 1
---
Task Name: Stop Vibrate
Actions:
  1. Stop 'Start Vibrate' task.
---

And then I set up profiles for a few intents to start/stop the alarm.

New profile
Context: Event > System > Intent Received
Put the intent to watch for in the Action field.
Link the event to either task depending on what you want. I set them up: 
com.urbandroid.sleep.alarmclock.ALARM_ALERT_START - Start Vibrate
com.urbandroid.sleep.alarmclock.ALARM_SNOOZE_CLICKED_ACTION - Stop Vibrate
com.urbandroid.sleep.alarmclock.ALARM_ALERT_DISMISS - Stop Vibrate

I suppose you could also set up a time to bed notification through Tasker:
com.urbandroid.sleep.alarmclock.TIME_TO_BED_ALARM_ALERT - Pebble Notifier "It's time for bed!"

And you could probably also set up PebbleTasker to start sleep tracking for you, sending the intent 'com.urbandroid.sleep.alarmclock.START_SLEEP_TRACK' though I have no idea how sending intents work in tasker, or how PebbleTasker works.

Maxim Ignatenko

unread,
Sep 8, 2013, 10:01:21 AM9/8/13
to sleep-as...@googlegroups.com, pe...@nalevka.com
Okay, is there a person with both Pebble and access to SaA's source code? I'm almost done with basic functionality in my pebble notifications app and this will make testing much more convenient.

Petr Nalevka

unread,
Oct 16, 2013, 11:22:52 AM10/16/13
to sleep-as...@googlegroups.com
Hello Maxim,

sorry for the late response. Do you have any progress on this? I can help on the SaA side. But don't have a Pebble.

Maxim Ignatenko

unread,
Oct 16, 2013, 1:50:31 PM10/16/13
to sleep-as...@googlegroups.com
Hello,

I have Pebble app that implements proper notifications (with a bit
crappy UI, but it works) and just waiting for permission from my
employer to publish it.
> You received this message because you are subscribed to a topic in the
> Google Groups "Sleep as Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sleep-as-an-droid/qDSjGCkj4u8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Maxim

Petr Nalevka

unread,
Oct 16, 2013, 3:32:13 PM10/16/13
to sleep-as...@googlegroups.com
Thanks a lot for the update.

Best regards,

Petr

 

Maxim Ignatenko

unread,
Oct 17, 2013, 12:23:06 PM10/17/13
to sleep-as-an-droid
Looks like it's not going to happen, sorry :(

Remy Bach

unread,
Oct 30, 2013, 7:29:40 AM10/30/13
to sleep-as...@googlegroups.com, pe...@nalevka.com
Is there any news on the activity tracking integration yet? I've been tracking my sleep using your app for ages and have just ordered a pebble so would like to continue doing so using the watch if possible.

Thanks,
// Rémy


On Friday, 6 September 2013 21:30:43 UTC+1, Petr Nalevka wrote:

Andres Paz

unread,
Nov 6, 2013, 3:42:05 PM11/6/13
to sleep-as...@googlegroups.com, pe...@nalevka.com
The new Pebble SDK is out, allowing developers to access the Pebble accelerometer. This would be awesome in Sleep as Android, but the developer doesn't have one to test/develop with.

Petr, 
I would be up for testing beta builds if you wanted to try to put something together, but I understand if you don't have the time for it because it would be extremely difficult without using the device.

Daniel Bø Golan

unread,
Nov 14, 2013, 8:27:37 AM11/14/13
to sleep-as...@googlegroups.com, pe...@nalevka.com
Hi,

I would also be up for testing. Ive done som Java coding but not too much. And yes i have pebble and would gladly pay extra for this feature in the app !

Petr Nalevka

unread,
Nov 14, 2013, 9:30:57 AM11/14/13
to sleep-as...@googlegroups.com
Thank you...

Andres Paz

unread,
Nov 18, 2013, 3:00:58 AM11/18/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com
No rush on this if you're busy or still don't feel comfortable without actually having a Pebble, but there's a watch app that monitors movement using a pebble and the source is available if you wanted to play with it: http://forums.getpebble.com/discussion/8616/watchface-sdk2-morpheuz-sleep-monitor-app

Also, I'd still be up for testing if you do!

Martin Stava

unread,
Nov 18, 2013, 2:03:08 PM11/18/13
to sleep-as...@googlegroups.com, Petr Nalevka, Petr Nalevka
Hi,

Thanks for the tip. We'll hopefully start working on the integration soon.

Cheers,
Martin

Daniel Bø Golan

unread,
Nov 25, 2013, 3:00:26 AM11/25/13
to sleep-as...@googlegroups.com
Hi,
Any update here ? Hope you have a possibility to support this feature !


2013/11/18 Martin Stava <mar...@stava.me>
You received this message because you are subscribed to a topic in the Google Groups "Sleep as Android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sleep-as-an-droid/qDSjGCkj4u8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sleep-as-an-dr...@googlegroups.com.

Petr Nalevka

unread,
Nov 25, 2013, 11:57:45 AM11/25/13
to sleep-as...@googlegroups.com
Hello Daniel, 

we are working on this currently. Please stay tuned.

Thank you very much.

Best regards,

Petr

 
Best regards,

Petr

Remy Bach

unread,
Nov 26, 2013, 4:16:29 AM11/26/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com

Daniel Bø Golan

unread,
Nov 28, 2013, 7:58:10 AM11/28/13
to sleep-as...@googlegroups.com
Yay ! Cant wait ! :)


2013/11/26 Remy Bach <remy....@googlemail.com>

Daniel Bø Golan

unread,
Dec 2, 2013, 7:53:09 AM12/2/13
to sleep-as...@googlegroups.com
Hi,
Getting anywhere on this feature ? Any ETA ? 

:)


2013/11/28 Daniel Bø Golan <daniel...@gmail.com>

Petr Nalevka

unread,
Dec 4, 2013, 8:02:26 PM12/4/13
to sleep-as...@googlegroups.com
Hello guys, 

thank you very much for your patience. We have prepared an experimental version of Sleep as Android <-> Pebble integration. Please note that this version is unstable and preliminary and intended only for adventurers. 

Prior use, you need to:
1. Install the experimental Sleep as Android APK from https://sites.google.com/site/sleepasandroid/beta-release
2. Install the Pebble 2.0 BETA firmware on your Pebble watch available at https://developer.getpebble.com/2/getting-started/#downloadfw NOTE: there are two different versions based on your watch serial number
3. Sleep as Android Pebble app needs to be installed on the 2.0 firmware from Sleep as Android->settings->misc

Features:
-Sleep tracking through Pebble accelerometer - Sleep tracking on Android automatically starts the Sleep as Android Pebble app and movement data gets transferred from Pebble over bluetooth  
-Sleep as Android alarm is performed on Pebble using vibrations
-Ability to snooze or dismiss the alarm from Pebble (top button = snooze, bottom button = dismiss)
-Pebble app shows current time and alarm time during tracking

We are looking forward to your feedback. 

Andres Paz

unread,
Dec 4, 2013, 11:18:57 PM12/4/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com
Sweet! It seems to be working great, though I've barely played with it.

I've noticed two things so far:
 - Notification Center 'closes' the pebble app, which means the smart alarm won't fire. I'll have to set a quiet time on Notification Center before my alarm and re-open the watch app somehow before the smart period. I don't think anything can be done about this without an actual Pebble update.
- Having dismiss on the watch app isn't very useful if captcha is enabled, it will just bring up the captcha screen. Perhaps it can be hidden if there is a captcha set?

If I notice anything else I'll post here.

Maxim Ignatenko

unread,
Dec 5, 2013, 5:11:46 AM12/5/13
to sleep-as-an-droid
On 5 December 2013 01:02, Petr Nalevka <pe...@nalevka.com> wrote:
Hello guys, 

thank you very much for your patience. We have prepared an experimental version of Sleep as Android <-> Pebble integration. Please note that this version is unstable and preliminary and intended only for adventurers. 

Prior use, you need to:
1. Install the experimental Sleep as Android APK from https://sites.google.com/site/sleepasandroid/beta-release
2. Install the Pebble 2.0 BETA firmware on your Pebble watch available at https://developer.getpebble.com/2/getting-started/#downloadfw NOTE: there are two different versions based on your watch serial number
3. Sleep as Android Pebble app needs to be installed on the 2.0 firmware from Sleep as Android->settings->misc

Can you publish source code of Pebble app so functionality needed by Sleep as Android can be integrated into watchface (and maybe turned on and off by message from Sleep as Android)?



--
Best regards,
Maxim

matejdro

unread,
Dec 5, 2013, 6:41:47 AM12/5/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com
Is there any indication I'm doing it correctly?

I enter app on Pebble, but nothing on the phone shows that I'm actually being tracked. Notification or something would be useful.

Alarms do appear to work however (Pebble starts vibrating).

Dne četrtek, 05. december 2013 05:18:57 UTC+1 je oseba Andres Paz napisala:

Petr Nalevka

unread,
Dec 5, 2013, 7:10:48 AM12/5/13
to Andres Paz, sleep-as...@googlegroups.com
Hello Andres, 

thanks for testing please see below.

 - Notification Center 'closes' the pebble app, which means the smart alarm won't fire. I'll have to set a quiet time on Notification Center before my alarm and re-open the watch app somehow before the smart period. I don't think anything can be done about this without an actual Pebble update.

In fact it would be great to disable notifications for the sleep tracking period, but this is to my knowledge not yet supported in the SDK. So the flow unfortunately is - disable notifications on Pebble -> start sleep tracking -> re-enable in the morning. 

According to my own test the notification should not stay on the screen. It shows for few seconds and than Pebble returns to the tracking app?
 
- Having dismiss on the watch app isn't very useful if captcha is enabled, it will just bring up the captcha screen. Perhaps it can be hidden if there is a captcha set?

In fact dismiss with CAPTCHA is by design. We had to do special coding to achieve that. I think this is an advantage, as every CAPTCHA turns out as a "out of the bed" CAPTCHA. If you like to stay in bed you have snooze which may be further limited. You can always disable the CAPCTHA for your alarm to get a simple dismiss on your watch. We may add some CAPTCHA features directly into the Pebble app, but I currently IMHO this isn't really necessary? 

Petr Nalevka

unread,
Dec 5, 2013, 7:17:46 AM12/5/13
to sleep-as...@googlegroups.com

Can you publish source code of Pebble app so functionality needed by Sleep as Android can be integrated into watchface (and maybe turned on and off by message from Sleep as Android)?

I'm not sure if I understand this. The SaA app for Pebble serves as a watchface too. SaA is turning the app on when tracking starts and turning it off after tracking finishes.

Petr Nalevka

unread,
Dec 5, 2013, 7:26:50 AM12/5/13
to matejdro, sleep-as...@googlegroups.com
Is there any indication I'm doing it correctly?

I enter app on Pebble, but nothing on the phone shows that I'm actually being tracked. Notification or something would be useful.

Alarms do appear to work however (Pebble starts vibrating).

The flow is designed other way around. You start sleep tracking which starts the app on Pebble. If you move your hand you should start seeing the movement graph appearing ~ one value each 10 seconds. 

You can also start the app on Pebble before, but in order to start tracking you need to start sleep tracking in SaA.

Alarms should start the Pebble app regardless of tracking and start the vibrations.

Daniel Bø Golan

unread,
Dec 5, 2013, 7:38:08 AM12/5/13
to sleep-as...@googlegroups.com
Hi,
Great that you support it ! Tried it now and seems to work just as expected. Does the phone also use the accerometer when pebble does ? And how is pebbles batterylife when sleep tracking ? 

This feature is for me the best feature a sleep tracker could ever have !!


2013/12/5 Petr Nalevka <pe...@nalevka.com>
--

Petr Nalevka

unread,
Dec 5, 2013, 7:54:21 AM12/5/13
to sleep-as...@googlegroups.com
Hello Daniel,

the phone's accelerometer is not used when you have a pebble connected at tracking start. If for some reason the connection is lost during tracking there is currently no fallback unless the Pebble app in Android reestablishes the connection. We expect you put the phone out of your reach but within the Bluetooth range. So you can keep some radios on according to your preferences - for example if you need to be online for emergency calls etc...

--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,

Petr

Robert Sherry

unread,
Dec 5, 2013, 3:57:41 PM12/5/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com
SDK 2 is only required for accelerometer usage, correct?
Could you add, at least, the ability to dismiss on SDK 1.
Message has been deleted

Nathan G

unread,
Dec 6, 2013, 1:23:42 AM12/6/13
to sleep-as...@googlegroups.com
Thank you, developers.

I have been searching for a new sleep tracking app and after learning of pebble integration I had to purchase your brilliant app.

Daniel Bø Golan

unread,
Dec 6, 2013, 3:25:22 AM12/6/13
to sleep-as...@googlegroups.com
Things worked great the first night. MUCH more reliable than accelerometer on the phone (maybe too sensitive). One thing i noticed is that the watchapp crashed after about 5 minutes when i had Canvas and Notification center installed on the Watch. When i removed those it stopped to crash. 



2013/12/6 Nathan G <nat...@gmail.com>
Thank you, developers.

I have been searching for a new sleep tracking app and after learning of pebble integration I had to purchase your brilliant app.

--

Daniel Bø Golan

unread,
Dec 6, 2013, 3:26:37 AM12/6/13
to sleep-as...@googlegroups.com
Btw : Battery on pebble dropped from 50% to 20% (NOTE : Pebble only informes battery percent in 10's, so 50 % is from 50-59%)


2013/12/6 Daniel Bø Golan <daniel...@gmail.com>

Martin Stava

unread,
Dec 6, 2013, 3:59:44 AM12/6/13
to sleep-as...@googlegroups.com
Hi,

These crashes are due to bugs in SDK2 beta. We hope they'll fix it
before full release. There is not much we can do about them I'm
afraid..

Cheers,
Martin
> You received this message because you are subscribed to the Google Groups
> "Sleep as Android" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Martin Stava

unread,
Dec 6, 2013, 4:00:53 AM12/6/13
to sleep-as...@googlegroups.com
Hi,

A stupid question, but where do you see the battery usage? I'm unable
to find it on my device? As I understood, the battery technology used
actually prevents any accurate reporting till you get close to empty
battery.

Cheers,
Martin
> You received this message because you are subscribed to the Google Groups
> "Sleep as Android" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Martin Stava

unread,
Dec 6, 2013, 4:01:36 AM12/6/13
to Robert Sherry, sleep-as...@googlegroups.com, Petr Nalevka, Petr Nalevka
Hi,

That's right. But since all watches are going to get upgrate to SDK2, what would be the advantage of supporting SDK1?

Cheers,
 Martin

Daniel Bø Golan

unread,
Dec 6, 2013, 4:08:07 AM12/6/13
to sleep-as...@googlegroups.com
@Martin : Ok,  ill have to live with it untill Pebble fixes it. Shouldnt be to long. 

I use Canvas For Pebbe (
https://play.google.com/store/apps/details?id=com.pennas.pebblecanvas) which has a beta realease that supports SDK 2.0. As far as i know i havent seen any accurate battery percentage in pebble. Maybe under 10 ? (havent got that low yet, i charge around 20-30).

Canvas For Pebble Beta : 
https://plus.google.com/communities/100356529278043572431 , its a private group so youll have to request access :)


2013/12/6 Martin Stava <mar...@stava.me>

matejdro

unread,
Dec 6, 2013, 4:53:42 AM12/6/13
to sleep-as...@googlegroups.com, Robert Sherry, Petr Nalevka, Petr Nalevka
Personally I don't think it is worth messing with 1.X. Sure you would get higher compatibility temporarily, but major feature (sleep tracking) won't be there.

One thing that could make it more reliable is that if you don't get any data from the watch in let's say 20 seconds, you try to start tracking app again, since other app could open over it.

Dne petek, 06. december 2013 10:01:36 UTC+1 je oseba Martin Stava napisala:

Daniel Bø Golan

unread,
Dec 6, 2013, 6:09:18 AM12/6/13
to sleep-as...@googlegroups.com
Agree,  i dont see any real reason for making a 1.x app.  Also i agree on the app restarting feature. 


2013/12/6 matejdro <mate...@gmail.com>

Martin Stava

unread,
Dec 6, 2013, 7:34:38 AM12/6/13
to sleep-as...@googlegroups.com, Robert Sherry, Petr Nalevka, Petr Nalevka
Hi,

The restarting is there. But sometimes Pebble gets to such a state, that restart is not possible.

Cheers,
 Martin

matejdro

unread,
Dec 6, 2013, 8:11:12 AM12/6/13
to sleep-as...@googlegroups.com, Robert Sherry, Petr Nalevka, Petr Nalevka
Are you sure? I did simple test:

1. Start sleep tracking on phone (app opens on Pebble)
2. Close down app on Pebble (to simulate accidental closing).

Then I left it running for few minutes and app did not reopen itself.

Dne petek, 06. december 2013 13:34:38 UTC+1 je oseba Martin Stava napisala:

Daniel Bø Golan

unread,
Dec 6, 2013, 8:58:29 AM12/6/13
to sleep-as...@googlegroups.com
"The restarting is there. But sometimes Pebble gets to such a state, that restart is not possible."
I assume this is a bug with the Pebble firmware ?


2013/12/6 matejdro <mate...@gmail.com>

Petr Nalevka

unread,
Dec 6, 2013, 10:17:29 AM12/6/13
to matejdro, sleep-as...@googlegroups.com, Robert Sherry, Martin Stava
Restarting is scheduled after first data arrive from Pebble. So the text case needs to be as follows:
1. start tracking - the Pebble app starts
2. wait for first data to arrive to sleep tracing
3. close the Pebble app
4. Pebble app shall re-appear after ~1 minute
--
Best regards,

Petr

matejdro

unread,
Dec 6, 2013, 10:35:48 AM12/6/13
to sleep-as...@googlegroups.com, matejdro, Robert Sherry, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
OK it appears to work that way. So we are fine as long as Peble firmware decides to stay connected. Thanks.

Dne petek, 06. december 2013 16:17:29 UTC+1 je oseba Petr Nalevka napisala:

Robert Sherry

unread,
Dec 6, 2013, 11:12:52 AM12/6/13
to sleep-as...@googlegroups.com, Robert Sherry, Petr Nalevka, Petr Nalevka
Well, it's currently buggy as all hell. However Android Versions <4 arn't supported in SDK2, and I think lower iOS versions too, and that is the main reason. Not necessarily supporting, merely a version for SDK 1, as it shouldn't really need updated.

matejdro

unread,
Dec 7, 2013, 5:11:47 AM12/7/13
to sleep-as...@googlegroups.com
This night I disabled all apps that could interfere and then rebooted both phone and watch for extra stability. Worked all night, including snoozing from Pebble. Thanks!

James Cooke

unread,
Dec 7, 2013, 9:22:38 AM12/7/13
to sleep-as...@googlegroups.com


I'm a new user but wanted to try this out for the pebble integration. Not a great first try. My pebble ran out of battery (it wasn't showing a low battery warning before starting) then my phone ran out of battery - it was on a wireless charger but I must have moved it off the charging point.

However the sleep graph looked odd - it showed me in light sleep for 5 hours before the battery gave out. What's the best way to provide logging if this keeps happening? Logcat or is there anything else that would be helpful?

Daniel Bø Golan

unread,
Dec 7, 2013, 10:37:30 AM12/7/13
to sleep-as...@googlegroups.com

Hi! I noticed that Pebble uses roughly 20-50% hard to tell Pebble only notifies in 10% interval. 

I feel the sleepgraphs are very accurate maybe too much?

On Dec 7, 2013 3:22 PM, "James Cooke" <james....@gmail.com> wrote:


I'm a new user but wanted to try this out for the pebble integration. Not a great first try. My pebble ran out of battery (it wasn't showing a low battery warning before starting) then my phone ran out of battery - it was on a wireless charger but I must have moved it off the charging point.

However the sleep graph looked odd - it showed me in light sleep for 5 hours before the battery gave out. What's the best way to provide logging if this keeps happening? Logcat or is there anything else that would be helpful?

--

Razvan Rosca

unread,
Dec 7, 2013, 5:31:05 PM12/7/13
to sleep-as...@googlegroups.com, daniel...@gmail.com
Hey,

I'm looking into this with a huge interest! I was thinking to buy a Fitbit but this thread looks very promising.

As a Pebble wanna-bee (I don't own one, yet) here's my first question: how is this affecting the battery usage? If it's bad, is there any hope to "get it better"?

Also I've noticed that the sync is done once at 10 minutes. Isn't that kinda...often?

Thanks!

matejdro

unread,
Dec 7, 2013, 5:35:11 PM12/7/13
to sleep-as...@googlegroups.com, daniel...@gmail.com
For me battery impact was huge (due to one night of sleep tracking it reduced to 24h), but others are reporting better so it might be my fault (still need to test it more).

If 10 minutes is too much for you, actual interval is 10 seconds. I'm not sleep as android developer, but I think main reason for this is that if something goes wrong, you only loose last 10 seconds. Also I'm not sure if Pebble has enough memory to hold 10 minutes of accelerometer data.

Dne sobota, 07. december 2013 23:31:05 UTC+1 je oseba Razvan Rosca napisala:

Daniel Bø Golan

unread,
Dec 8, 2013, 4:15:39 AM12/8/13
to sleep-as...@googlegroups.com

The battery impact is big! I think charging daily is the solution if you want to use Pebble as a sleep tracker.  I think the fitbit is sampling less often and in that way saving a lot of battery.  I also believe that when sdk 2.0 is released as a final version things will improve a lot!

Developers: Is it possible to reduce accuracy and save some battery?

--

James Cooke

unread,
Dec 9, 2013, 3:36:30 AM12/9/13
to sleep-as...@googlegroups.com
Just a quick update - I have managed to get this now to successfully track two nights sleep but it does have a few dramatic effect on battery life. I think I can probably only track 2 nights before needing to recharge. 

Battery life needs work I think before I could say I'm totally happy but its a great beta.

I'm not sure how you are sending data but you could try reducing the frequency or perhaps use the local storage to save the data and batch transfer it as I imagine the bluetooth link is quite power heavy. Obviously there is a balance to be made as if you store too much I guess it could be lost in a crash.

Petr Nalevka

unread,
Dec 9, 2013, 7:47:05 AM12/9/13
to sleep-as...@googlegroups.com
Hello Daniel,

as it is not easy to get battery info I'm trying to track consequent nights without charging. Now I have two nights without charging using the Pebble during the day also without notification and still don't see a low battery warning.

Thank you very much.

Best regards,

Petr

 

--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,

Petr

Petr Nalevka

unread,
Dec 9, 2013, 7:51:56 AM12/9/13
to sleep-as...@googlegroups.com
Hello James, 

thanks for the feedback. We will have a look at techniques how to improve battery life.

Thank you very much.

Best regards,

Petr

 

--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,

Petr

James Cooke

unread,
Dec 9, 2013, 8:19:22 AM12/9/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com
Might I suggest you contact Pebble and ask them for some advise? They must have a dev version where they can physically monitor power consumption so perhaps they could give some advise as to what techniques are the best on the battery? 

Petr Nalevka

unread,
Dec 9, 2013, 8:48:54 AM12/9/13
to James Cooke, sleep-as...@googlegroups.com
Hello James, 

we are in contact with Pebble and consulting with them.
--
Best regards,

Petr

matejdro

unread,
Dec 10, 2013, 2:15:19 PM12/10/13
to sleep-as...@googlegroups.com, James Cooke, petr.n...@gmail.com, pe...@nalevka.com
Last night I got empty graph for no apparent reason. (image: http://imgur.com/3AuZ1TL)

Usually when this happens, Pebble either crashed or disconnected (and stayed like that in the morning).

But last night everything seemed fine, it even vibrated in the morning and I snoozed it, meaning connection was still fine.

Any ideas?

Dne ponedeljek, 09. december 2013 14:48:54 UTC+1 je oseba Petr Nalevka napisala:

Daniel Bø Golan

unread,
Dec 10, 2013, 3:33:13 PM12/10/13
to sleep-as...@googlegroups.com

well you at least got enough deep sleep :-P

Haven't happened to me yet..

You received this message because you are subscribed to a topic in the Google Groups "Sleep as Android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sleep-as-an-droid/qDSjGCkj4u8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sleep-as-an-dr...@googlegroups.com.

Miguel Amador

unread,
Dec 14, 2013, 2:02:26 PM12/14/13
to sleep-as...@googlegroups.com
Installed in Galaxy Nexus KitKat 4.4.2 CM11 and no data is coming from the pebble. Using Beta3 of Pebble 2 Firmware and App.

Everything seams ok, only no info for the acceleration. 

Regards

Petr Nalevka

unread,
Dec 14, 2013, 3:04:40 PM12/14/13
to sleep-as...@googlegroups.com
Hello Miguel, 

it seems there is a bug in the BETA3 with the accelerometr API. Pebble is working on it now. 

Petr Nalevka

unread,
Dec 14, 2013, 3:05:42 PM12/14/13
to matejdro, sleep-as...@googlegroups.com, James Cooke
Hello,

thank you for reporting this issue. Did you test with BETA3? It seem there is an accelerometer problem which Pebble is working on now. 
--
Best regards,

Petr

Nathan G

unread,
Dec 15, 2013, 5:13:11 PM12/15/13
to sleep-as...@googlegroups.com, matejdro, James Cooke, petr.n...@gmail.com, pe...@nalevka.com
I was not able to get any data using BETA3. Reverting to BETA2 fixed the problem.

James Cooke

unread,
Dec 16, 2013, 1:29:28 AM12/16/13
to sleep-as...@googlegroups.com
Do you have a download link for beta 2, I can't seem to find it anywhere.

Christopher Daley

unread,
Dec 16, 2013, 4:00:04 PM12/16/13
to sleep-as...@googlegroups.com


On Monday, December 16, 2013 1:29:28 AM UTC-5, James Cooke wrote:
Do you have a download link for beta 2, I can't seem to find it anywhere.

Just change the BETA3- to BETA2- in the link:

If your Pebble serial number starts with a number,  https://developer.getpebble.com/2/download/Pebble-2.0-BETA2-ev2_4.pbz

If your Pebble serial number starts with the letter ‘Q’,  https://developer.getpebble.com/2/download/Pebble-2.0-BETA2-v1_5.pbz 

Petr Nalevka

unread,
Dec 16, 2013, 6:54:39 PM12/16/13
to sleep-as...@googlegroups.com, Martin Stava
Hello guys,

please note that we have just release a new version of Sleep as Android with a new Pebble app included. It should support BETA3. If you did already use the previous app with BETA3 you may need a firmware reset. 

You can download the APK here

Thank you very much for all your help with testing and support. 

Best regards,

Petr

 


--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,

Petr

James Cooke

unread,
Dec 17, 2013, 4:29:06 AM12/17/13
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
The link in the app to install the pebble app seems to have disappeared for me

matejdro

unread,
Dec 17, 2013, 5:48:11 AM12/17/13
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Is automated start of Pebble app when you start tracking working?

Dne torek, 17. december 2013 10:29:06 UTC+1 je oseba James Cooke napisala:

James Cooke

unread,
Dec 17, 2013, 5:55:49 AM12/17/13
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
No but I removed the existing pebble app in anticipation of having to re-install it (I was going to try that before a factory reset). I neither get a prompt to install the app nor is there a link to install the app as there was in the last version.

James Cooke

unread,
Dec 17, 2013, 6:03:16 AM12/17/13
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
I found the app, it has been moved to Settings -> Sleep tracking rather than Settings -> Misc. Tracking is working on the pebble beta 3 too.

Miguel Amador

unread,
Dec 17, 2013, 10:37:33 AM12/17/13
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Yes tracking working. Is the tracking adapted for being measured in the wrist, rather than in the bed? I suppose the activity will be higher, and it will influence an accurate categorisation of the deep sleep state.

Some way of dealing with notification would be great, in order to not lose the app when notifications arise to the phone, and avoid the everyday manual setup. Maybe suggesting this to the pebble team can allow it to be incorporated in next sdks somehow. 

Great work.

Regards,

Miguel Amador

unread,
Dec 17, 2013, 12:12:31 PM12/17/13
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
With the new version, I was unable to listen the lullaby musics.

Petr Nalevka

unread,
Dec 17, 2013, 12:43:05 PM12/17/13
to James Cooke, sleep-as...@googlegroups.com, Martin Stava
Sorry about that. Yes, the option was moved to sleep tracking and is shown only if you have the Pebble app installed with at least FW version 2.0.

Thank you very much.

Best regards,

Petr

 
--
Best regards,

Petr

Petr Nalevka

unread,
Dec 17, 2013, 12:43:44 PM12/17/13
to Miguel Amador, sleep-as...@googlegroups.com, Martin Stava
Hello MIguel, thanks for your feedback. I cannot reproduce this issue. Please check your volume settings.

Thank you very much.

Best regards,

Petr

 
--
Best regards,

Petr

matejdro

unread,
Dec 20, 2013, 12:23:15 PM12/20/13
to sleep-as...@googlegroups.com
Now that sleep tracking works reliably (at least for me), let me add two suggestions that could make this app even more awesome:

1. Ability to temporarily disable tracking from the watch. For example if I wake up in the middle of the night for toilet, I would just press button on Pebble and it would not track for several minutes.

2. Optional ability to set silent alarm, that will make Pebble go crazy instead (so phone is silent, but Pebble vibrates constantly until snoozed or dismised). Of course good idea would be to fallback to regular alarm if Pebble can't be reached (when it disconnected).

Petr Nalevka

unread,
Dec 20, 2013, 1:09:04 PM12/20/13
to sleep-as...@googlegroups.com
Hello,

thank you very much for your feedback. 

1. Ability to temporarily disable tracking from the watch. For example if I wake up in the middle of the night for toilet, I would just press button on Pebble and it would not track for several minutes.

This would be great we will look at it.  

2. Optional ability to set silent alarm, that will make Pebble go crazy instead (so phone is silent, but Pebble vibrates constantly until snoozed or dismised). Of course good idea would be to fallback to regular alarm if Pebble can't be reached (when it disconnected).

In fact you can already set silent alarm in Sleep as Android, and we plan make Pebble vibrations more insistent over time.  

James Cooke

unread,
Dec 21, 2013, 4:40:11 AM12/21/13
to sleep-as...@googlegroups.com
I would expand this a little further. I'd like to be able to toggle already setup (or even create basic alarms) from the watch and start/stop/pause the sleep monitoring.

I'd agree though that the monitoring is quite reliable. I've only had it stop twice, once when the pebble battery ran out and secondly the pebble itself lost connection and needed to be restarted to connect back to the phone, hopefully that was just a bug with beta 2 as it hasn't happened again.

matejdro

unread,
Dec 26, 2013, 5:06:49 PM12/26/13
to sleep-as...@googlegroups.com
Any news of possible battery savings? This app uses 50% of Pebble battery per night which means I have to charge it daily. My guess is you could reduce sample rate as you don't really need accurate movements and that way reduce BT sending frequency?

Or maybe I'm only one with battery issues? Could be problem on my side.

Dne petek, 06. september 2013 12:50:41 UTC+2 je oseba Maxim Ignatenko napisala:
Hai,

I found that using pebble as vibrating alarming device is very convenient and I would like Sleep As Android to use it instead of sound alarm.
Also it has accelerometer, so it can be used instead of a phone to detect sleep phases, but I'm not sure how fast it would drain it's battery.

Petr Nalevka

unread,
Dec 26, 2013, 5:55:43 PM12/26/13
to sleep-as...@googlegroups.com
Hello,

thank you for the feedback. In fact I am able to run 3 sleep tracks (~7 hours) in a row and still have battery for the day. So I'm basically at 3-4 days. Than I need to recharge. I don't now what is a usual consumption for normal Pebble use but the official resource claims 5-7 days.

We plan to improve battery life for the next version, but currently we already use the lowest still reasonable frequency and we send messages each 10s. For less messages we will need a major rewrite of the concept so it may take some time.

Thank you very much.

Best regards,

Petr

 




--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,

Petr

Todd Charlton

unread,
Dec 28, 2013, 10:48:11 AM12/28/13
to sleep-as...@googlegroups.com, petr.n...@gmail.com, pe...@nalevka.com
I finally saw that Pebble support was added and immediately tried it out.  Definitely used a bit more battery, but that's to be expected.  The only complaint I have is that the alarm vibration is "message" length instead of "alarm" length, so it doesn't usually wake me up.  The built-in Pebble alarm has a nice, sustained vibration (1 vibration about every second) vs. ~1 second vibration every ten seconds from the implemented alarm.  If this ONE thing can be changed, I would finally have the device I backed (I backed the Pebble in the blind hope that Sleep as Android would support it one day).

Petr Nalevka

unread,
Dec 28, 2013, 4:00:11 PM12/28/13
to Todd Charlton, Martin Stava, sleep-as...@googlegroups.com

Hello Todd,

Thank you for your feedback. We plan to start with short vibrations and after a while make them more intense. We should prepare this for the next version.

Sorry for being brief. I'm on my way now.

Thank you for your message.

Best regards,
Petr

Endre Gál

unread,
Jan 5, 2014, 12:58:26 PM1/5/14
to sleep-as...@googlegroups.com
Hi Petr,

I've been using Sleep as Android for more than a year now and I am happy with it. Especially since I found out that you would support Pebble as well, since I would like to buy one.
But I have a question and my decision to buy a Pebble might depend on this:
I would like to know if it's possible with the new Pebble SDK that the tracking would happen on Pebble and stored on the device until you would manually sync with your smartphone.
Let me explain it. At the moment when I'm going to bed I would put my phone in airplane mode and then start the tracking. So I would like to use the Pebble with the Bluetooth off. Since now is possible to use the persistent storage on Pebble I was wondering if you could have the option to do the tracking without continuously syncing and just storing the data until you would turn the bluetooth back on. That would be pretty great.

So thank you in advance for your answer and keep up the good work.

matejdro

unread,
Jan 5, 2014, 1:13:59 PM1/5/14
to sleep-as...@googlegroups.com
There are two problems with this:
1. AFAIK Pebble does not have enough storage for that
2. What would be purpose of this? If you don't sync it, alarm won't work since phone won't know when to wake.

Dne nedelja, 05. januar 2014 18:58:26 UTC+1 je oseba Endre Gál napisala:

Casey Mac

unread,
Jan 5, 2014, 2:09:07 PM1/5/14
to sleep-as...@googlegroups.com
Hello, Glad to see development happening here. Trying to install so I can test this out and contribute. 
I installed the 12/17/2013 version of sleep as android, but the "Install Pebble App" feature is greyed out.

Already running SDK 2.0 BETA 3 on my pebble. What am I missing?

Thanks!

Mac 

Casey Mac

unread,
Jan 5, 2014, 2:15:13 PM1/5/14
to sleep-as...@googlegroups.com
Oops. Never mind. It seems that the watch actually has to be connected to the phone for it to install. I am dumb.

Petr Nalevka

unread,
Jan 5, 2014, 3:29:51 PM1/5/14
to sleep-as...@googlegroups.com, Martin Stava
Hello Endre, 

thank you very much for your feedback. Currently we don't plan offline tracking on Pebble in the set of next features. The reason is we use several features which require online data - especially smart wake up. But we may be looking into this later on.

Thank you very much.

Best regards,

Petr


--
You received this message because you are subscribed to the Google Groups "Sleep as Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sleep-as-an-dr...@googlegroups.com.



--
Best regards,

Petr

Petr Nalevka

unread,
Jan 7, 2014, 6:01:44 PM1/7/14
to sleep-as...@googlegroups.com, Martin Stava
Hello guys,

we did just release a beta-version with the updated Pebble app at https://sites.google.com/site/sleepasandroid/beta-release#download.

Please re-install the Pebble app after updating Sleep as Android. 

This version includes:
- gradual vibration alarm - increases intensity over time
- sleep tracking pausing from Pebble watch
- layout update

As for the next version we will focus on battery optimizations. 

Thank you very much for testing!

Best regards,

Petr

 
--
Best regards,

Petr

James Cooke

unread,
Jan 8, 2014, 2:36:20 AM1/8/14
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
I get an error on the pebble that Sleep as android crashed as soon as it is launched from the phone app.

My phone is a Nexus 4 on 4.4.2 and the pebble is running BETA3 firmware.

Ondřej Toral

unread,
Jan 8, 2014, 4:39:13 AM1/8/14
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Hi, I have found that my favorite Sleep tracking app is getting its Pebble companion in yesterdays Pebble steel intro video. Congratulations, guys!

Just like James Cooke, running the same setup (N4 w/ stock 4.2.2, latest available SaA beta, Pebble SDK2.0 beta3 FW), I get a crash upon starting sleep tracking on the phone.

Good luck! Ondřej

James Cooke

unread,
Jan 8, 2014, 5:23:16 AM1/8/14
to sleep-as...@googlegroups.com, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
I hadn't spotted that in the video congratulations also!

Is there any way to downgrade the version without loosing data? I can't install the previous release presumably because the version number is lower and I don't want to uninstall this version as I will loose everything.

Petr Nalevka

unread,
Jan 8, 2014, 6:53:02 AM1/8/14
to James Cooke, sleep-as...@googlegroups.com, Martin Stava
Hello guys, 

I did just release a REV2. Could you please check that out and tell if the crash has gone? I cannot reproduce this issue. Id it possible you are running some earlier version of Pebble 2.0 than BETA4? Please note that we do not maintain backward compatibility with the previous BETAs so it is always necessary to update to the latest version.
--
Best regards,

Petr

Ondřej Toral

unread,
Jan 8, 2014, 7:24:18 AM1/8/14
to sleep-as...@googlegroups.com, James Cooke, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Hey, that was quick!

I have updated the Android app to v4, Pebble to beta4 and SaA to rev2, it starts correctly now. Next report tomorrow morning :)

Take care!

James Cooke

unread,
Jan 8, 2014, 9:35:54 AM1/8/14
to sleep-as...@googlegroups.com, James Cooke, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Same here - I have found though that the pause button doesn't do anything.

Petr Nalevka

unread,
Jan 8, 2014, 10:36:29 AM1/8/14
to James Cooke, sleep-as...@googlegroups.com, Martin Stava
Hello James, 

regarding the pause button you have tracking running, click the select button on Pebble and tracking is not paused (or the pause time adjusted by 5 minutes?). I guess you did install the latest Sleep as Android APK (otherwise you would not have the Pebble app right?).
--
Best regards,

Petr

James Cooke

unread,
Jan 8, 2014, 11:13:36 AM1/8/14
to sleep-as...@googlegroups.com, James Cooke, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Yes just checked by updating from REV1 to REV2 and still there is no response from the pause button. I will check logcat later for any errors.

Ondřej Toral

unread,
Jan 9, 2014, 2:50:42 AM1/9/14
to sleep-as...@googlegroups.com, James Cooke, Martin Stava, petr.n...@gmail.com, pe...@nalevka.com
Hi, measuring and waking up worked fine, the Pebble app restarted some when during night. Where can I look for errors, or should I just Send debug from the menu?
Best regards, Ondrej

Matt Kent

unread,
Jan 11, 2014, 11:37:24 PM1/11/14
to sleep-as...@googlegroups.com
I can also confirm that the pause button on the watch doesn't seem to do anything at all. Also, the past two nights I've tried to use sleep tracking with the watch, the watch has crashed in the middle of the night sometime and so I don't get any data for most of the night. I'll try to send some debug information if it happens again tonight.

Martin Stava

unread,
Jan 12, 2014, 4:54:10 AM1/12/14
to sleep-as...@googlegroups.com
Hi,

The BETA4 had a bug that accelerometer can stop working during
tracking. BETA5 should be fixing this problem according to release
notes, so you may want to try BETA5.

Cheers,
Martin

On Sun, Jan 12, 2014 at 5:37 AM, Matt Kent <matt...@gmail.com> wrote:
> I can also confirm that the pause button on the watch doesn't seem to do anything at all. Also, the past two nights I've tried to use sleep tracking with the watch, the watch has crashed in the middle of the night sometime and so I don't get any data for most of the night. I'll try to send some debug information if it happens again tonight.
>

Matt Kent

unread,
Jan 12, 2014, 9:35:58 AM1/12/14
to sleep-as...@googlegroups.com
Thanks for the response. I did update to beta 5 on Friday, so the last two nights should have been using beta 5. Last night the watch app didn't crash, but it appears that it didn't collect any data at all during the night. I have one spike at the beginning and one at the end, I assume from putting my phone down and picking it up. Am I doing something wrong? I do have the latest app installed and the use smartwatch option checked under Sleep Tracking.
It is loading more messages.
0 new messages