Commit Graph

1496 Commits

Author SHA1 Message Date
cpfeiffer f36caafc54 Fixed syncing activity data (#45)
Bytes 1-6 represent the date/time, so we should not try to check for this.
Thanks a lot, Daniele!
2015-07-04 22:22:59 +02:00
cpfeiffer 580b86f41b Add creation timestamps to BtLEActions and transactions in debug output
(I think I still sometimes get "old" notifications)
2015-07-03 21:58:13 +02:00
Daniele Gobbetti 78c0f2797d Update CHANGELOG.md 2015-07-02 14:02:26 +02:00
cpfeiffer 410b29dd6d Updated translations from transifex 2015-07-01 23:26:05 +02:00
Andreas Shimokawa dfea2cbcc1 fix find device which started alarm activity 2015-06-30 21:18:27 +02:00
Andreas Shimokawa b25d771ee9 reformat code 2015-06-30 12:09:29 +02:00
Andreas Shimokawa 594bf8c45b Merge pull request #81 from Freeyourgadget/set-alarm-tomerge
Set alarms on device (miband)
2015-06-30 09:43:51 +02:00
Daniele Gobbetti 3068d687bf Adressed some of the observations made re the last commits. 2015-06-30 06:40:46 +02:00
Daniele Gobbetti 371a7bb4af Get rid of the Checkedtextview because they weren't in line with the our style 2015-06-30 06:40:46 +02:00
Daniele Gobbetti 900511760c further improvements:
- the day of week are evenly spread across the screen in the alarms detail activity
- the alarms are stored in a single shared preference (as a set) NB: you'll have to reset your alarms if you used a previous version (and also manually clean the shared preferences, but this is not needed)
- the list of alarms gets correctly updated after editing a specific alarm
- the actionbar back button saves the alarm status, the device back button doesn't. I'm not sure if it's a bug or a feature :)
2015-06-30 06:40:46 +02:00
Daniele Gobbetti 109b2bef4d add a Toast to confirm the transfer of the alarm or to warn if the transfer wasn't possible. 2015-06-30 06:40:46 +02:00
Daniele Gobbetti dc3ed1659c use parcelable for passing alarms around 2015-06-30 06:40:46 +02:00
Daniele Gobbetti 764dd70e45 low hanging fruits:
- add break after case
- center vertically the smart wakeup checkbox
2015-06-30 06:40:46 +02:00
Daniele Gobbetti 1caca1439a Initial implementation of setting alarms to the Mi Band.
The code basically works, but there a lot of things to fix / improve.
* The alarms are stored to and read from the Shared Preferences, but there is no persistence within the app (basically they are read and stored at every access)
* The alarm list is not updated when coming back from the alarm detail view (probably related to the point above), but the actual alarm is
* The alarms preference names is sometimes built by concatenating strings, which is not really safe
* There is no check in the alarm constructor whether the stored string is a valid alarm representation
* Even though only 3 alarms can be stored on the device, we could have more in the app and let the user choose which to sync
* In the alarm detail view XML some material* drawables are used, it's possible that these break on android version < 5
* ...
2015-06-30 06:40:14 +02:00
cpfeiffer ef2bbf13c7 Close stream on error and log exception 2015-06-29 22:38:37 +02:00
Andreas Shimokawa bf29814294 Bump version to 0.4.2, update CHANGELOG.md 2015-06-27 20:02:46 +02:00
cpfeiffer 5cde8181c9 Updated translations from transifex 2015-06-27 18:44:26 +02:00
Andreas Shimokawa 27e611c583 add share action to screenshots in notification
Now you can brag with your pebble watchfaces and send them straight to Conversations.
2015-06-27 18:09:49 +02:00
Andreas Shimokawa c16510003c Open image viewer when tapping on screenshot 2015-06-27 00:21:30 +02:00
Andreas Shimokawa 44636748e7 Show screenshot in notification in successful 2015-06-26 23:17:31 +02:00
Andreas Shimokawa 388e72d029 use our accent color for Material Design 2015-06-26 00:18:44 +02:00
Andreas Shimokawa 51595aad7a Use Material Theme on Lollipop 2015-06-26 00:12:17 +02:00
Andreas Shimokawa a73d8b7f0a Pebble: save screenshots as 1bit Windows 3.x BMP
TODO:
- user feedback
- support Pebble Time
2015-06-25 23:34:50 +02:00
Andreas Shimokawa d0178686d8 Pebble: support for taking screenshots (do not get displayed/written anywhere yet) 2015-06-24 23:55:51 +02:00
Andreas Shimokawa 07d59322bd Pebble: Preparations for taking screenshots
This commit also includes some cleanups and removal of unused code/strings
2015-06-24 00:23:38 +02:00
cpfeiffer 4b241ca9eb Initial work on supporting multiple charts.
- one fragment per chart screen
- common chart code should move to fragment baseclass and the host
  Activity (ChartsActivity)

Currently it's not used, change ControlCenter to invoke ChartsActivity
instead of SleepChartActivity to test it.

WIP for #79
2015-06-23 23:03:05 +02:00
Andreas Shimokawa 5ae812c854 add GBDeviceProtocol again 2015-06-23 14:20:13 +02:00
Andreas Shimokawa 73da7fff0a Refactoring: rename GBDeviceCommand to GBDeviceEvent 2015-06-23 11:54:33 +02:00
Andreas Shimokawa c2582e1e1f Not not display useless menu items when device is not connected
Also remove "fetch activity data" from pebble context menu, which currently does nothing

Closes #75
2015-06-22 22:16:19 +02:00
Andreas Shimokawa 1bd32b713a Pebble: implement encodeFindDevice() by simulating a call 2015-06-21 23:53:23 +02:00
cpfeiffer 39db968e34 Forgot to rename that method, too (#42) 2015-06-21 20:59:36 +02:00
cpfeiffer 23d91ac79e Support for finding a lost device (closes #42) 2015-06-21 19:46:02 +02:00
cpfeiffer c7b4f295a1 Support for vibration profiles, configurable for notifications
Configurable for sms, k9, incoming calls, pebble messages, generic
notifications.

Color is unfortunately not configurable so far, see #37

Closes #29

Currently provided profiles are
- staccato
- short
- medium
- long
- waterdrop
- ring
- alarm clock
2015-06-21 19:46:01 +02:00
cpfeiffer f105bbbde3 Avoid crash when getExternelDir() returns null (huh!) 2015-06-21 19:44:56 +02:00
cpfeiffer 1fb20926b3 Fix previous commit, disable LimitLines for this release 2015-06-21 19:43:45 +02:00
Andreas Shimokawa b1973994f0 Sleep Monitor: Disable anotations for now (produces unreadable output on some devices) 2015-06-21 16:39:03 +02:00
Andreas Shimokawa da3bff0fd4 fix German translation, fucked up by tx pull 2015-06-20 21:11:33 +02:00
cpfeiffer e6086d6f79 updated translations from transifex 2015-06-20 20:55:21 +02:00
Andreas Shimokawa 2458e55865 Pebble: add encodeSimpleMessage() for encoding 1 byte messages to endpoints 2015-06-19 23:54:31 +02:00
Andreas Shimokawa a8e2646fd9 update CHANGELOG.md 2015-06-19 13:22:41 +02:00
Andreas Shimokawa 7e1700250f Pebble: add dev option to force latest notification protocol usage
When enabled it forces to use 3.x notifications on FW 3.x (2.x notifcations on FW 2.x)
When disabled 2.x notification on FW 2.x and 1.x notifications on FW 2.x are used (which is recommended)

This allows Pebble Time users to do further tests.
2015-06-19 12:34:33 +02:00
cpfeiffer e562fa9870 Light sleep and deep sleep was mixed up. Corrected graphs again. #45
Use dashed limit lines, still not perfect.
2015-06-19 01:14:58 +02:00
cpfeiffer f9e5ab5fc1 Some more refinements to sleep display (#45):
- display the recorded level of deep sleep rather than a constant
  (I hope this works for morpheuz, too!?)
- give light sleep a minimum value, because it's sometimes 0 for Mi Band
2015-06-19 00:20:38 +02:00
cpfeiffer 03fa05756e As a test, draw limit lines for sleep/activity changes.
Unfortunately it looks like the labels for it don't get rendered ;-(
2015-06-18 23:41:54 +02:00
cpfeiffer 83079b0456 Stub for device notification changes 2015-06-18 23:07:22 +02:00
Daniele Gobbetti cb3be26349 Do something when we receive a CharacteristicChanged message
on the UUID_CHARACTERISTIC_BATTERY characteristic.

This is a first try at addressing #71

Please note that this will probably not work at this point, but it's
worth a try. To make it work probably we have to tell the device to
send updates, and we don't know how to do it.
2015-06-18 22:17:41 +02:00
Andreas Shimokawa ea43d76705 Bump version, update CHANGELOG.md and LICENSE.artwork
not yet ready for release
2015-06-18 21:51:06 +02:00
Andreas Shimokawa 1801a679c5 Pebble: fix FW 3.x detection 2015-06-18 18:39:32 +02:00
rober c1769fb4b4 revamp icons 2015-06-17 23:44:53 +02:00
cpfeiffer 8aa53fbb2c Explain logging functionality and move download link to top 2015-06-17 23:28:50 +02:00