Closed chenguokai closed 3 years ago
I had the same problem (See #73). The function does not appear in RTC.dict. It would be great if this problem is solved
I do not know how to solve this, but my fork has a set-rtc-113
branch that has a self test for that, might help find the cause.
watch.rtc.set_localtime() is working for me (I tested it with GadgetBridge and via ./wasptool --console
).
Is it also working if you add this piece of code into one of the application?
Concerning GadgetBridge: Is there any documentation on how to set up GadgetBridge so it works with the PineTime? @daniel-thompson
Concerning GadgetBridge: Is there any documentation on how to set up GadgetBridge so it works with the PineTime? @daniel-thompson
Not at the moment. However it as simple as just click (+) and choose the wasp-os device from the resulting list.
Make sure you use the wasp-os fork at https//github.com/daniel-thompson/gadgetbridge since the code is not yet in the upstream version.
Thanks for this advice! However, could you please include an .apk file in the gadgetbridge repo since not everybody may have the chance to build it for their own with Android Studio?
Thanks for this advice! However, could you please include an .apk file in the gadgetbridge repo since not everybody may have the chance to build it for their own with Android Studio
Check the Actions tab...
Thanks a lot and also for all your effort! Merry Christmas ;)
I can't get the code from @Kozova1 to run.
It looks like it hasn't been tested on a real device (and since set_localtime() is not implemented on the simulator time setting code does need to be tested on a real device).
@daniel-thompson You don't know how much this piece of information means to me! I implemented the set_localtime
function into my calculator app, ignored any error message in the simulator and flashed it to my PineTime and it works! :D
Even if this should not be done and despite the fact that it is dirty, I have to say that I love to set the rtc with my calculator! Thanks a lot!! This issue should now be solved...
Shouldn't the simulator at least provide stubs for set_localtime
? Just print something like: Set time to: $TIME
I was trying to write an App that adjust global time on device. But if I want to call
set_localtime
, the interpreter complainsthe fauly def is attached below: