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 - Kids with special needs hidara 0 621 06-11-2024, 10:42 PM
Last Post: hidara
  Develop a new firmware for PineTime belushi 2 2,120 09-25-2023, 12:32 PM
Last Post: ccchan234
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 936 08-20-2023, 05:17 AM
Last Post: Luno
  Zephyr Backlight Examples for PineTime lcj 0 1,132 05-06-2023, 02:54 PM
Last Post: lcj
  Zephyr is ready for pinetime jandy 1 2,777 05-06-2023, 02:15 PM
Last Post: lcj
  export accelerometer and ppg signals to computer yanei 0 970 02-22-2023, 11:26 AM
Last Post: yanei
  Send a message from Android to pinetime via BLE razrosman 0 1,321 11-05-2022, 08:24 AM
Last Post: razrosman
  PineTime Stuck in DFU Mode Eesha Barua 1 2,721 07-25-2022, 09:17 PM
Last Post: heyhewmike
  Idle tracking with PineTime: how versatile it is? schaman 1 2,224 07-13-2022, 12:50 AM
Last Post: wibble
  PineTime implemented with partial of pebble API jandy 0 1,933 03-20-2022, 08:58 PM
Last Post: jandy

Forum Jump:


Users browsing this thread: 1 Guest(s)