diff --git a/make_a_gif.py b/make_a_gif.py index aed46b4..be70d3a 100644 --- a/make_a_gif.py +++ b/make_a_gif.py @@ -18,7 +18,7 @@ def make_it(): framelist.write("".join(["file '" + f + "'\n" for f in frames])) #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") diff --git a/readme.md b/readme.md index 5c086a9..496772c 100644 --- a/readme.md +++ b/readme.md @@ -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 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 + diff --git a/take_a_still.py b/take_a_still.py index c697587..b64f920 100644 --- a/take_a_still.py +++ b/take_a_still.py @@ -41,3 +41,6 @@ with open(index_filename, "r") as the_file: with open(index_filename, "w") as the_file: 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") diff --git a/telescopium.service b/telescopium.service index 6531e2d..5c86928 100644 --- a/telescopium.service +++ b/telescopium.service @@ -8,4 +8,3 @@ ExecStart=python /home/shoofle/telescopium/take_a_still.py User=shoofle [Install] -WantedBy = multi-user.target