1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 23:21:34 +02:00
Commit Graph

86 Commits

Author SHA1 Message Date
Andreas Shimokawa
91b8d7789d Pebble: improvemnts for upcoming Gadgetbridge Pebble watchapp 2015-07-27 23:21:06 +02:00
Andreas Shimokawa
dbbcf20bbc reformat code 2015-07-25 21:52:52 +02:00
Andreas Shimokawa
49cc4ec9d6 Pebble: for 3.x notification, do not zero parent UUID
instead reuse the same reandom UUID again.
2015-07-24 09:33:20 +02:00
Andreas Shimokawa
91cc19befe Pebble: spoof a newer application version (3.x) 2015-07-24 01:34:50 +02:00
Andreas Shimokawa
268e658e6f rename ACTION_INSTALL_PEBBLEAPP to ACTION_INSTALL 2015-07-23 12:09:01 +02:00
Andreas Shimokawa
5c26b2281f Pebble: try to support notification dismissal on the Pebble Time (completely untested) 2015-07-22 20:53:18 +02:00
Andreas Shimokawa
b3a04f7afb Pebble: more length calculation fixes for 3.x notifications with actions 2015-07-21 22:05:25 +02:00
Andreas Shimokawa
6c1e41b4ec Pebble: fix some totaly obvious length calculation errors for actionable 3.x notifications 2015-07-21 21:56:11 +02:00
Andreas Shimokawa
3c35f94a7e Pebble: enable dismiss action on FW 3.x if force option is set
NOTES:
- Might break notifications altogehter (can't test)
- Cannot work because we do not interpret the response yet.
2015-07-21 21:32:05 +02:00
Andreas Shimokawa
c9ab10e7e8 Pebble: commit missing PebbleProtocol changes for experimental notification dismissal 2015-07-21 01:33:13 +02:00
cpfeiffer
13d2c2166c Let DeviceCoordinator decide which activity to launch on click 2015-07-20 23:57:01 +02:00
Andreas Shimokawa
f847d834af Pebble: always force 3.x notifications on FW 3.x 2015-07-19 00:26:43 +02:00
Andreas Shimokawa
e6bc406d98 Fix funny typo :D
Thanks to @girlwithnoname for spotting
2015-07-18 23:38:59 +02:00
Andreas Shimokawa
095c70d469 Pebble: preparations for WIP Gadgetbridge Pebble App 2015-07-15 00:33:44 +02:00
Daniele Gobbetti
dc3ed1659c use parcelable for passing alarms around 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
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
Andreas Shimokawa
73da7fff0a Refactoring: rename GBDeviceCommand to GBDeviceEvent 2015-06-23 11:54:33 +02:00
Andreas Shimokawa
1bd32b713a Pebble: implement encodeFindDevice() by simulating a call 2015-06-21 23:53:23 +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
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
Andreas Shimokawa
1801a679c5 Pebble: fix FW 3.x detection 2015-06-18 18:39:32 +02:00
Andreas Shimokawa
a07aed62ad Pebble: Experiment with 3.x compatible notifications
This will most probably not work, but please test if you can ;)
2015-06-16 23:15:51 +02:00
Andreas Shimokawa
ad4f708140 Send 2.x style notifications when on FW 3.x (on FW 2.x else use 1.x style notifications)
This could improve #24. Unfortunally I cannot test it since I have no Pebble Time.
2015-06-13 00:26:55 +02:00
Andreas Shimokawa
dfcad94c2c Pebble: Make firmware installation possible from recovery (Closes #54)
Also make HW revision displayable for Pebble Time.
2015-06-11 20:40:31 +02:00
Andreas Shimokawa
efac912929 Pebble: Fix error when reinstalling apps, useful for upgrading/downgrading
Fixes #65
2015-06-08 22:38:58 +02:00
Andreas Shimokawa
c98716d469 Morpheuz support: Fix 3.1 compatibility 2015-06-07 21:49:05 +02:00
cpfeiffer
ab97b544f0 Some cleanup + actually remember event time and kind for throttling 2015-06-06 23:59:53 +02:00
cpfeiffer
f6d5767276 Remove reference to PebbleIOThread from BluetoothCommunicationService
Let PebbleSupport do this instead.
2015-06-06 23:24:00 +02:00
Andreas Shimokawa
b12a3e74cd MorpheuzSupport: remove limit of 54 samples. Morpheuz 3.1 supports 60 2015-06-05 20:26:11 +02:00
Andreas Shimokawa
813a02d5c7 Unify SleepMonitor with code from PR #59. Thanks Daniele! 2015-06-05 19:32:09 +02:00
Andreas Shimokawa
81b1d1d28d Pebble: Put WeatherNeat test in separate file 2015-05-30 22:24:53 +02:00
Andreas Shimokawa
603d31a59e add some constants to GBActivitySample 2015-05-30 21:52:29 +02:00
Andreas Shimokawa
e79f4523c3 Add SQLite database support for activity data
This is now used for morpheuz data and the SleepMonitorActivity
2015-05-30 17:28:03 +02:00
Andreas Shimokawa
8366af736c Pebble: Fix firmware installation when all 8 app slots are in use
We were trying to get a free slot when installing a firmware which is not neccessary.
This should also fix firmware installation in recovery (#54)
2015-05-25 01:26:27 +02:00
Andreas Shimokawa
f54927624b Move non Pebble specific code from PebbleIoThread to AbstractBTDeviceSupport 2015-05-22 20:20:33 +02:00
Andreas Shimokawa
8309234784 Pebble: fix wrong calculation of timestamp. 2015-05-21 18:57:34 +02:00
Andreas Shimokawa
68b76aa5c5 Pebble: Get Morpheuz sleep data visualize through SleepMonitorActivity
This very very experimental, and needs a complete overhaul.
But it is a start ;)
2015-05-21 18:17:39 +02:00
Andreas Shimokawa
1c5d6de3ad Pebble: fix App installation 2015-05-18 23:14:32 +02:00
Andreas Shimokawa
50c7206cf6 Pebble: implement reboot 2015-05-18 22:40:39 +02:00
Andreas Shimokawa
c37cacf43d Remove id and index from GBDeviceApp in favor of UUIDs 2015-05-18 20:56:19 +02:00
Andreas Shimokawa
55400817b4 Pebble: experiment with extensible notifications
This allows lot more flexible notifications including custom actions (replys, etc)

When used without actions it could serve as a simple replacement for the current notifications.
The main showstopper is that I do not know how to assign icons (mail, chat) to these.
Unfortunately I ended up in recovery when playing around with unknown parameters trial&error style.
2015-05-15 21:34:38 +02:00
cpfeiffer
27d725853f Add extra handler for generic notifications
(instead of misusing onSMS handler). Pebble still does that,
but not everybody has to.

Small step for #53
2015-05-13 21:55:22 +02:00
Andreas Shimokawa
1b2f20160a fix some lint warnings, mostly simplifications 2015-05-12 20:09:35 +02:00
Andreas Shimokawa
f8341918ee compile fix 2015-05-12 11:12:53 +02:00
Andreas Shimokawa
7540a3955b Pebble: experiment with launching watchapps from Gadgetbridge 2015-05-12 11:06:22 +02:00
cpfeiffer
9a26769c3e Search & replace: use slf4j for logging instead of Logcat directly
For a start, use android-logger as backend. Needs a better configuration
but no time right now.

For file-logging we will use logback as slf4j-implementation.
2015-05-12 06:33:37 +02:00
Andreas Shimokawa
6fab01a3c2 Pebble: experimenting with more generic application message encoding 2015-05-11 23:30:38 +02:00