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
#12
(10-18-2020, 09:22 PM)JMaier Wrote:
(09-06-2020, 12:13 AM)graynada Wrote: Thanks everyone for the very supportive comments.


Quote:Posted by lupyuen - 5 hours ago
Yep it's so tidy and Mondrian [Image: emoji3.png] Very good use of space https://en.m.wikipedia.org/wiki/Piet_Mondrian

Sent from my Pixel 4 XL using Tapatalk

Round watch faces and square screens make wasteful and often untidy bed fellows so I tried to think inside the box for a change Smile


Did you ever post this wasp implementation code anywhere? There some stuff I'd like to learn from it. Like specifically I'm interested how you got the gadgetbridge notifications working so well.

Sorry for the delay in replying, I must have missed the notification email.

I have just posted my code to GitHub now with largely working weather icons.  Please note I am not a professional coder so it won't be the best or neatest implementation but it works for me as an everyday driver.  It was always meant as a 'for me' project and I haven't refined/cleaned it yet but happy to share the code if it helps.

I did modify gadgetbridge.py to get weather notifications but most of the work is done in wasp.py and clock.py

I do have issues with the occasional missed notification but this seems mainly down to Bluetooth connectivity.  This could be a symptom of the phone, Gadgetbridge and PineTime combination nuances. I have extended the screen wake to 60 seconds, but this can be wound back as needed and I have removed the step counter from the ring.

Hope this helps.
#13
(09-05-2020, 01:19 AM)graynada Wrote: Hi,

Thought I would share a project I have been working on modifying the excellent wasp-os by Daniel Thompson but apologies if this is not appropriate for this forum.  I have given the watch a theme loosely based on a Star Trek computer theme.

I now have the received notifications displayed on the main screen, weather being received from my phone via the modified Gadgetbridge app and a daily step counter.

Weather just shows temperature at present, icons to create and add.

Notifications show a coloured square on the 'Alerts' line for the source a notification has been received from, blue text message, green WhatsApp, magenta Viber, red K-9 Email and grey for all others.  The body text of the last received notification is displayed on the line below, scrolling across if necessary.  When any notification is cleared from the connected phone all notification indicators on the PineTime are cleared.

The 3 bars below the date from left to right are indicators of seconds, minutes and hours of the current time.

The blue square to the left of the time/date area indicates Bluetooth is connected, going grey when connection is lost.

Additional help: square customer service



Thank you for this. It helps me  a lot.
#14
(12-09-2020, 03:24 AM)johnnparry55 Wrote:
(09-05-2020, 01:19 AM)graynada Wrote: Hi,

Thought I would share a project I have been working on modifying the excellent wasp-os by Daniel Thompson but apologies if this is not appropriate for this forum.  I have given the watch a theme loosely based on a Star Trek computer theme.

I now have the received notifications displayed on the main screen, weather being received from my phone via the modified Gadgetbridge app and a daily step counter.

Weather just shows temperature at present, icons to create and add.

Notifications show a coloured square on the 'Alerts' line for the source a notification has been received from, blue text message, green WhatsApp, magenta Viber, red K-9 Email and grey for all others.  The body text of the last received notification is displayed on the line below, scrolling across if necessary.  When any notification is cleared from the connected phone all notification indicators on the PineTime are cleared.

The 3 bars below the date from left to right are indicators of seconds, minutes and hours of the current time.

The blue square to the left of the time/date area indicates Bluetooth is connected, going grey when connection is lost.

Additional help: square customer service



Thank you for this. It helps me  a lot.

Totally awesome :-)


Possibly Related Threads…
Thread Author Replies Views Last Post
  PineTime display and micropython danielt 17 7,137 05-07-2021, 12:15 PM
Last Post: danielt
Heart wasp-os: MicroPython for PineTime! danielt 104 63,393 05-04-2021, 02:43 PM
Last Post: Msaulnier1
  Using Pine64 to install Wasp-os on PineTime Mpoint 1 608 04-30-2021, 02:39 AM
Last Post: danielt
  Update bootlogo and pinetime-app with OTA/DFU lookin 3 1,941 11-25-2020, 04:51 PM
Last Post: lookin
  PineTime Simulation Feature gjoyet 3 1,569 11-15-2020, 11:42 AM
Last Post: gjoyet
  Pinetime and P8 Integration testing framework maiden 7 3,380 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 1,824 10-18-2020, 09:24 PM
Last Post: lupyuen
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 919 10-15-2020, 05:51 PM
Last Post: lupyuen
  Remote PineTime for flashing and testing firmware remotely lupyuen 5 2,327 10-06-2020, 12:03 AM
Last Post: lupyuen
  Rust on PineTime at RIOT Summit lupyuen 3 2,330 09-25-2020, 05:05 PM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)