thiswillbeyourgithub / SleepTk_pinetime_sleep_tracker

SleepTk: sleep tracker with smart alarm for the pinetime on wasp-os
GNU General Public License v3.0
57 stars 3 forks source link

[Request] Wasp-os build with apps #7

Closed tiPrans closed 1 year ago

tiPrans commented 1 year ago

Hey there!

Really love the Sleep Tracking app that you developed and how standalone it is. However, I'm stuck at building Wasp-os from the source code and would like to request if you could please share your build that includes the Sleep Tracker app that can be uploaded OTA to the PineTime (bootloader.zip & micropython.zip)? Maybe you could upload a build of your daily driver Wasp-os repository (if it contains SleepTk.py) would be great as it also seems to have some useful apps installed.

Thanks and apologies for the dummy request!

thiswillbeyourgithub commented 1 year ago

I think you just need the micropython.zip file, do correct me if I'm wrong.

here it is micropython.zip

I'm very short on time so it's actually the quickest for me to help you and I'm fine with that :)

tiPrans commented 1 year ago

thanks a lot for your reply! I've uploaded the zip file and the OS seems to work, but there appears to be an issue with the SleepTk app. Tapping on it turns the screen into its negative colours and two bomb icons appear (seriously!). If I tap on the screen again, I get a traceback error :/

Also, I cannot seem to find the option to change watch face or find other apps on the menu. Only SleepTk, Pomodor, Alarm and Settings are there. And notifications aren't being mirrored by GadgetBridge :/

any help with providing an updated file please?

thiswillbeyourgithub commented 1 year ago

Show me the traceback please.

Also, I cannot seem to find the option to change watch face or find other apps on the menu. Only SleepTk, Pomodor, Alarm and Settings are there. And notifications aren't being mirrored by GadgetBridge :/

I did numerous change to my wasp os build so this is "normal"

tiPrans commented 1 year ago

I see, are there any builds with the default apps and watch face as well as SleepTk? I find some of the other apps and the ability to receive notifications useful as well.

Please find the traceback in the images below (sorry for the screen smudges!):

trcbck 1

trcbck 2

trcbck 3

thiswillbeyourgithub commented 1 year ago

I'm really sorry but I have no idea how it's possible to have an issue with this zip as it's the one I'm using daily!

I really don't have the time to dig in the commits of wapos that are needed for SleepTk so I can't help you. If you really are motivated and want to learn along the way your best bet would be to add the SleepTk python to your waspos build and figure out from the traceback which commits of wapos are needed based on what I did.

Actually I just did a quick tests and changed a few things and SleepTk seems to be working now on the latest wasp in the simulator! I just added a few checks to avoid looking for "get" and "set" method of wasp.

Can you try it on the default build on your watch and report back? If it's working I will gladely push it over as an extra app in wasp os :)

thanks

tiPrans commented 1 year ago

hey there, thanks a lot for looking further into this! could you please send the micropython.zip file of the build that I should test? making this file is where I am stuck at (as I am not much of a programmer) and sorry for the dummy request! But if you can share it, I'll be happy to test it on my watch and report back!

thiswillbeyourgithub commented 1 year ago

micropython.zip

tiPrans commented 1 year ago

thanks a lot! Just uploaded it to my watch and tried the app. Happy to report that it's fully functional now! I can access the app, adjust the settings and start tracking. Thanks for fixing it!

Is there any chance to please provide a new micropython.zip wasp-os build with SleepTk as well as the default apps?

thiswillbeyourgithub commented 1 year ago

I updated the PR

tiPrans commented 1 year ago

thanks! Could you please share the micropython.zip when you are able to build it from the main os?

thiswillbeyourgithub commented 1 year ago

No because the build fails because SleepTk + the defaults apps is slightly too large. You just have to remove some default apps, it's explained in the doc

tiPrans commented 1 year ago

My dummy issue is exactly with building the micropython.zip and I could do without some of the apps such as sports, haiku and fibonacci_clock.py. Any assistance would be very much appreciated!

thiswillbeyourgithub commented 1 year ago

The matrix channels are more appropriate then. The docs are great too

tiPrans commented 1 year ago

I've used the docs for SleepTk and Wasp-os too but still stuck on getting to building the micropython.zip. I'll try asking elsewhere if a build can be provided