commit e9c55b342dc52d2c68ecd62b3888d5b3df5adde6
parent 77219264b06a5e756f20e3183c0878a4eb803a29
Author: rob <rob@tarina.org>
Date: Sat, 23 Mar 2024 15:50:28 +0000
now sync
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gonzopi.py b/gonzopi.py
@@ -870,7 +870,7 @@ def main():
elif 'SYNCIP:' in pressed:
msg = pressed.split(':')[1]
syncfolder=msg.split('|')[1]
- ip = msg.split(':')[0]
+ ip = msg.split('|')[0]
vumetermessage('SYNCING!')
stopinterface(camera)
video_files=shotfiles(filmfolder, filmname, scene)
@@ -882,7 +882,7 @@ def main():
run_command('ssh-keygen')
run_command('ssh-copy-id pi@'+ip)
try:
- run_command('rsync -avr --update --progress --files-from='+filmfolder+filmname+'/scene'+str(scene).zfill(3)+'/.origin_videos pi@'+ip+':'+syncfolder+'/.video/')
+ run_command('rsync -avr --update --progress --files-from='+filmfolder+filmname+'/scene'+str(scene).zfill(3)+'/.origin_videos / pi@'+ip+':'+syncfolder+'.videos/')
except:
logger.info('no origin videos')
#run_command('scp -r '+filmfolder+filmname+'/'+'scene'+str(scene).zfill(3)+' pi@'+ip+':'+filmfolder+filmname+'/')
@@ -895,7 +895,7 @@ def main():
stopinterface(camera)
msg = pressed.split(':')[1]
syncfolder=msg.split('|')[1]
- ip = pressed.split(':')[0]
+ ip = msg.split('|')[0]
logger.info('SYNCING from ip:'+ip)
run_command('ssh-copy-id pi@'+ip)
try: