PINE64
wasp-os: MicroPython for 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: wasp-os: MicroPython for PineTime! (/showthread.php?tid=9017)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: wasp-os: MicroPython for PineTime! - purluparLostHisPw - 04-15-2021

Hi all,
I have been quiet for a while, but now (since I got the simulator to work on my new laptop) wasp-faces will be devolopped further.

Daniel, would you be interested in a merge of Chrono24, now that you've written your own chronograph?

Also, very nice work regarding new apps and Gadgetbridge. Getting smarter ...


RE: wasp-os: MicroPython for PineTime! - danielt - 04-20-2021

(04-15-2021, 08:46 AM)purluparLostHisPw Wrote: Hi all,
I have been quiet for a while, but now (since I got the simulator to work on my new laptop) wasp-faces will be devolopped further.

Daniel, would you be interested in a merge of Chrono24, now that you've written your own chronograph?

Also, very nice work regarding new apps and Gadgetbridge. Getting smarter ...

Pull requests remain welcome. The approach for new watch faces remains pretty much the same in that I'd rather have new apps for each new face than introduce preferences. You can share code behind the scenes if that makes sense but the code is already structured with support from the widget libary allowing clocks can be very small: chrono.py is 101 lines of code and ~40% of that is comments and documentation meaning the whole watch face is only a tiny bit over 60 lines of code.

Thus you should focus on getting the code as you want it, then send a PR and we can worry about the details for sharing at that point.


RE: wasp-os: MicroPython for PineTime! - Msaulnier1 - 04-30-2021

Hi Daniel, 

Thank you for Wasp-OS I am having some fun learning how main.py and all the code works together. 

I wanted to make the analog watch face a little different and the battery and BLE status smaller. 
I added a very small formula to calc the day of the week to my redesign of the analog clock.  Big Grin  
This is what it looks like on the similator. 
   

The day of the week is based on Monday as the first day of the week from this website https://cs.uwaterloo.ca/~alopez-o/math-faq/node73.html


RE: wasp-os: MicroPython for PineTime! - danielt - 05-04-2021

(04-30-2021, 05:30 PM)Msaulnier1 Wrote: Thank you for Wasp-OS I am having some fun learning how main.py and all the code works together.

I wanted to make the analog watch face a little different and the battery and BLE status smaller. 
I added a very small formula to calc the day of the week to my redesign of the analog clock.  Big Grin 

Looks nice, and I'm very glad to hear you're having fun customizing your watch.

I've not come across this day of the week technique before but I must mention tha  I don't think you needed it! The wasp-os RTC functions are built around time.localtime() and that should already be providing you with the day of the week (as now[6]):
https://docs.python.org/3/library/time.html#time.struct_time


RE: wasp-os: MicroPython for PineTime! - Msaulnier1 - 05-04-2021

(05-04-2021, 02:23 AM)danielt Wrote:
(04-30-2021, 05:30 PM)Msaulnier1 Wrote: Thank you for Wasp-OS I am having some fun learning how main.py and all the code works together.

I wanted to make the analog watch face a little different and the battery and BLE status smaller. 
I added a very small formula to calc the day of the week to my redesign of the analog clock.  Big Grin 

Looks nice, and I'm very glad to hear you're having fun customizing your watch.

I've not come across this day of the week technique before but I must mention tha  I don't think you needed it! The wasp-os RTC functions are built around time.localtime() and that should already be providing you with the day of the week (as now[6]):
https://docs.python.org/3/library/time.html#time.struct_time
Ok I as unaware of that I will give that a check. Thanks, I didn't really want to add formula and now I don't need too Smile