gopro / labs

GoPro Labs
Apache License 2.0
483 stars 40 forks source link

Upload not successful - Daily script #306

Open asteelebush opened 1 year ago

asteelebush commented 1 year ago

I've got a script called 'daily' that's supposed to take a picture at 12:00 every day and then upload to the cloud. The pictures are taking just fine, but the upload is not occurring. I recently changed the script so that the upload happens first (to try and troubleshoot whether the camera was just turning off after taking the pic) and it was able to upload successfully the first time. But then when I let it roll for a few days, it will continue to take pictures but will not upload.

Yesterday, I turned on the GoPro a few minutes before 12:00 to verify the script was still rolling (it was), then the camera auto shut off. It turned back on at 12:00 as designed, and began to upload. And frustrating enough, it was successful! Haha I think it must be a bug because it only successfully uploads when

  1. I reinitialize the script (by cancelling it and executing !Ldaily), or
  2. Yesterday when I turned the camera on a few min before it was supposed to execute

Here's a snip of the log from yesterdays successful upload: [2023-04-16 11:58:02] Labs:Main Start [2023-04-16 11:58:03] Labs:Initialize [2023-04-16 11:58:03] Woke with Command:[12:00:00]!S!Ldaily [2023-04-16 11:58:06] Shutdown and Sleep:97 seconds [2023-04-16 11:58:10] shutdown:rtc wake scheduled [2023-04-16 11:59:51] Labs:Main Start [2023-04-16 11:59:52] Labs:Initialize [2023-04-16 11:59:52] Woke with Alarm:[12:00:00]!S!Ldaily [2023-04-16 11:59:54] Woke with Command:[12:00:00]!S!Ldaily [2023-04-16 11:59:54] Start:6 seconds [2023-04-16 12:00:01] Timer wake command:!S!Ldaily [2023-04-16 12:00:04] Load Script:C:\MISC\daily [2023-04-16 12:00:06] upload:waiting [2023-04-16 12:00:08] upload:waiting [2023-04-16 12:00:09] upload:waiting [2023-04-16 12:00:10] upload:waiting [2023-04-16 12:00:10] upload:state = 11 [2023-04-16 12:00:10] upload:entered [2023-04-16 12:00:11] upload:connecting to sink [2023-04-16 12:00:13] upload:connecting to cloud [2023-04-16 12:00:20] upload:connecting to cloud [2023-04-16 12:00:23] upload:enumerating media [2023-04-16 12:00:26] upload:offloading to sink [2023-04-16 12:00:31] upload:offloading to sink [2023-04-16 12:00:40] upload:offloading to sink [2023-04-16 12:00:50] upload:offloading to sink [2023-04-16 12:01:01] upload:offloading to sink [2023-04-16 12:01:11] upload:offloading to sink [2023-04-16 12:01:14] upload:complete [2023-04-16 12:01:14] upload:done [2023-04-16 12:01:14] Shutdown and Sleep:24000 seconds

Here's a snip from a day when the upload was not successful: [2023-04-14 11:40:11] Labs:Main Start [2023-04-14 11:40:12] Labs:Initialize [2023-04-14 11:40:12] Woke with Alarm:[12:00:00]!S!Ldaily [2023-04-14 11:40:14] Woke with Command:[12:00:00]!S!Ldaily [2023-04-14 11:40:17] Shutdown and Sleep:1066 seconds [2023-04-14 11:40:23] shutdown:rtc wake scheduled [2023-04-14 11:58:12] Labs:Main Start [2023-04-14 11:58:13] Labs:Initialize [2023-04-14 11:58:13] Woke with Alarm:[12:00:00]!S!Ldaily [2023-04-14 11:58:15] Woke with Command:[12:00:00]!S!Ldaily [2023-04-14 11:58:18] Shutdown and Sleep:85 seconds [2023-04-14 11:58:24] shutdown:rtc wake scheduled [2023-04-14 11:59:52] Labs:Main Start [2023-04-14 11:59:53] Labs:Initialize [2023-04-14 11:59:53] Woke with Alarm:[12:00:00]!S!Ldaily [2023-04-14 11:59:55] Woke with Command:[12:00:00]!S!Ldaily [2023-04-14 11:59:55] Start:5 seconds [2023-04-14 12:00:01] Timer wake command:!S!Ldaily [2023-04-14 12:00:05] Load Script:C:\MISC\daily [2023-04-14 12:00:06] upload:done [2023-04-14 12:00:06] Shutdown and Sleep:24000 seconds [2023-04-14 12:00:10] shutdown:rtc wake scheduled

Finally, here's the !Ldaily script: !SAVEdaily=dPmP!U!12:00S!Ldaily

On a GoPro Hero 10 black with the latest GoPro labs firmware, v1.50.70, January 2023