cpfeiffer
d030ad9400
Ups, remove accidental import from C&P
2017-01-29 23:06:40 +01:00
cpfeiffer
b157f84b83
Log connection attempt when BT is turned on
2017-01-29 22:56:56 +01:00
cpfeiffer
2ae4497261
Mi2: the only reason I can see for detecting MiBandSupport for Mi2
...
Fixes #529 , hopefully
2017-01-28 23:25:15 +01:00
cpfeiffer
ec6a8b6743
MI: some more logging
2017-01-28 23:25:15 +01:00
cpfeiffer
6c16b4fb15
Updated initial array list size to reflect reality
2017-01-28 23:25:15 +01:00
cpfeiffer
4c48b473ac
Show device type in GBDeviceCandidate.toString()
2017-01-28 23:25:15 +01:00
ivanovlev
2d3907b0f0
Fix issue #522 : Transliterate Caller Name
2017-01-27 23:16:19 +03:00
cpfeiffer
13af1c1e11
Ignore Gadgetbridge's own notifications
...
Fixes #411
2017-01-27 00:23:45 +01:00
cpfeiffer
ba7d13fa5d
Disable smart alarms for Mi2
...
Closes #471
2017-01-26 21:09:49 +01:00
Andreas Shimokawa
298e2a9955
Merge pull request #524 from jpbarraca/Makibes-F68-refactor
...
HPlus: Change Makibes F68 device type
2017-01-26 17:24:12 +01:00
Andreas Shimokawa
f81ff8591b
Pebble: add a FAB in App Manager which launches a file manager to chose a file
...
This is similar to #247 but simpler and using a FAB, also it explicitly targets our Activity instead of allowing to open a video in a video player which using this feature
Also suggested in #520
2017-01-26 17:23:28 +01:00
João Paulo Barraca
d7db6559d8
HPlus: Change Makibes F68 device type
2017-01-26 16:04:33 +00:00
Andreas Shimokawa
e19ea26478
Merge pull request #513 from ivanovlev/master
...
Simplification of transliteration integration
2017-01-26 16:13:54 +01:00
João Paulo Barraca
b3e1cbf55e
HPlus: Support of Makibes F68 and small fixes to HPlus devices
2017-01-26 13:02:58 +00:00
cpfeiffer
ac68bfe351
Mi Band 1+2: backend implementation of making BT pairing optional
...
- cleaned up the DeviceService.connect() variants
- discovery: pass the device candidate around instead of the mac address
Attempts to fix #512 , #514 , #518
2017-01-26 00:16:38 +01:00
cpfeiffer
b8b2d8830f
Fix parceling GBDeviceCandidate
2017-01-26 00:16:38 +01:00
cpfeiffer
4c26c2933b
Mi Band 1+2: make BT pairing optional
...
(Attemts to fix #512 , #514 , #518 )
2017-01-26 00:16:38 +01:00
cpfeiffer
d103d09fcf
Mi Band: just a method rename
2017-01-26 00:16:38 +01:00
Andreas Shimokawa
25433ef6bc
Pebble: do not display a toast when watchapp configuration could not be found during initialization of appmessage handler
...
Unfortunately all users without TimeStyle installed got an error in Gadgetbridge 0.17.2
2017-01-24 23:12:36 +01:00
Andreas Shimokawa
4f45ad660d
Pebble: refactor PebbleKit stuff into its own class
2017-01-24 22:56:09 +01:00
ivanovlev
06295abcb6
Simplification of transliteration integration
2017-01-24 21:04:06 +03:00
Andreas Shimokawa
a451b5367b
Pebble: dynamic key support for Square handler
2017-01-24 19:02:45 +01:00
Andreas Shimokawa
712ce1aa8b
Pebble: dynamic keys support for healthify
2017-01-24 18:50:43 +01:00
Andreas Shimokawa
3233432ee1
Pebble: simplify AppMessageHandler
2017-01-24 18:38:26 +01:00
Andreas Shimokawa
3dd058cf81
Merge pull request #517 from jpbarraca/hplus-fix-3
...
HPlus: Improve display of new messages and phone calls
2017-01-24 12:05:02 +01:00
Andreas Shimokawa
fb7db523c7
Pebble: dynamic appKey suppoort for Morpheuz
2017-01-24 11:58:13 +01:00
João Paulo Barraca
b4a4b3916a
HPlus: Remove LanguageUtils transliterate from HPlusSupport
2017-01-24 10:39:24 +00:00
Andreas Shimokawa
746eeda777
Pebble: use dynamic appkeys for TrekVolle handler
2017-01-24 11:07:49 +01:00
Andreas Shimokawa
8027b8ac96
Pebble: fix potential crash when encoding appmessages with null values
2017-01-24 11:07:00 +01:00
Andreas Shimokawa
378d285b1a
Merge pull request #515 from jpbarraca/hplus-fix-2
...
HPlus: Fix bug related to steps and heart rate
2017-01-24 08:21:07 +01:00
João Paulo Barraca
1f083041b9
HPlus: Improve display of new messages and phone calls
2017-01-24 01:44:30 +00:00
João Paulo Barraca
c4a0c60b8c
HPlus: Fix bug related to steps and heart rate
2017-01-22 23:33:30 +00:00
Andreas Shimokawa
c39318af05
CHANGELOG, bump version, improve strings about transliteration
2017-01-22 22:30:40 +01:00
Daniele Gobbetti
a7a37fd9c8
Pebble: add a method to use the JSON keys instead of hardcoding the key ID.
...
This needs parsing the json but it is only done once. So far only Timestyle apphandler uses the new approach and this fi_xes the issue reported here https://github.com/Freeyourgadget/Gadgetbridge/issues/482#issuecomment-273757492
Fixes also a potential crash when the message for pebble contained a null key in one of the Pairs
2017-01-20 19:17:00 +01:00
Carsten Pfeiffer
31ccaf361b
Merge pull request #500 from ivanovlev/master
...
Transliterate unsupported Russian characters into English
2017-01-19 23:42:56 +01:00
ivanovlev
c13725911f
Transliteration off by default, if setting not exist
2017-01-19 08:09:36 +03:00
Andreas Shimokawa
26a751977e
Pebble: try to improve PebbleKit compatibility
...
(Might help with glance #506 )
2017-01-18 22:10:10 +01:00
Andreas Shimokawa
ed020c2a97
Pebble: raise limit of appinfo.json. Some pbws have huge ones :/
...
Fixes #505
2017-01-18 21:47:15 +01:00
ivanovlev
cbc91e7fef
Moving transliteration call from module "HPlus" to common support
2017-01-17 23:07:12 +03:00
Carsten Pfeiffer
e226a97c73
Merge pull request #503 from jpbarraca/hplus-fix-1
...
HPlus: fixed bug setting current date
2017-01-17 00:04:39 +01:00
João Paulo Barraca
5222cf99a2
HPlus: fixed bug setting current date
2017-01-16 22:04:52 +00:00
ivanovlev
bfe24dd9f0
Refactoring
2017-01-15 22:46:30 +03:00
ivanovlev
2de9580dea
Added diacritic convertation into Transliteration
2017-01-15 22:10:12 +03:00
Daniele Gobbetti
26a349210e
Pebble: make the text in the dummy weather configuration activity visible.
2017-01-15 18:19:30 +01:00
Andreas Shimokawa
d9d153c463
move WeatherNotificationConfig.java to its previous location to fix a crash
2017-01-15 12:43:26 +01:00
ivanovlev
01d9a63e8b
Merge branch 'master' into master
2017-01-15 12:27:25 +03:00
ivanovlev
074394cba4
Transliteration is moved to a separate class, added settings option
2017-01-15 12:24:36 +03:00
Andreas Shimokawa
ce67bf2c52
Pebble: make the feature to automatically delete notifications from the pebble optional
...
(This is not pebble specific at all but as long as other devices do not use that it will stay in the Pebble specific preference screen)
2017-01-15 00:10:40 +01:00
ivanovlev
b9249065eb
Fix for send message from debug screen
2017-01-14 23:01:44 +03:00
Daniele Gobbetti
4dfef382a9
Pebble: change the overflow menu of the weather system app.
...
If the weather notification app is not installed, link to fdroid (app if installed, web page of the app if not).
If the weather notification app is installed, show the options to activate and deactivate it.
2017-01-14 18:19:41 +01:00
ivanovlev
c873312831
Transliterate unsupported Russian characters into English
2017-01-14 02:39:36 +03:00
cpfeiffer
1e24fa7ad8
Dummy weather notifucation config activity
2017-01-14 00:26:47 +01:00
Andreas Shimokawa
38e234552d
Pebble: only ACK appmessages from pebble to pebblekit android apps after the app actually sent one
2017-01-13 08:16:33 +01:00
Andreas Shimokawa
0218cee0e1
Pebble: fix long standing bug in uuid encoding for ACK messages (did not seem to do any harm)
2017-01-11 23:42:40 +01:00
Andreas Shimokawa
50cb3c9db3
Pebble: remove null termination from cstrings when converting to json for PebbleKit
2017-01-11 22:39:08 +01:00
Andreas Shimokawa
9132736428
Pebble: report current firmware string to PebbleKit (eg. "v3.12.2") not "Gadgetbridge"
2017-01-10 22:43:10 +01:00
Andreas Shimokawa
185605211d
Pebble: fix bug in PebbleKit implementation regarding binary data transferred from a watchapp to a 3rd party Android app
...
(Fixes a bug with TCW)
2017-01-10 22:30:55 +01:00
Carsten Pfeiffer
d646b6773e
Merge pull request #491 from jpbarraca/hplus-handle-data
...
HPlus: Improves device support
2017-01-10 20:40:07 +01:00
Andreas Shimokawa
f2e6ce6380
Pebble: fix incoming calls (recently broken)
2017-01-10 18:23:35 +01:00
João Paulo Barraca
b92b1c08bf
HPlus: Fix deprecation warning
2017-01-10 13:44:32 +00:00
João Paulo Barraca
13ec497127
Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into hplus-handle-data
2017-01-10 13:23:23 +00:00
João Paulo Barraca
4cf872664c
HPlus: Improved support for storing and displaying data.
2017-01-10 13:08:45 +00:00
Andreas Shimokawa
fda317671a
Ignore summary information for k9 mail
...
(#373 )
2017-01-09 18:34:22 +01:00
Andreas Shimokawa
8c0f5599a1
Do not try to remove notifications from the device in some obvious cases
2017-01-09 16:49:11 +01:00
Andreas Shimokawa
3644d5e7a6
Pebble: remove notifications when dismissed on the phone ( #326 )
...
Most of the code is generic, so it could be implemented by other devices.
I dont know what happens if multiple messages arrive in the same notification.
So, this is experimental.
2017-01-09 16:33:00 +01:00
Andreas Shimokawa
c6999713d2
Pebble: use Notifications system app as parent UUID for notifications
2017-01-09 15:11:50 +01:00
Andreas Shimokawa
f05b51fd83
Pebble: Add option to disable call display
...
Closes #494
2017-01-09 14:41:02 +01:00
cpfeiffer
6c269aa089
Generic characteristic names from field names
2017-01-08 21:37:43 +01:00
Andreas Shimokawa
855a141ec4
Pebble: in AppMessageHandler provide a default implementation of handleMessage which just ACKs
2017-01-08 17:17:29 +01:00
Daniele Gobbetti
1fda1ba1b2
Pebble: try to get rid of the sleep and rely on countdownlatch instead.
...
Could help with #494
2017-01-08 16:48:50 +01:00
Daniele Gobbetti
c1abaaa4e0
Add support for hiding the icon in the status bar and the notification on the lockscreen.
...
This adds proper settings to toggle GB behavior and closes #460 .
2017-01-08 15:51:56 +01:00
Yar
5c8f02d054
Set notification to minimal priority
...
Pebble app is not showing in status bar and on lockscreen. This change is for GadgetBridge to have the same behavior.
2017-01-08 15:31:55 +01:00
Daniele Gobbetti
09cc0134db
Pebble: add support for weather in some watchfaces by gh/zalewszczak
...
See https://github.com/zalewszczak/pebble for a list of watchfaces
#482
2017-01-08 15:27:01 +01:00
Daniele Gobbetti
7f50e0d2b7
Pebble: add support for weather in square watchface
...
So far celsius are forced for temperature #482
2017-01-07 22:41:10 +01:00
Andreas Shimokawa
380e3b3640
Merge pull request #489 from hackoder/master
...
Show K9 message body in notifications
2017-01-05 17:14:09 +01:00
João Paulo Barraca
970c6960ea
HPlus: delay day slot fetch
2017-01-05 14:24:39 +00:00
João Paulo Barraca
ade7161c4d
HPlus: Buffer Day Slot data before commit to DB
2017-01-05 14:03:49 +00:00
João Paulo Barraca
d491921b1c
HPlus: Rename HPlusHandlerThread method
2017-01-05 10:36:22 +00:00
João Paulo Barraca
93ae57bd60
Refactoring class HPlusDataRecordDaySummary
2017-01-05 10:33:37 +00:00
João Paulo Barraca
051d1e7390
HPlus: fix typo
2017-01-05 00:17:28 +00:00
João Paulo Barraca
ae0718c398
HPlus: Refactoring and added comments to the message decoders members
2017-01-05 00:03:54 +00:00
João Paulo Barraca
510427e30b
HPlus: Refactoring. Calendar -> GregorianCalendar
2017-01-04 23:41:35 +00:00
João Paulo Barraca
91b346b23d
HPlus: Enabled decoding of additional fields in day summary message
2017-01-04 23:24:17 +00:00
João Paulo Barraca
9d67394720
HPlus: Code cleanup
2017-01-04 01:46:24 +00:00
Andreas Shimokawa
fd51f32765
Add Riot as a recognized chat application (including pebble color and icon)
2017-01-03 20:36:39 +01:00
Hasan Ammar
0ba377bb42
Show K9 message body in notifications
2017-01-02 19:03:02 -05:00
João Paulo Barraca
547736f8f7
HPlus: removed test values
2017-01-02 10:13:34 +00:00
João Paulo Barraca
1fb4ee8a8f
HPlus: Basic support for data synchronization
2017-01-02 00:58:37 +00:00
Andreas Shimokawa
507e58922f
Pebble: fix decoding of byte and short appmessage data (when a native handler is present)
2017-01-01 17:58:34 +01:00
Andreas Shimokawa
f25605f5a1
Pebble: First shot at TrekVolle support
...
Also some cleanups
2017-01-01 16:24:46 +01:00
Andreas Shimokawa
8b55110679
Pebble: allow weather to be send to watchfaces on fw < 4.x
2017-01-01 14:19:35 +01:00
Andreas Shimokawa
1722a6dc47
Pebble: minor code cleanup
2017-01-01 13:55:07 +01:00
Andreas Shimokawa
7930b7da75
Pebble: Support Healthify Weather
2016-12-31 20:08:53 +01:00
Andreas Shimokawa
5a83cb1c48
Pebble: fix npe in mario time handler
...
I shout stop for 2016! :D
2016-12-31 19:29:41 +01:00
Andreas Shimokawa
b811247704
Pebble: Adapt MarioTime logic
2016-12-31 19:27:21 +01:00
Andreas Shimokawa
984e639e97
Pebble: push current weather to TimeStylePebble again when watchface gets started
2016-12-31 19:17:08 +01:00
Andreas Shimokawa
4e543d4b34
Pebble: rename pushMessage() to onAppStart()
2016-12-31 19:04:05 +01:00
Andreas Shimokawa
82c0f35c58
Pebble: add encodeUpadteWeather() to AppMessageHandler for easier watchface support
...
Now in Timestyle weather is in sync with what we get from weather notification
2016-12-31 18:56:24 +01:00
Andreas Shimokawa
266c6b8817
Pebble: send weather to Pebble when we get notified by weather notification
2016-12-31 15:56:05 +01:00
Andreas Shimokawa
f12e786837
Pebble: fix mario time appmessage handler (weather condition icon hardcoded to sunny for now)
2016-12-31 13:33:50 +01:00
Andreas Shimokawa
95e6d2c740
Pebble: delete WeatherNeat handler, it was only used for testing and the watchface seems outdated
2016-12-31 12:35:40 +01:00
Andreas Shimokawa
4631e5bbaf
Pebble: restore find lost device feature abused for testing
2016-12-31 12:15:44 +01:00
Daniele Gobbetti
3280607cc9
Pebble: hide the weather app menu entries on apps that aren't the weather app.
2016-12-31 10:15:08 +01:00
Daniele Gobbetti
e477d22c88
Pebble: support the system weather app.
...
- enable/disable weather app from the watchapp list
- convert weather data to a format that can be displayed by the system app
TODO: send the weather data periodically
2016-12-30 20:14:13 +01:00
Daniele Gobbetti
0e9ce5d186
Pebble: get min/max temperature also for the forecast
2016-12-30 19:58:56 +01:00
Andreas Shimokawa
240c81ecb4
Pebble: implement weather related protocol encoding
...
this is not yet connected to anything...
2016-12-30 15:26:44 +01:00
Andreas Shimokawa
b045d5ac26
Merge branch 'master' into feature-weather
2016-12-30 00:10:54 +01:00
cpfeiffer
5d3c45d2c0
Mi2: Remember and use last synced timestamp in preferences
...
(instead of using the last sample's timestamp in the database.
The database also contains manual hr measurements and live activity
samples, so we would miss activity data before the last manual
measurement.
Closes #478
2016-12-29 23:23:20 +01:00
cpfeiffer
df1fe7c5b8
Port to UriHelper
2016-12-29 01:46:00 +01:00
cpfeiffer
aadde7d1ca
Port to UriHelper, fix potential resource leak
2016-12-29 01:41:47 +01:00
cpfeiffer
a96a747119
Pebble: fix resource leak on app installation
2016-12-29 01:29:28 +01:00
cpfeiffer
0646eda646
Fix file potential handle leaks
2016-12-29 01:07:26 +01:00
João Paulo Barraca
a135f51d31
HPlus: Improve initial configuration process and refactor constants
2016-12-28 13:53:17 +00:00
João Paulo Barraca
fed5638782
HPlus: Refactor Sex into Gender and convert value appropriatelly
2016-12-28 13:50:56 +00:00
Andreas Shimokawa
bcb522d2d0
Merge branch 'master' into feature-weather
2016-12-27 13:51:39 +01:00
Daniele Gobbetti
4ce890b5ce
Pebble: support opening files from the system share intent
2016-12-27 13:02:02 +01:00
Daniele Gobbetti
353bd4651b
Show Gadgetbridge in the "share" system dialog for installing firmwares, apps etc.
2016-12-27 12:20:59 +01:00
Andreas Shimokawa
440a5e071f
Try to support "Subsonic" android app ( #474 )
2016-12-26 23:53:24 +01:00
Andreas Shimokawa
16d9279728
Merge branch 'master' into feature-weather
2016-12-26 23:03:11 +01:00
cpfeiffer
bb8aff8c99
Fix axis label color live activity (dark theme)
2016-12-26 12:51:20 +01:00
cpfeiffer
da494cde7b
Handle live activity for Mi2 and Mi1 in the same way #448
...
Realtime samples now use ActivitySample.NOT_MEASURED for unknown or
invalid values.
2016-12-26 12:51:12 +01:00
cpfeiffer
8719cadc43
Mi Band: fix live activity messing up stepcount #448
...
live samples now report relative steps, not absolute to the current
day's stepcount.
Also live samples' steps should NOT be added to the database since
they are already counted in the regular stepcount.
2016-12-26 01:38:20 +01:00
cpfeiffer
305bd7600c
Fix current realtime steps calculations #450
...
timestamp is already in seconds instead of milliseconds
Also: port to REALTIME_SAMPLES
2016-12-26 00:23:02 +01:00
cpfeiffer
999d3e3252
Mi1: Attempt at throttling notifications during sync #438
2016-12-25 23:27:56 +01:00
Andreas Shimokawa
e8d4575261
Merge branch 'master' into feature-weather
2016-12-25 23:20:09 +01:00
Andreas Shimokawa
3441192d19
Pebble 2: Fix Pebble Classic FW 3.x app variant being priorized over native Pebble 2 app variant
...
Fixes #475
2016-12-25 23:11:49 +01:00
Andreas Shimokawa
6c5b51cd6d
Merge branch 'master' into feature-weather
2016-12-25 22:53:44 +01:00
Carsten Pfeiffer
a84bc16503
Merge pull request #470 from jpbarraca/hplus
...
Add preliminary support for HPlus devices: Zeblaze Zeband and others
2016-12-25 21:33:52 +01:00
Andreas Shimokawa
6af95d99be
Merge branch 'master' into feature-weather
2016-12-24 23:06:21 +01:00
Andreas Shimokawa
b5225145d4
Fix crash with unknown notification sources on Mi Band (maybe other non-Pebble devices also affected)
...
Pebble low level code had an own check for notification type being null, no we set it to UNKNOWN early
This regression was introduced in 0.15.0 though "Revamp Notification types Pebble (#453 )"
Fixes #468
2016-12-24 22:00:24 +01:00
João Paulo Barraca
649e20ad04
HPlus: Ignore duplicated messages from band
2016-12-24 00:05:51 +00:00
João Paulo Barraca
88f2d2ee4f
HPlus: Fixed notification title size
2016-12-23 12:20:06 +00:00
João Paulo Barraca
cd915598b0
HPlus: Improved handling of incomming calls
2016-12-23 11:46:20 +00:00
João Paulo Barraca
9dd5967f4e
HPlus: Set date and time on connect
2016-12-23 10:14:03 +00:00
João Paulo Barraca
9a338c9bae
HPlus: Fix text notification length
2016-12-23 01:35:18 +00:00
João Paulo Barraca
2b78f2708f
Cleanup according to PR Review
2016-12-23 01:21:05 +00:00
João Paulo Barraca
b7cd908fbe
Improved device filter by considering the existence of a service UUID
2016-12-23 00:10:38 +00:00
João Paulo Barraca
6c186329df
Cleanup HPlusSampleProvider
2016-12-23 00:08:14 +00:00
João Paulo Barraca
ae9ebc1be8
Refactoring some parts. Added support for param synchronisation with band
2016-12-21 23:57:57 +00:00
João Paulo Barraca
5b3ef8999f
Add preliminary support for HPlus devices, such as the Zeblaze Zeband (and many others)
...
Working: Text and call notifications, setting most user data, date and time, heart rate monitoring, sleep monitoring (alfa)
2016-12-21 12:51:25 +00:00
Andreas Shimokawa
2148b431ea
Merge branch 'master' into feature-weather
2016-12-19 23:32:53 +01:00
Andreas Shimokawa
bd5dc6bfbc
Pebble 2/LE: Add setting to limit the MTU (for debugging broken BLE stacks)
2016-12-19 23:28:06 +01:00
Daniele Gobbetti
846c74aa86
Forward also group summary notifications, if they contain wearable actions. Hopefully helps with #456
...
Tested with conversations and there is no regression. Also a specific workaround for telegram was removed, hopefully this does not break #395
2016-12-18 18:00:16 +01:00
Daniele Gobbetti
f1965c7b00
Log the flags also when passing the notification to device #456
2016-12-18 11:03:54 +01:00
Daniele Gobbetti
861c655b5d
Log the incoming notification flags.
...
Should help further diagnosing #456
2016-12-18 10:40:30 +01:00
Andreas Shimokawa
8990e7e3da
Merge branch 'master' into feature-weather
2016-12-17 00:20:16 +01:00
Andreas Shimokawa
97aed43518
Pebble: fix for previous commit
...
(potential crashes when installing and receiving notifications)
2016-12-17 00:17:05 +01:00
Andreas Shimokawa
9588535004
Merge branch 'master' into feature-weather
2016-12-17 00:01:37 +01:00
Andreas Shimokawa
2b3592f354
Pebble: allow sending data to the pebble during installation on FW >= 3.0
...
It seems to be no problem to recieve notifications etc during app installation with non legacy firmwares :)
2016-12-16 23:47:59 +01:00
cpfeiffer
321c288e27
Fix compilation
2016-12-15 20:59:55 +01:00
cpfeiffer
d12103e95d
Merge branch 'master' into new_GUI
2016-12-15 20:31:04 +01:00
cpfeiffer
caaa38ed04
Mi2: support for current battery status #449
...
so far we understand
- last charge date
- current level
- state normal
- state charging
and we are notified on changes.
2016-12-14 00:50:43 +01:00
cpfeiffer
dd48869fa5
Mi2: move Miband2Support into the package it belongs
2016-12-14 00:28:35 +01:00
Andreas Shimokawa
f74bb4e3f3
Merge branch 'master' into feature-weather
2016-12-12 09:05:19 +01:00
cpfeiffer
c69889d177
Simplified + fixed ArrayUtils.equals() + added lots of testcases
2016-12-11 23:30:20 +01:00
cpfeiffer
bcfc8bc110
Mi1/Mi2: fix firmware file probing for the different devices
2016-12-11 23:30:20 +01:00
Daniele Gobbetti
bb5791485c
Add log statements when notifications are not sent to gadget
...
This should help debuggin #456
2016-12-11 22:48:12 +01:00
cpfeiffer
40354f8f5a
Some @Override
2016-12-11 21:31:27 +01:00
cpfeiffer
94c0d6af9d
Mi2: Fix off-by-one in activity fetching
2016-12-11 21:31:27 +01:00
Andreas Shimokawa
825f2bf2e8
Merge branch 'master' into feature-weather
2016-12-11 20:27:28 +01:00
Andreas Shimokawa
31122f0b09
Pebble: Propagate watch apps launches outside of PebbleProtocol
...
This does not do anything yet.
2016-12-11 20:25:46 +01:00
cpfeiffer
6dfc895303
Mi2: Initial work on firmware update #427
2016-12-11 02:11:58 +01:00
cpfeiffer
4a19046301
Mi2: Some characteristics and opcodes for fw update
2016-12-11 02:11:58 +01:00
cpfeiffer
fd2c182714
Mi 2: another characteristic rename (0000005)
2016-12-11 02:11:58 +01:00
cpfeiffer
83ad2a9bd9
Mi 2: rename characteristic 00000003 to "CONFIGURATION"
2016-12-11 02:11:58 +01:00
Andreas Shimokawa
f63a7db5f9
Pebble: map owm conditions to TimeStyle icons
...
This is probably not the way we should do it, just experimenting for personal use :P
2016-12-11 00:08:57 +01:00
Daniele Gobbetti
a6a2c6d6d6
Pebble: timestyle doesn't use Yahoo anymore.
...
The values do not work anyway, because it's mapping them internally. See https://github.com/freakified/TimeStylePebble/tree/master/src/pkjs for the mappings.
2016-12-10 15:09:22 +01:00
Andreas Shimokawa
779699cd95
Pebble: remove configuration stuff from TimeStylePebble handler, update weather keys
...
This is not usable now, just playing around
2016-12-09 23:31:32 +01:00
Andreas Shimokawa
a0e21d7c6d
Merge branch 'master' into feature-weather
2016-12-09 23:29:54 +01:00
Andreas Shimokawa
0e1287e382
Pebble: also execute AppMessageHandler.pushMessage() if present when connection gets established
...
This does not have any effect now since pushMessage() is not used in this branch
2016-12-09 23:21:51 +01:00
Andreas Shimokawa
efb1cd389b
Merge branch 'master' into feature-weather
2016-12-09 21:52:55 +01:00
Andreas Shimokawa
17b581022b
optimize imports
2016-12-09 20:14:17 +01:00
Kevin Richter
34296c021f
Revamp Notification types Pebble ( #453 )
...
* Remove notification switches for enum & hashmap
* Fix code style
* Fix null reference exception
* Add whatsapp support
* Remove duplicate entry
2016-12-09 17:54:19 +01:00
Andreas Shimokawa
313499abd4
Pebble: also display debug level in app logs output
2016-12-08 23:20:00 +01:00
Daniele Gobbetti
2d0489960e
Pebble: boilerplate code to open dictation session #189
...
This is just boilerplate code, doesn't do anything but will do no harm as it's not called from anywhere
2016-12-08 16:38:31 +01:00
Andreas Shimokawa
ed38e524bf
Make some static stuff non-static (potentially fixes instant run problem and leaks)
2016-12-07 23:13:51 +01:00
Daniele Gobbetti
6a09023c24
Liveview: add some sanity checks to the incoming data lenghts
2016-12-07 13:09:15 +01:00
Daniele Gobbetti
4eb56eb9ca
Liveview: refactor the BT stream reading functionality
...
Read the expected number of bytes at each step instead of a single byte.
2016-12-05 17:45:03 +01:00
Daniele Gobbetti
e53b8b6b32
Liveview: ignore the SocketTimeoutException, disconnect in any other case
2016-12-04 21:04:30 +01:00
Daniele Gobbetti
219cc7bff1
Merge branch 'master' into liveview
2016-12-04 20:42:29 +01:00
cpfeiffer
928bdd5d36
Adjust comments to current values
...
They look plausible compared to 1S activity
2016-12-04 20:25:20 +01:00
Daniele Gobbetti
8c01123a48
Liveview: addressed the first feedback.
...
- centralized string encoding and byte order
- replaced printStrackTrace with LOG.error
2016-12-04 19:10:58 +01:00
Andreas Shimokawa
013029443b
Pebble: Minor cleanups
2016-12-04 17:21:29 +01:00
Andreas Shimokawa
a691cd0ff7
Pebble: add option to enable applogs (debug messags from pebble apps)
2016-12-04 16:55:27 +01:00
Daniele Gobbetti
e0a844b60a
Liveview: Initial support for Liveview devices
...
Working so far: stable connection, setting time and sending notifications.
2016-12-03 16:20:02 +01:00
Andreas Shimokawa
3db009e77d
Pebble: do not dump all LE traffic, minor code cleanups
2016-12-02 23:38:54 +01:00
Andreas Shimokawa
ae2c107ed1
Pebble 2/LE: only notify once when first PP packets are incoming
2016-12-02 08:50:02 +01:00
Andreas Shimokawa
bc9041a4c9
Pebble 2/LE: on connect wait 30s max and stop waiting immediately if a real PP connection got establish (ie write request on the gatt server)
2016-12-02 08:07:44 +01:00
Andreas Shimokawa
3eda2d4b81
Pebble 2/LE: honor reconnect tries
2016-12-02 00:38:53 +01:00
cpfeiffer
44f74270df
Mi2: Experimental support for activity recognition
2016-12-02 00:22:06 +01:00
cpfeiffer
da297ecd8b
Fix + cleanup time setting and calendar sending #441
2016-12-01 22:51:08 +01:00
Uwe Hermann
0746aaa579
app: Random typo and consistency fixes.
2016-12-01 20:22:12 +01:00
Uwe Hermann
6dd74d04ac
code/docs: Consistently use the "Gadgetbridge" spelling.
...
"Gadgetbridge" appears to be the common spelling as per most docs,
code comments, wiki, and so on. Thus avoid using "GadgetBridge".
2016-12-01 17:28:51 +01:00
Andreas Shimokawa
f0789cc147
Pebble 2/LE: fix another bug when reconnecting
2016-12-01 00:28:23 +01:00
Andreas Shimokawa
2993bb6b5c
Pebble 2/LE: fix potential NPE
2016-12-01 00:20:21 +01:00
Andreas Shimokawa
74c20f3a82
Pebble 2/LE: More fun with reconnect
2016-11-30 23:56:58 +01:00
Andreas Shimokawa
b878fa5eda
Pebble LE/Pebble 2: Fix reconnect not working when first attempt fails
2016-11-30 22:28:34 +01:00
Andreas Shimokawa
95ec1fb44c
Pebble LE/Pebble 2: Improve reconnect
2016-11-30 19:54:21 +01:00
cpfeiffer
09ff95eb34
Support for continuous hr readings (live activity) #323
2016-11-29 23:25:11 +01:00
cpfeiffer
49acde118d
Do not log heartrate separately during miband 1s sync
2016-11-29 23:25:11 +01:00
cpfeiffer
011646b097
Fix activity data on Mi Band 1 #440
2016-11-29 22:22:54 +01:00
Andreas Shimokawa
2677dad873
Fix a recent regression that caused the database migration dialog to never pop up
2016-11-27 22:50:21 +01:00
Andreas Shimokawa
109a032f1e
Pebble: fix Pebble LE address not being propery added to device attributes
2016-11-27 22:45:57 +01:00
Daniele Gobbetti
84327a5b86
Pebble: use also the device address as seed to store app configuration
...
This is not needed as long as one GB instance is used to manage a single pebble device, if multiple devices are managed the stored watchapp configuration could be messed up.
2016-11-27 11:31:03 +01:00
Andreas Shimokawa
fa8df9f552
add missing migration script
2016-11-27 10:52:43 +01:00
Andreas Shimokawa
16b4bfd0e7
Pebble LE: also return to control center if successfully initialized
2016-11-27 10:38:16 +01:00
Andreas Shimokawa
723ad53588
Call getDevice always when connected
...
This fixes a longstanding bug where device attributes where ONLY updated when fetching activity data or when pairing a new device
2016-11-27 10:32:56 +01:00
Andreas Shimokawa
24752d3455
Pebble: try harder to get LE address into the database, does not work
2016-11-27 10:10:50 +01:00
Andreas Shimokawa
34ad088b88
Pebble: Experimental support for BLE on all models via dev option in Pebble Settings
...
HOWTO:
1) Pair you normal Pebble (not necessary if already done), make sure it was connected once
2) Unpair your LE pebble if already paired
3) Switch on "Always prefer BLE" in Pebble Settings
4) Tap on the + in Control Center to add a new device
5) Pair your Pebble-LE XXXX or Pebble Time LE XXXX inside Gadgetbridge's Device Discovery actibity
Now Gadgetbridge will connect to your LE Pebble when tapping on Pebble XXXX if "Always Prefer BLE" option is enabled.
You can easily switch back to classic LE by turning that option off again
2016-11-27 09:49:28 +01:00
cpfeiffer
2f7eb9ef23
Some more improvements to discovery
...
- pass service uuids to GBDeviceCandaidate so that DeviceCoordinators
can detect devices by their services.
Note: they should not rely on service uuids being available
2016-11-27 02:46:07 +01:00
cpfeiffer
b9ff2cd468
A few improvements to discovery
...
- display the right icon for found device candidates
- scan for specific LE services
2016-11-27 01:09:20 +01:00
Andreas Shimokawa
352fc1a030
fix wrong return value
2016-11-25 14:53:12 +01:00
Andreas Shimokawa
a5263141d7
Pebble 2: Ignore all GATT communication with all other that the current device
...
Fixes a bad bug where disconnecting from another BLE device caused the Pebble2 to disconnect
2016-11-25 14:28:04 +01:00
cpfeiffer
2d4645f6cc
Fix only the first day label being displayed in Week Steps charts
2016-11-24 23:35:10 +01:00
Andreas Shimokawa
84caf22479
fix weekly charts to start y axis at 0
2016-11-24 22:27:44 +01:00
cpfeiffer
7da328d5db
Fix an invalid leftover check for array length
...
Also removed a method invocation that did not belong there.
2016-11-24 22:16:04 +01:00
Andreas Shimokawa
9d083e2330
Pebble: add Kickstart Watchface to app manager on FW 4.X
...
I know it only exist on 4.3+, but I am lazy
2016-11-24 22:10:32 +01:00
cpfeiffer
3fdfb7d172
Mi2: Support for setting the fitness goal (steps)
2016-11-24 21:58:32 +01:00
cpfeiffer
9bebf1d32f
When memory is really low, free up some memory #436
...
(although we probably can't save much)
2016-11-24 21:15:27 +01:00
cpfeiffer
60cb67c3c8
Some cleanup
2016-11-24 21:15:27 +01:00
cpfeiffer
cc0fbff297
Set the sample provider in getLatestActivitySample()
2016-11-24 21:15:27 +01:00
Andreas Shimokawa
381323011e
Pebble 2: work around FW installation problems
...
Wait a 0.5s after each complete Pebble packet and do not longer wait at all after a completed GATT package chunk (was 0.1s)
Big outgoing messages will be now much faster such as firmware installations but smaller take more time than before.
(This is not the proper fix but I could update the firmware this way, failed 10 times before after a few percent)
2016-11-24 18:52:58 +01:00
cpfeiffer
67d89ce1b9
Create the correct start-sync timestamp #323
2016-11-22 22:52:26 +01:00
cpfeiffer
dfbaba4cb6
Make sure that the charts display the requested time range
...
(instead of only the range with available samples)
2016-11-22 15:53:58 +01:00
cpfeiffer
a8a7d8db31
Mi2: WIP synchronize only new data since last sync
...
(#323 )
2016-11-22 00:05:41 +01:00
cpfeiffer
0c51f86afc
Mi2: more work on activity data #323
2016-11-22 00:05:41 +01:00
cpfeiffer
82cd06f4c1
Mi2: WIP: initial support for activity data
...
(#323 )
2016-11-22 00:05:41 +01:00
Andreas Shimokawa
eb052cead3
Pebble 2: Also honor the mtu when client gets a change reported
...
Should help older LE Pebbles
2016-11-21 17:29:16 +01:00
Andreas Shimokawa
647b67cfca
Pebble 2: call both requestMTU and use the characteristic write
2016-11-21 15:17:03 +01:00
Andreas Shimokawa
fce86482b9
Pebble 2: try an alternative way of setting the MTU (might revert)
2016-11-21 14:54:01 +01:00
Andreas Shimokawa
e8da301da3
Pebble 2: fix a few crashes with disconnect/ reconnect
2016-11-20 22:04:49 +01:00
Andreas Shimokawa
4f3c46f704
Pebble 2: only add second service if first one was added sucessfully
2016-11-20 00:12:41 +01:00
Andreas Shimokawa
3b250a4568
Pebble 2: initial hacky reconnect support
...
Works sometimes, at least less crashes
(#432 )
2016-11-19 23:53:07 +01:00
Andreas Shimokawa
029cc02a29
Pebble: Add Pebble specific pairing activity mainly useful for Pebble 2 since it properly pairs the Pebble after connecting with BLE
...
Fixes #433
2016-11-19 22:13:00 +01:00
Andreas Shimokawa
ddfab1cdae
Pebble 2: use requestMTU() on Android 5+ instead of characteristics write.
...
This actually fixes MTU problems with older Pebbles (Time, OG)
2016-11-18 23:47:48 +01:00
Andreas Shimokawa
4dc085de57
Pebble 2: React to MTU notifications, fixes LE for older pebbles also
...
It seems that setting the MTU on older pebbles does not work, so just use what we can use.
Maybe old pebbles need setMTU() which only works on Android 5+, we could use that conditionally...
2016-11-18 23:47:48 +01:00
cpfeiffer
51fa31aa66
Fix BLE type conversions problems
2016-11-18 23:36:22 +01:00
Andreas Shimokawa
66e3de9168
Pebble 2: improve connection problems (at least for me)
2016-11-18 22:38:39 +01:00
cpfeiffer
96a16245df
Update to MPAndroidChart 3.0.1
2016-11-18 21:31:55 +01:00
Andreas Shimokawa
d41848014b
fix database schema migration from 13 to 14
2016-11-16 11:37:36 +01:00
Andreas Shimokawa
485cda52a8
Pebble 2: actually report HRM feature to Charts Activity
2016-11-15 23:41:35 +01:00
Andreas Shimokawa
d7256d172e
I hate java
2016-11-15 23:23:21 +01:00
Andreas Shimokawa
163a7bdf15
Pebble 2: save heart rate values to database (hopefully)
2016-11-15 23:21:13 +01:00
Andreas Shimokawa
82a47022fa
Pebble 2: allow to disable/enable HRM in context menu of Workout app
...
Okay this might be stupid since Workout seems to work also works without HRM!
I assumed (wrongly) that I will disable Workout by disabling HRM
anyway, better than not being able to toggle it at all!
2016-11-15 12:17:51 +01:00
Andreas Shimokawa
4b7f47ba6c
Pebble 2: add Workout system app to app manager on P2 and hexdump incoming HRM datalog
2016-11-15 11:56:14 +01:00
Daniele Gobbetti
1a22752b98
Pebble: enable localStorage
...
LocalStorage native functions are overridden to keep each watchface's settings separated. It's possible the bind method do not work on older versions of android.
2016-11-14 17:51:33 +01:00
cpfeiffer
d8145a52f9
Activate the display when lifting the wrist #323
...
Configurable, defaults to true
2016-11-13 21:47:54 +01:00
Andreas Shimokawa
00a71f53b3
Pebble 2: add not yet working code (at least not without weird workarounds)
...
This is is a pain because of tons of weird pairing issues
2016-11-13 21:29:58 +01:00
cpfeiffer
d89899557c
Mi2: Add config option to configure date/time display
...
(added a new EventHandler method to set a specific configuration option)
2016-11-13 20:47:24 +01:00
cpfeiffer
ddaf51768d
Improved logging
2016-11-13 20:24:25 +01:00