You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use this script (in shell) you will see that the epoch given to the created file as shown in the "mod" and "cre" element can be anything between a few seconds and 30 seconds out, the amount it is out by changes each time and doesn't seem to affected by any specific change (altering the length of recording for example).
If anyone can shed any light on this I would be interested and pleased to resolve it. I was hoping to use the epoch to ensure the file matched the time recorded. I'll look for another option.
ip=172.26.197.51 #set ip to your camera IP
curl --connect-timeout 5 -s $ip':8080/gopro/media/list' #show media list
echo Set camera time $(date +%Y_%m_%d) $(date +%H_%M_%S) # set camera to this time
curl --connect-timeout 5 -s $ip':8080/gopro/camera/set_date_time?date='$(date +%Y_%m_%d)'&time='$(date +%H_%M_%S)
curl --connect-timeout 5 -s $ip'/gopro/camera/get_date_time' #check time was updated
echo Start recording Epoch $(date +%s) # start recording this is the current epoch
curl --connect-timeout 5 $ip':8080/gopro/camera/shutter/start'
echo Stop recording Epoch $(date +%s) # stoprecording this is the current epoch
curl --connect-timeout 5 $ip':8080/gopro/camera/shutter/stop'
sleep 2 # cant get the media list to quickly or fails so wait 2 seconds.
curl --connect-timeout 5 -s $ip':8080/gopro/media/list' # show new file and note "mod"/"cre" epoch
echo Epoch $(date +%s) show epoch again.
curl --connect-timeout 5 -s $ip'/gopro/camera/get_date_time' # prove time in gopro is still correct
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If you use this script (in shell) you will see that the epoch given to the created file as shown in the "mod" and "cre" element can be anything between a few seconds and 30 seconds out, the amount it is out by changes each time and doesn't seem to affected by any specific change (altering the length of recording for example).
If anyone can shed any light on this I would be interested and pleased to resolve it. I was hoping to use the epoch to ensure the file matched the time recorded. I'll look for another option.
Beta Was this translation helpful? Give feedback.
All reactions