now rsyncs to cygnus
This commit is contained in:
parent
245770d254
commit
882b23a5fe
@ -18,7 +18,7 @@ def make_it():
|
|||||||
framelist.write("".join(["file '" + f + "'\n" for f in frames]))
|
framelist.write("".join(["file '" + f + "'\n" for f in frames]))
|
||||||
|
|
||||||
#make the actual gif
|
#make the actual gif
|
||||||
print(f"ffmpeg -r 7 -f concat -safe 0 -i /var/www/html/framelist.txt -c copy -s 1280x720 -vcodec libx264 /var/www/html/twoweeks.mp4")
|
#print(f"ffmpeg -r 7 -f concat -safe 0 -i /var/www/html/framelist.txt -c copy -s 1280x720 -vcodec libx264 /var/www/html/twoweeks.mp4")
|
||||||
print(f"convert -delay 14 -loop 0 -dispose previous {' '.join(frames)} /var/www/html/animation.gif")
|
print(f"convert -delay 14 -loop 0 -dispose previous {' '.join(frames)} /var/www/html/animation.gif")
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,3 +36,9 @@ fixed the unrelated issue where it was taking a picture every time the system re
|
|||||||
for some reason it crashes most of the times you try to do a particularly intensive operation such as "compile 15 images into a timelapse with ffmpeg" or, like, fuckin', "resize an image". i don't know what's up. major thorn in the side of my agenda to make it automatically resize images
|
for some reason it crashes most of the times you try to do a particularly intensive operation such as "compile 15 images into a timelapse with ffmpeg" or, like, fuckin', "resize an image". i don't know what's up. major thorn in the side of my agenda to make it automatically resize images
|
||||||
|
|
||||||
uhhhhh okay so hi
|
uhhhhh okay so hi
|
||||||
|
|
||||||
|
we need to make this rsync the stills folder to somewhere on the nas. how do we do that
|
||||||
|
make sure the destination folder exists on destination host
|
||||||
|
make sure we have an ssh key for the destination host
|
||||||
|
rsync /var/www/html/stills shoofle@cygnus.local:~/telescopium
|
||||||
|
|
||||||
|
@ -41,3 +41,6 @@ with open(index_filename, "r") as the_file:
|
|||||||
|
|
||||||
with open(index_filename, "w") as the_file:
|
with open(index_filename, "w") as the_file:
|
||||||
the_file.write(str(soup))
|
the_file.write(str(soup))
|
||||||
|
|
||||||
|
print("attempting to rsync /var/www/html/stills to cygnus")
|
||||||
|
os.system("rsync -r /var/www/html/stills/ shoofle@cygnus.local:~/telescopium")
|
||||||
|
@ -8,4 +8,3 @@ ExecStart=python /home/shoofle/telescopium/take_a_still.py
|
|||||||
User=shoofle
|
User=shoofle
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy = multi-user.target
|
|
||||||
|
Loading…
Reference in New Issue
Block a user