Star Trek computer themed wasp-os on PineTime
#11
(10-19-2020, 09:55 AM)JMaier Wrote: Thanks for the response. I've done some minor visual modifications to the main wasp-os sources. I've also seen the documentation and have downloaded the modified version of gadgetbridge. I've successfully connected gadgetbridge to a Pinetime running wasp. However, now I want to implement gadgetbridge message interpretations to the clock app similarly to the star trek implementation but I'm not entirely sure how to go about doing so.

It's all part of the manager (wasp.system). The notifications end up in wasp.system.notifications which is simply a dictionary of dictionaries.

For an example of manipulating the notifications take a look at the built-in notification display app: https://github.com/daniel-thompson/wasp-...ger.py#L86

In this case the foreground() method will grab a notification, remove it from the dictionary and then formats it for display. If you want to integrate notifications into a watch face you will need to do something similar. Of course for a watch face you probably wouldn't want to remove it from the dictionary unless the user instructs you to.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Heart wasp-os: MicroPython for PineTime! danielt 83 16,490 7 hours ago
Last Post: arkharim
  Pinetime and P8 Integration testing framework maiden 7 460 10-23-2020, 03:25 PM
Last Post: maiden
  Article: Create Your Own PineTime Watch Face in Rust... And Publish on crates.io lupyuen 2 193 10-18-2020, 09:24 PM
Last Post: lupyuen
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 104 10-15-2020, 05:51 PM
Last Post: lupyuen
  Remote PineTime for flashing and testing firmware remotely lupyuen 5 332 10-06-2020, 12:03 AM
Last Post: lupyuen
  Rust on PineTime at RIOT Summit lupyuen 3 554 09-25-2020, 05:05 PM
Last Post: lupyuen
  Article: Preview PineTime Watch Faces in your Web Browser with WebAssembly lupyuen 1 386 09-13-2020, 02:09 PM
Last Post: VMMainFrame
  Article: Porting PineTime Watch Face from C to Rust On RIOT with LVGL lupyuen 0 166 09-12-2020, 10:13 PM
Last Post: lupyuen
  FreeRTOS, RIOT, Mynewt and wasp-os Firmware now auto-building with GitHub Actions lupyuen 1 390 08-01-2020, 09:10 AM
Last Post: lupyuen
Information PineTime Updater for Flashing New Bootloader and FreeRTOS Firmware lupyuen 2 482 07-31-2020, 05:10 PM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)