Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timelapse uploading to wrong directory #552

Closed
maserowik opened this issue Oct 4, 2021 · 1 comment · Fixed by #555
Closed

Timelapse uploading to wrong directory #552

maserowik opened this issue Oct 4, 2021 · 1 comment · Fixed by #555

Comments

@maserowik
Copy link

I did a fresh git pull today and redid my custom settings. I did a endOfNight.sh from a ssh session and it appears the my timelapse is going to a different location compared to the keograms and startrails.

<
endOfNight.sh: ===== Generating Keogram
upload.sh: FTP'ing /home/pi/allsky/images/20211003/keogram/keogram-20211003.jpg to /domains/n3bsq.com/public_html/allsky/keograms//keogram-20211003.jpg
INFO: '/home/pi/allsky/tmp/lftp_cmds.txt' contains the lftp commands used to upload the file.

endOfNight.sh: ===== Generating Startrails
Minimum: 0.288899 maximum: 0.999769 mean: 0.814339 median: 0.963642
No images below threshold, writing the minimum image only
upload.sh: FTP'ing /home/pi/allsky/images/20211003/startrails/startrails-20211003.jpg to /domains/n3bsq.com/public_html/allsky/startrails//startrails-20211003.jpg
INFO: '/home/pi/allsky/tmp/lftp_cmds.txt' contains the lftp commands used to upload the file.

endOfNight.sh: ===== Generating Timelapse
timelapse.sh: Processing 23 images...
[swscaler @ 0x22e7e70] deprecated pixel format used, make sure you did set range correctly
timelapse.sh: Timelapse was created
upload.sh: FTP'ing /home/pi/allsky/images/20211003/allsky-20211003.mp4 to allsky-20211003.mp4
INFO: '/home/pi/allsky/tmp/lftp_cmds.txt' contains the lftp commands used to upload the file.
pi@Pi-AllSky:~/allsky/scripts $

for the timelapse it is not appending the /domains/n3bsq.com/public_html/allsky/videos/filename

my ftp settings are as follows

IMGDIR='/domains/n3bsq.com/public_html/allsky/image/'
MP4DIR='/domains/n3bsq.com/public_html/allsky/videos/'
KEOGRAM_DIR='/domains/n3bsq.com/public_html/allsky/keograms/'
STARTRAILS_DIR='/domains/n3bsq.com/public_html/allsky/startrails/'

Mike

@linuxkidd
Copy link
Collaborator

Somewhere along the way... the upload scripts started using a variable name ( VIDEOS_DIR ) that don't exist in the ftp-settings (or any other) file. I'm guessing a locally used / future version got committed by accident.

To get your code working, you can modify the ftp-settings.sh file and change MP4DIR to VIDEOS_DIR.

I'll submit a PR for this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants