jakkra / ZSWatch

ZSWatch - the Open Source Zephyr™ based Smartwatch, including both HW and FW.
https://forms.gle/G48Sm5zDe9aCaYtT9
GNU General Public License v3.0
2.26k stars 191 forks source link

Squashed commit of the following: #178

Closed Kampi closed 8 months ago

Kampi commented 8 months ago

commit 81025313f8166dfb8f78d02e87b5306fdee72395 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Dec 5 09:22:26 2023 +0100

- Fix wrong include in 'trivia_app.c'
- Add lost code for 'trivia_app'

commit 1e348b221918954d387845b517ae2ab1baee30cf Merge: 6024526 4475a74 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Dec 5 09:09:37 2023 +0100

Merge branch 'main' into BLE_enhancements#124

commit 60245268e0c7d4e20269796cd5302ef00cd03f38 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Thu Nov 30 21:47:59 2023 +0100

- Fixes from PR

commit a6bbcd995ad905d91b7c8761827460148918212f Merge: 67abc93 ced8bfe Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Sun Nov 26 23:06:25 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 67abc93f2048c2d93218b6126103227a03647da6 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Sun Nov 26 22:08:40 2023 +0100

- Update documentation

commit afbcdabc92a7fe7835ec0ff30a17b060862daebf Merge: a57561d 8fc270c Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Sun Nov 26 19:12:02 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit a57561d6ec8cb1b14a1c7cfc3af24c9d601bb493 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Sat Nov 25 23:56:54 2023 +0100

Notifications app:
- Add button to clear all notifications
- Replace text area with label to prevent a focus on the body
- Fix a bug where the last notification out of many can not be removed when the removal starts not at the bottom
- Add "Now" string for notifications with an age of less than 1 minute instead of showing the seconds
- Add notification for WhatsApp

Notification manager:
- Add notification remove channel for ZBUS

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>

commit 9fec3c954aec7b52ca6a981f3178dd10d9021645 Author: ldab l.bispo@live.com Date: Sat Nov 25 18:43:10 2023 +0100

remove callback from ANCS

commit 42a1c4db4a9467faf939373f150de71f1e1f0719 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Sat Nov 25 17:23:24 2023 +0100

Notifications app:
- Add long press to remove a notification
- Add scrolling with animation when notification is removed
- Convert the age into a better time format
- Fix crash when closing notification app with at least one active notification
- Set initial time when building a notification instead setting it to 0
- Change font size for notification body from 14 to 12

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>

commit eea1e0cf9137e19aa18c441eb86111fa38e7876a Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Sat Nov 25 10:48:46 2023 +0100

BLE:
- Remove connected and disconnected event

Notification manager:
- Add ZBUS listener to keep track about new notifications
- Add missing value check for "num_notifications" to prevent boundary issues with the notification buffer

Notifications:
- Rework UI
- Add timestamp field
- Add log levels
- Add notification source "COMMON_MESSENGER", "WHATSAPP" and "COMMON_MAIL"

IAQ app:
- Add log levels

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>

commit f1927bb3acb00e69fd1edb3c2b3dd45ce5929f4b Merge: a2258ce 7ab0a8c Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Thu Nov 23 09:09:24 2023 +0100

Notifications:
- Rework UI

commit a2258cedec0103d2e63a11735e0fa922685d9f5b Merge: 46525c8 5022651 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Wed Nov 22 22:19:47 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 46525c847fde7e5e0d8714db935d9a7c98c08eea Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Wed Nov 22 11:41:35 2023 +0100

Notification:
- Add new design for Notifications

commit 9f990655ea2795241c95502cd7b7bfb3fbd48c64 Merge: d339979 3f0a692 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 22:21:07 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit d339979c0c437579bdbe2114e6cf0fdb24a5b784 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 17:51:29 2023 +0100

Misc:
- Format code
- Changes from PR

Notifications:
- Improve scrolling
- Add option to add notifications when notification app is active

BLE:

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>

commit 75458fc7d3aab25e1a6253e9e80e716b1fa8548f Merge: 795f7b7 42b1d0d Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 17:48:38 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 795f7b7de9ebaeb29872b356c3b690372188cf3b Merge: 284076c 7f1d52e Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 16:42:44 2023 +0100

Merge branch 'jkra_ble_rx_thread' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 7f1d52edf5b97147cc6cbcba57beb1cbf45be913 Author: Jakob Krantz mail@jakobkrantz.se Date: Tue Nov 21 15:35:31 2023 +0100

Use system workqueue for BLE RX.

Saves us bunch of RAM not having a seperate on.
Helps with thread safety.

commit 284076c574902ab684bd3a0a763aecd8e6f943f4 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 15:38:44 2023 +0100

BLE:
- Move Gadgetbridge related code into separate source file

commit 4933d8a228ab86bac35d8107264231acdcbc3de0 Merge: 3114dee 03d6dcd Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 15:11:58 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 3114deef3045e5b360af962f55d6e8f95acd579c Merge: 671044e bc6365e Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Tue Nov 21 09:06:44 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 671044eb6162dc2cd1b32897014668fbc456f28c Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 19:47:12 2023 +0100

BLE:
- Add BLE connected and disconnected ZBUS event
- Replace "printk" in "ble_comm" with log output
- Remove new line from log output
- Add ZBUS instead of BLE data callback

Misc:
- Replace include guard for managers with "pragma once"
- Add docu header to manager functions
- Format code

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>

commit 26b3046c70bd4983c320869b7515358b3455738c Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 19:16:45 2023 +0100

BLE:
- Update device information in Device Information Service

Misc:
- Add wildcard for debug directory to gitignore to ignore patterns like "debug_rev_1" etc.

commit 59a76a5184be58b954c0cd942bf388ff36f0cf9b Merge: 90017af 6b5b2d0 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 18:54:06 2023 +0100

Merge branch 'main' of github.com:jakkra/ZSWatch into BLE_enhancements#124

commit 90017af714ddb3eab55a5d48fcb36572207f99b7 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 17:15:49 2023 +0100

- Simplify code for delayable work

commit cf556e2ecc88efb08bbd81febaf90cdce3f686ba Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 17:07:43 2023 +0100

- Fix style in battery app

commit 80163b1a139a9a9a8689954830dec094d97cf7f1 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 15:52:29 2023 +0100

- Run "west format"
- Fix compile errors because of multible log tags in Bluetooth code
- Undo auto insertion in settings file by VS Code
- Change log level for notification data to debug

commit 2df14f33d36ed79bf171db6d844f09886c1e3fda Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 10:43:00 2023 +0100

BLE:
- Add log level for Bluetooth code
- Replace include guards with "pragma once"

Template app:
- Add log level for template app

Settings app:
- Add log level for settings app

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>

commit 612ab22923df20ea07bf33a65203f2a490239ff2 Author: Daniel Kampert DanielKampert@kampis-elektroecke.de Date: Mon Nov 20 10:27:38 2023 +0100

BLE:
- Add "Subject" field to notification object
- Remove length check for notification fields, because empty fields have a length of 0 which causes issues with the string termination

main:
- Rename log level for main in Kconfig
- Add log level for main application
- Use short payload of a notification instead of the long version

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>