Andreas Shimokawa
64968d8a99
Amazfit Bip/Cor: change AQI string from (fake) to (n/a)
2017-12-17 00:01:00 +01:00
Andreas Shimokawa
34c3737f3c
Amazfit Bip: Whilelist recently tested versions
2017-12-16 23:25:56 +01:00
Andreas Shimokawa
22eb69d1c2
read humidity from CM Weather provider
2017-12-14 15:10:14 +01:00
Andreas Shimokawa
948002dc7c
Weather: recreate OWM fake reply from weatherSpec, no not directly create in in Weather Notification receiver
...
This should bring CM weather on par with Weather Notficication when using background js
2017-12-14 14:54:09 +01:00
Andreas Shimokawa
1752b1b51e
fix cm/lineage weather not updating after changing location
2017-12-12 22:36:15 +01:00
cpfeiffer
fccd2ebb77
Display the actual firmware kind instead of "Firmware"
...
i.e. "GPS Firmware", "Watchface", "Resources", ...
2017-12-11 23:36:39 +01:00
Andreas Shimokawa
f0ac296492
Initial support for cyanogenmod/lineage weather provider
...
TODO:
- also reconstruct json for Pebble background js fake replies
- find a better location for settings
- interatively display candidates when looking up location
- grey out setting on non-cm/los devices
2017-12-11 19:09:37 +01:00
Andreas Shimokawa
b7b96b5ab5
Amazfit Bip/Cor: for untested installable files, at least display the type (res/font/gps/watchface)
...
For res the version is also displayed (the same as noted in the wiki)
2017-12-10 20:30:27 +01:00
Andreas Shimokawa
ff93122ddc
Amazfit Bip/Cor: parse and display firmware version for unknown versions
...
Unfortunately that does not work for the Mi Band 2 yet
2017-12-10 11:31:42 +01:00
Andreas Shimokawa
8fbf97f713
Amazfit Bip/Cor: Send fake AQI 0 to make current weather appear
...
I have no idea why this is necessary.
But at least it makes the current weather visible :/
2017-12-08 08:26:10 +01:00
Andreas Shimokawa
eec0a4dc4c
Amazfit Bip/Cor: Send also current temperature/condition
...
Closes #905
2017-12-04 22:33:53 +01:00
michaelneu
76de046434
add Facebook Messenger Lite notification support (see #883 )
2017-12-03 00:18:55 +01:00
Andreas Shimokawa
eb9d321b95
Use Teclast H30 code for Teclast H10
...
Thanks @newfla for pointing that hout
Closes #867
2017-12-02 20:35:56 +01:00
Andreas Shimokawa
7beb793165
Amazfit Bip: Fix installation of new 0.1.0.11 firmware
...
Also whitelist 0.0.9.49 and .59
2017-12-02 01:28:59 +01:00
Andreas Shimokawa
9dfde46bb0
Amazfit Bip: send condition string also for forecast days
...
String for forecasts are looked up from OWM condition ids, while the current condition string is already translated by WeatherNotification
2017-11-30 18:26:10 +01:00
Andreas Shimokawa
0befc1a95e
Weather refactoring
...
No longer save an instance of ParcelableWeather2, rely on our WeatherSpec instead which now has all forecast data and save reconstructed owm weather json in Weather
2017-11-30 10:24:31 +01:00
Andreas Shimokawa
879272deb7
Weather: refactoring and support forecast for more than one day
2017-11-29 23:57:36 +01:00
Zhong Jianxin
b4bbd0323c
Combine multipart SMS message into messages by sender
...
When receive SMS message, instead of generating multiple notifications
by PDU size, after this change, there will be only one notification for
each sender.
2017-11-23 22:26:46 +01:00
Andreas Shimokawa
36e50bddb0
remove obsolete comment
2017-11-19 23:47:06 +01:00
Andreas Shimokawa
c325ba1a22
Amazfit Bip: show find phone events (not yet supported)
2017-11-19 23:46:58 +01:00
Daniele Gobbetti
797ad096dc
Don't add the fetch activity action button on KK
...
Fixes #886
Add accent color also on first notification creation #759
2017-11-19 16:39:44 +01:00
Andreas Shimokawa
20208ca7a3
Work around non-working outlook notifications
...
See #851
2017-11-14 23:27:01 +01:00
Andreas Shimokawa
7ffcc44378
Pebble: fix nasty crash when appmessage id is > 127
...
This is a regression since Gadgetbridge 0.22.0
Potentially fixes the following:
- #868
- #876
- #884
NOTE:
Java has no unisgned, java has no unsigned, java has no unsigned.
Java has no unisgned, java has no unsigned, java has no unsigned.
Java has no unisgned, java has no unsigned, java has no unsigned.
2017-11-14 22:28:54 +01:00
Andreas Shimokawa
97fda2434d
Pebble: prevent potential NPE, and add more loggins in PebbleKit code
2017-11-14 22:10:40 +01:00
Andreas Shimokawa
d25da96804
Pebble: log some errors during JSON encoding/decoding
2017-11-14 22:02:00 +01:00
Davis Mosenkovs
5a77f224f4
Mi Band 2: whitelist firmware 1.0.1.54
...
Firmware version 1.0.1.54 is marked as recommended on wiki (Mi Band
Firmware Information).
2017-11-12 23:17:00 +01:00
Andreas Shimokawa
82ad7abf62
Mi Band 2/Bip/Cor: Only enable notification on realtime hr characteristic when live activity is used
2017-11-11 23:37:59 +01:00
Zhong Jianxin
2f443ad419
Allow WeChat notifications
...
It seems WeChat always mark its notifications as LocalOnly. The reason
may be to avoid double notifications when using Android Wear watches,
since WeChat has a standalone Android Wear app.
Do not ignore WeChat notifications even if they're marked as LocalOnly.
2017-11-11 16:14:35 +01:00
Andreas Shimokawa
1e324acd65
Mi Band 2/Bip/Cor: Whole day HR Measurement
2017-11-11 00:04:51 +01:00
Andreas Shimokawa
e3ca3872e1
Amazfit Bip: Allow watchface flashing and whitelist Firmware 0.0.9.40
2017-11-09 22:05:01 +01:00
Andreas Shimokawa
9764e8e54e
try to parse timezone that comes back from huami devices
...
(there are other places where something like this has to be done, probably also in the other direction)
related to #869
(cherry picked from commit a58e3f66ce
)
2017-11-06 23:23:11 +01:00
Andreas Shimokawa
6b56e8e568
Amazfit Cor: Fix flashing of new .res files
2017-11-06 07:17:01 +01:00
cpfeiffer
23b18abfe8
Avoid potential NPE
2017-11-03 22:01:11 +01:00
Andreas Shimokawa
83c06f4429
Amazfit Cor: fix firmware update
2017-11-03 01:09:09 +01:00
Andreas Shimokawa
dd440f51df
Amazfit Bip: add manual language selection
2017-11-01 23:32:54 +01:00
Andreas Shimokawa
e2546f772a
Mi Band 2: prevent detecting as Mi Band HRX in all cases, fixes HR not visible in charts
...
Fixes #862
2017-11-01 22:10:06 +01:00
Daniele Gobbetti
72f76b60d3
Pebble: send temperatures according to the configured measurement system
...
Fixes #858
<Without further comments but feel free to insert a long rant about the beauty of the metric system>
2017-11-01 17:58:58 +01:00
Daniele Gobbetti
e7839f1c39
Replace the Combined Charts with simple Line Charts
...
Fixes #808
The datasets had to be separed in order to fill the area below each line with the right color.
2017-11-01 17:35:05 +01:00
Daniele Gobbetti
98b04dd2fc
Allow disabling left/right swipe on the graphs
...
Fixes #860
Added preference to control this option
Swiping down will still toggle a sync of the data from the device (if connected) in any case
2017-11-01 09:07:01 +01:00
Daniele Gobbetti
5417c5b5f6
Change notification, and fix the connection logic:
...
- fix bug that caused the wrong device to be connected sometimes
- add accent color
- add battery status
- remove duplicated title
- allow to connect also before first connection (the last connected device will be used)
2017-10-30 21:37:31 +01:00
Andreas Shimokawa
3282e329f3
Mi Band 2: Fix bad copy and paste error that lead to Mi Band 2 being detected as Amazfit Bip
...
Fixes #859
2017-10-30 09:03:40 +01:00
Andreas Shimokawa
9032e6d92c
Change debug output in ACL connect receiver, to avoid further confusion
2017-10-25 22:27:41 +02:00
Andreas Shimokawa
94cfaadc41
Amazfit Cor: whitelist latest .res and .fw
...
Add a note about this being totally untested, especially scary since the new res format is different.
2017-10-25 22:26:38 +02:00
License Bot
3ea2ac6dd2
Update license headers
2017-10-25 09:29:36 +02:00
Andreas Shimokawa
02ad21cdb8
Amazfit Bip: Allow flashing of latest gps firmware and whitelist 0.0.9.26
2017-10-25 08:29:33 +02:00
Andreas Shimokawa
55cdc6d1c5
Amazfit Cor: Untested firmware update support
...
(refactor stuff along the way)
2017-10-24 22:01:25 +02:00
Daniele Gobbetti
e028b4d223
Pebble: add method to stop the background JS engine without disposing the webview
2017-10-23 20:47:30 +02:00
Andreas Shimokawa
83038a47ca
use abstract HuamiCoordinator as base for MiBand2/HRX/Bip/Cor and separate from Mi1 Coordinator
2017-10-23 14:46:08 +02:00
Andreas Shimokawa
495ba81edc
remove unused getPrimaryActivity() from coodinators, mark Mi Band HRX as non-heartrate
2017-10-23 13:44:38 +02:00
Andreas Shimokawa
0f46ea2a59
Try to blindly add support for Amazfit Cor
2017-10-23 11:28:51 +02:00
Andreas Shimokawa
7e5301e963
add missing file
2017-10-23 11:13:21 +02:00
Andreas Shimokawa
69619c21f6
Mi Band 2: try to add support for Mi Band HRX
...
Also refactors some stuff, basically moving stuff around
2017-10-23 10:28:54 +02:00
Andreas Shimokawa
ea06df4d0c
Pebble: dispose webview when app with app handler has been started (misfit, morpheuz)
2017-10-23 09:23:28 +02:00
McSym28
48c338adb8
Adding support for ukrainian characters
...
- 'ґ' (Cyrillic Small Letter Ghe with Upturn U+0491) / 'Ґ' (Cyrillic Capital Letter Ghe with Upturn U+0490);
- 'є' (Cyrillic Small Letter Ukrainian Ie U+0454) / 'Є' (Cyrillic Capital Letter Ukrainian Ie U+0404);
- 'і' (Cyrillic Small Letter Byelorussian-Ukrainian I U+0456) / 'І' (Cyrillic Capital Letter Byelorussian-Ukrainian I U+0406);
- 'ї' (Cyrillic Small Letter Yi U+0457) / 'Ї' (Cyrillic Capital Letter Yi U+0407)
2017-10-22 19:25:45 +02:00
Andreas Shimokawa
f07b77f903
Mi Band 2: support app icons and textual notifications for more apps
2017-10-22 00:02:36 +02:00
Andreas Shimokawa
a809ad214d
Refactor some common Huami stuff (Mi Band 2 / Bip)
...
This also fixes a bug where every event from the device (like not worn detection) counted as a button press
2017-10-21 22:50:28 +02:00
Daniele Gobbetti
5262c6e3d7
Add quick actions buttons to Gadgetbridge notification #759
...
- Disconnect button if connected
- Fetch activity if connected and supported by device
- (re)connect the last connected device if disconnected
Known bug: In the last case, if multiple devices were connected, the wrong device gets re-connected
2017-10-20 22:49:53 +02:00
Andreas Shimokawa
f03d53993a
Mi Band: Put Viber and Line into "generic_chat" category instead of "generic_phone"
...
Fixes #830
2017-10-18 00:04:45 +02:00
Andreas Shimokawa
6603b3fa05
Merge branch 'background-javascript'
2017-10-16 23:06:36 +02:00
License Bot
8f06e36c00
Update license headers
2017-10-16 09:38:02 +02:00
Andreas Shimokawa
8243fe712e
Amazfit Bip: Fix non-working notifications from Outlook, Yahoo Mail and GMail
...
Fixes #844
2017-10-15 22:16:54 +02:00
João Paulo Barraca
7947d94418
Merge branch 'hplus-unicode-only-first-bytes'
2017-10-15 14:28:56 +01:00
João Paulo Barraca
9b6cfd686a
Implement proper HPlus Unicode encoding support and Fixes #781
2017-10-15 14:23:21 +01:00
Daniele Gobbetti
2a0388f1c6
Pebble: background webview add allowed domains array
2017-10-13 22:16:01 +02:00
Daniele Gobbetti
c4f36d1202
Pebble: background webview, address (most of) review comments
2017-10-13 21:57:22 +02:00
cpfeiffer
e2868f0e24
Just a FIXME for someone
2017-10-12 23:25:26 +02:00
Daniele Gobbetti
b0c723b68a
Pebble: enable legacy handlers if background JS is disabled
2017-10-10 22:10:26 +02:00
protomors
4b4e95bfe0
NO.1 F1: Alarms support.
2017-10-10 00:41:27 +02:00
protomors
895c19cc1c
NO.1 F1: Moved code for setting time into appropriate method.
2017-10-10 00:41:27 +02:00
protomors
440d1e6a81
NO.1 F1: Removed some code duplication.
2017-10-05 08:05:19 +02:00
protomors
23b66459f5
NO.1 F1: Show data fetching progress.
2017-10-05 08:05:19 +02:00
protomors
bf34586a22
NO.1 F1: Check CRC before saving data.
2017-10-05 08:05:19 +02:00
Andreas Shimokawa
0eb8a0b5e2
Pebble: Fix background javascript for Pebble2/LE/Emulator
2017-10-04 23:12:49 +02:00
Andreas Shimokawa
fbef490419
Merge branch 'master' into background-javascript
2017-10-04 21:49:39 +02:00
José Rebelo
5701707e87
Mi Band 2: Change distance unit
2017-10-03 09:12:33 +02:00
Andreas Shimokawa
49bebc3440
Merge branch 'master' into background-javascript
2017-10-01 23:36:22 +02:00
protomors
b819be7db6
Now setting for measurement system is sent to the device immediately after changing.
2017-10-01 20:44:35 +02:00
protomors
7b78003ba1
NO.1 F1: Display settings.
...
Set time format and distance units.
2017-10-01 20:44:35 +02:00
Andreas Shimokawa
6f358ff722
fix measurement system summary value not being updated
2017-09-30 23:36:20 +02:00
Andreas Shimokawa
486596b1a8
Pebble: support setting the other non-metric system crap for the pebble
...
(pebble health has to be activated again in app manager after changing the option)
This also moves the fake:// uri handling code from PebbleIoThread to PebbleSupport
2017-09-30 23:27:19 +02:00
Andreas Shimokawa
6d8ffad55c
Call onSetConfiguration() in listener if measurement system gets changed in preferences
...
(And implement onSetConfiguration() for HPlus)
2017-09-30 22:45:45 +02:00
Andreas Shimokawa
9f05aff11b
Mi2/Bip: Various sleep fixes
...
- Long standing bug fixed in determinePreviousValidActivityType()
it always got the very fist valid sample, not the nearest in the past
(for me that was light sleep, so every timespan queried began with light sleep)
- Support type 2 (running) and 12 (wakeup(?))
- Support new firmwares (Mi2 and Bip) by masking only the last 4 bits (0xf),
takes some ugly query hack in determinePreviousValidActivityType() since
greenDAO does not support the & operator (even though sqlite does)
2017-09-29 17:21:16 +02:00
Andreas Shimokawa
0ffa2ce45a
move up measuerement system from hplus to global preferences
2017-09-29 12:33:08 +02:00
Andreas Shimokawa
e6d939e5cb
Merge branch 'master' into background-javascript
2017-09-28 17:31:45 +02:00
cpfeiffer
0687564bbb
Remove unused, commented out code
2017-09-28 17:31:40 +02:00
Andreas Shimokawa
7d05682d8e
Amazfit Bip: whitelist firmware 0.0.9.14
2017-09-28 16:20:22 +02:00
Andreas Shimokawa
3d09b9dc97
Amazfit Bip: Switch language on the watch automatically according to the phone locale
...
Supported:
- Simplified Chinese
- Traditional Chinese
- English
2017-09-28 16:04:06 +02:00
cpfeiffer
770c8a482d
Bip: pass the right logger instance
2017-09-27 21:46:23 +02:00
Andreas Shimokawa
0a9664d5ec
Merge branch 'master' into background-javascript
2017-09-25 23:50:08 +02:00
cpfeiffer
32d5ceb78f
Make update notification dismissable on error conditions
...
good idea, @joserebelo #821
2017-09-25 23:25:04 +02:00
cpfeiffer
976942757f
Make sure we get a stacktrace in the log
...
(so we don't have to guess where it happened) #807
2017-09-25 23:25:04 +02:00
cpfeiffer
0fd6064ab6
Just a single method rename, to make it more clear
2017-09-25 23:00:39 +02:00
Andreas Shimokawa
47bdeea257
Amazfit Bip: map a few more icons
2017-09-25 22:34:05 +02:00
Daniele Gobbetti
e8ae47de79
Pebble: Make background JS support toggle-able
...
- Add preference to enable background JS (default disabled)
- Remove the dummy activity used to create the webview, use ExternalPebbleJSActivity instead
- Add layout for legacy configuration, used if background JS is not enabled
- Create the view upon connecting, not when launching the application
- Remove the generic helpers used to find out if any device would need the background webview
- Drastic refactoring of WebviewSingleton moving internal classes in a new package "webview" in service/devices/pebble
2017-09-25 17:12:35 +02:00
Daniele Gobbetti
af6271a428
Merge branch 'master' into background-javascript
2017-09-25 11:21:11 +02:00
Daniele Gobbetti
c74ea64b70
Pebble: Address the missing remarks of #807
...
- Separate the getAudioPlayer method
- Replace the println calls with proper LOG statements
2017-09-25 11:09:45 +02:00
cpfeiffer
3c9fab0471
Fix fw update notification being stuck at the end
...
Fixes #821
2017-09-25 00:03:40 +02:00
Andreas Shimokawa
e28085e6af
Mi Band 2/ Bip: Do not send user info if not set up
2017-09-24 23:03:11 +02:00
Andreas Shimokawa
717eb6ba58
Amazfit Bip: Whitelist fw 0.0.8.97/.98, fix detection for newer alm and cep files
2017-09-24 22:44:18 +02:00
Andreas Shimokawa
46b50515f3
Mi Band 2/Bip: set user info from user attributes
2017-09-23 00:51:57 +02:00