Commit Graph

91 Commits (10b5c571bb220e7fff96e7605261698a6d004cd7)

Author SHA1 Message Date
danielegobbetti 10b5c571bb Use Kilometers as distance unit 2016-02-07 16:44:16 +01:00
danielegobbetti 2f8207abf9 Initial support for reading pebble health steps/activity data. 2016-02-07 09:27:51 +01:00
danielegobbetti 03ad7f5a24 Do not enable insights on the watch. Add notice about health activation to changelog. 2016-02-06 21:38:55 +01:00
Andreas Shimokawa 85bad9abf5 Pebble: store information about datalog sessions (uuid, item type, length, tag)
... and log them if data comes in from a known id.
Also request open sessions on connect.
And last but not least hex dump data which might be from Health (the tags that I never see on Aplite but always on Basalt)
2016-02-03 23:27:35 +01:00
Andreas Shimokawa 493fcfc853 Pebble: improve datalog output 2016-02-03 20:23:56 +01:00
Daniele Gobbetti baf5eee72f Refactored the User Activity-tracking related preferences.
Created a new device-independent class ActivityUser to hold the data
Moved the constants from the miband constant class to the ActivityUser class
Removed the miband-specific in favor of common-prefixed preferences (with upgrade support for legacy values)
Changed the way the gender is stored to an integer value
Removed the hardcoded default values for user data in favor of static fields of the ActivityUser class
2016-02-02 17:33:24 +01:00
Daniele Gobbetti 5b016e2577 WIP, read the miband user information for the time being. 2016-01-29 17:45:35 +01:00
Daniele Gobbetti 9f2a7f5448 actual deletetion of the Health app.
It brings the health watchapp back to the pristine state "you need pebble health in order to use this app". The data, however, is not deleted!
2016-01-28 11:59:23 +01:00
Andreas Shimokawa 33cf76172b Pebble: add hack to enable and maybe disable Health from the App Manager activity 2016-01-27 23:02:09 +01:00
Andreas Shimokawa 666c53a1e4 Pebble: make encodeBlobDB accept Strings and UUIDS as keys, use it for Heath activation 2016-01-26 10:48:50 +01:00
danielegobbetti 7ba3a874a2 Message to activate Pebble Health, possibly. 2016-01-25 23:15:19 +01:00
Andreas Shimokawa 0b53f60b0d Pebble: EXPERIMENTAL support for replying to wearable notifications
Tested with Signal, more could work.
2016-01-09 17:54:17 +01:00
Andreas Shimokawa 46bbab7df0 rename IDSenderLookup to LimitedQueue and store Object instead of String 2016-01-09 16:07:22 +01:00
Andreas Shimokawa d358ed81d2 Pebble: Display a failure if we cannot map a notification id back to a Phone number when replying to an SMS 2015-12-31 01:43:00 +01:00
Andreas Shimokawa 11e02fbf5f Pebble: add experimental reconnect support for standby-mode on firmware 3.x
- You should also set reconnect attempts to 0 in preferences when using this.
- It also works when you set flight mode on the pebble, then wait for about 5 minutes and turn BT back on
- Pebble FW 2.x support ist completely untested.
2015-12-27 19:11:40 +01:00
Daniele Gobbetti 3ee418a45b Implement pushing messages upon watchapp start.
This watchface is used as example: https://github.com/ygalanter/PebStyle because it doesn't initiate a connection like others do.

At the moment this is more a proof of concept^W^W^Wdirty hack then anything else.
2015-12-23 14:22:28 +01:00
Daniele Gobbetti 5f189aedbd Add support for some configuration options of TimeStylePebble watchface ( https://github.com/freakified/TimeStylePebble ) 2015-12-23 09:04:01 +01:00
Andreas Shimokawa 87739d94db Pebble: unify FW 2.x and 3.x action decoding 2015-12-20 21:23:39 +01:00
danielegobbetti a71c27d25e Added subtitle to timeline pins 2015-12-20 19:50:48 +01:00
Andreas Shimokawa 96e21dbf21 Pebble: fix "[Action]" being displayed as SMS action when no canned replies are defined 2015-12-20 00:58:14 +01:00
Andreas Shimokawa 35c7ab6dde PEbble: add database parameter to encodeBlobDBClear(), minor cleanups 2015-12-20 00:40:38 +01:00
danielegobbetti 5026cf269f Added command to clear the DB on pebble. 2015-12-19 20:52:44 +01:00
Andreas Shimokawa 4b29d63d4e Pebble: more debugging 2015-12-19 20:30:46 +01:00
danielegobbetti 6582ead01c Add pebble health uuid. 2015-12-19 09:43:55 +01:00
Andreas Shimokawa 7eabf1e603 spoof android app version to 3.8.1 (was 3.0.1) 2015-12-18 21:34:52 +01:00
Andreas Shimokawa 47a34bb7bf Pebble: debug output for blobdb responses (get rid of unhandled endpoint -20005 messages) 2015-12-18 12:41:01 +01:00
Andreas Shimokawa c9dcf06529 Pebble: improve debug output
- decode apprunstate and systemmessage endpoint messages
- prevent error messages by not using appmanager endpoint on firmware 3.x (it is gone)
2015-12-17 23:09:52 +01:00
Andreas Shimokawa f387f7c96b increase canned replies from 8 to 16
NOTE:

Total allowed bytes for all replies = 512 - (reply count - 1)

TODO:
- check with Firmware 2.9.1
- remove last reply that exceeds the 512 bytes limit completly (else it will be partly truncated)
2015-12-17 00:05:42 +01:00
Andreas Shimokawa dfa85745e8 Send out SMS when replying with a canned response
Closes #121
2015-12-15 00:26:06 +01:00
Andreas Shimokawa de5f30ae97 WIP: Work towards SMS replies / canned replies, round 3
- put random id/phone number pair into limited lookup list (last 16 sms messages) when sms arrives
- lookup the phone number when replying from the a device

THIS STILL DOES NOT DO ANYTHING USEFUL
2015-12-14 23:31:31 +01:00
Andreas Shimokawa 14f8929439 Pebble: fix decoding strings in appmessages from the pebble
This fixes sending SMS from "Dialer for Pebble"
2015-12-14 00:05:14 +01:00
Andreas Shimokawa e5cf22bda6 WIP: Work towards SMS replies / canned replies, round 2
- parse the reply string in PebbleProtocol
- put replies into GBDeviceEvents
- display a toast in AbstractDeviceSupport, containing the reply

THIS STILL DOES NOT DO ANYTHING USEFUL
2015-12-13 22:43:53 +01:00
Andreas Shimokawa 53fb63781e WIP: Work towards SMS replies / canned replies
- Implement the PebbleProtocol side (2.x and 3.x)
- Add Preferences for canned replies

This can be tested by enabling untested features in Pebble Settings
It lets you see and select the replies set up in "Canned Repies" on the Pebble
You will get a "NOT IMPLENTED" message on your Pebble.

THIS DOES NOT ACTUALLY DO ANYTHING USEFUL YET.
2015-12-13 12:03:57 +01:00
Andreas Shimokawa 18726eca33 Pebble: Correct setting the timezone on firmware 3.x (pebble expects the "ID" eg. Europe/Berlin) 2015-12-08 14:59:24 +01:00
Andreas Shimokawa 3ac00a004f Pebble: Support installing .pbl (language files) on firmware 3.x 2015-12-08 12:07:14 +01:00
Andreas Shimokawa f20e11d517 Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x 2015-12-07 12:25:34 +01:00
cpfeiffer bd0716ba58 Some more lint warnings fixed 2015-11-23 23:04:46 +01:00
cpfeiffer 81c2f657bd Some lint fixes 2015-11-23 22:46:12 +01:00
Andreas Shimokawa 44a36a5f1d Pebble: First try to receive at least steps from the Misfit pebble watchapp 2015-10-21 23:11:59 +09:00
Andreas Shimokawa 5860c4f4f9 Pebble: WIP support for flashing language files (.pbl)
NOTES:
- YOU SHOULD NOT TRY THIS YET ;)
- This was only tested with the unoffical japansese language pack
- Problably needs proper crc calculation (I just hardcoded the one for the japanese language pack)
2015-10-06 23:56:01 +09:00
Andreas Shimokawa d21b5e68b5 Pebble: Cleanup AppMessage handlers 2015-10-04 22:53:11 +09:00
Andreas Shimokawa e3533a2b18 Pebble: Allow muting (blacklisting) Apps from within generic notifications on the watch
Closes #113
2015-09-25 00:53:40 +02:00
Andreas Shimokawa 1d41f2f8e4 Refactoring
The notfification APIs now use NotificationSpec as their only parameter, which
contains all information (required and optional ones).
We no longer have separate methods and actions for SMS/EMAIL/GENERIC anymore.
The type of notification is important now, not how we received them technically.
2015-09-24 14:45:21 +02:00
Andreas Shimokawa ab78d167d9 update CHANGELOG.md 2015-09-23 23:53:16 +02:00
Andreas Shimokawa 3bb673d33a Pebble Time Round support ("chalk" platform) 2015-09-23 23:20:49 +02:00
Andreas Shimokawa f6ef72e9fb Pebble: fix some hardware revision strings to match strings in firmware json file
This should enable firmware upgrade on Pebble Time and might fix pbw installation on Pebble Time Steel
2015-09-20 18:27:41 +02:00
Andreas Shimokawa 60b24e004a Pebble: Fix bug for Pebble Intent Notifications not arriving on FW 2.x 2015-09-19 21:35:02 +02:00
Andreas Shimokawa 0c4dbf75e0 Pebble: fix for PebbleKit AppMessages containing non-latin characters 2015-09-19 15:32:09 +02:00
Andreas Shimokawa e6a8a1a36c Pebble: Better support for 8 and 16 bit integers in AppMessages 2015-09-18 00:03:34 +02:00
Andreas Shimokawa 041bd1a7f4 Treat Conversations messagess as chat messages, even if arrived via Pebble Intents (which is the default) 2015-09-17 23:08:05 +02:00