Star Trek computer themed wasp-os on PineTime - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134) +--- Forum: Development Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=136) +--- Thread: Star Trek computer themed wasp-os on PineTime (/showthread.php?tid=11287) Pages:
1
2
|
RE: Star Trek computer themed wasp-os on PineTime - danielt - 10-20-2020 (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-os/blob/52de478682bd88dc80bff53d96b0d9132e3f1978/wasp/apps/pager.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. RE: Star Trek computer themed wasp-os on PineTime - graynada - 10-30-2020 (10-18-2020, 09:22 PM)JMaier Wrote:(09-06-2020, 12:13 AM)graynada Wrote: Thanks everyone for the very supportive comments. 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. RE: Star Trek computer themed wasp-os on PineTime - johnnparry55 - 12-09-2020 (09-05-2020, 01:19 AM)graynada Wrote: Hi, RE: Star Trek computer themed wasp-os on PineTime - tllim - 12-14-2020 (12-09-2020, 03:24 AM)johnnparry55 Wrote:(09-05-2020, 01:19 AM)graynada Wrote: Hi, Totally awesome :-) |