{"action":"created","issue":{"url":"https://api.github.com/repos/thomasjacquin/allsky/issues/21","repository_url":"https://api.github.com/repos/thomasjacquin/allsky","labels_url":"https://api.github.com/repos/thomasjacquin/allsky/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/thomasjacquin/allsky/issues/21/comments","events_url":"https://api.github.com/repos/thomasjacquin/allsky/issues/21/events","html_url":"https://github.com/thomasjacquin/allsky/issues/21","id":336924388,"node_id":"MDU6SXNzdWUzMzY5MjQzODg=","number":21,"title":"FTP issue","user":{"login":"perulero","id":40088512,"node_id":"MDQ6VXNlcjQwMDg4NTEy","avatar_url":"https://avatars0.githubusercontent.com/u/40088512?v=4","gravatar_id":"","url":"https://api.github.com/users/perulero","html_url":"https://github.com/perulero","followers_url":"https://api.github.com/users/perulero/followers","following_url":"https://api.github.com/users/perulero/following{/other_user}","gists_url":"https://api.github.com/users/perulero/gists{/gist_id}","starred_url":"https://api.github.com/users/perulero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perulero/subscriptions","organizations_url":"https://api.github.com/users/perulero/orgs","repos_url":"https://api.github.com/users/perulero/repos","events_url":"https://api.github.com/users/perulero/events{/privacy}","received_events_url":"https://api.github.com/users/perulero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-29T09:15:56Z","updated_at":"2018-06-29T22:14:30Z","closed_at":null,"author_association":"NONE","body":"Hi All\r\n\r\nI am sending the images to my ftp server from a pi zero W (works well) !\r\nHowever I am finding the images are sent through as the same image (image resize.jpg) filename..\r\nI want all my images sent through (full size) with date and time in filename to my ftp server\r\nHow should I modify the Saving.sh file to do this?\r\n\r\nJoe"},"comment":{"url":"https://api.github.com/repos/thomasjacquin/allsky/issues/comments/401487170","html_url":"https://github.com/thomasjacquin/allsky/issues/21#issuecomment-401487170","issue_url":"https://api.github.com/repos/thomasjacquin/allsky/issues/21","id":401487170,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTQ4NzE3MA==","user":{"login":"perulero","id":40088512,"node_id":"MDQ6VXNlcjQwMDg4NTEy","avatar_url":"https://avatars0.githubusercontent.com/u/40088512?v=4","gravatar_id":"","url":"https://api.github.com/users/perulero","html_url":"https://github.com/perulero","followers_url":"https://api.github.com/users/perulero/followers","following_url":"https://api.github.com/users/perulero/following{/other_user}","gists_url":"https://api.github.com/users/perulero/gists{/gist_id}","starred_url":"https://api.github.com/users/perulero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perulero/subscriptions","organizations_url":"https://api.github.com/users/perulero/orgs","repos_url":"https://api.github.com/users/perulero/repos","events_url":"https://api.github.com/users/perulero/events{/privacy}","received_events_url":"https://api.github.com/users/perulero/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T22:14:30Z","updated_at":"2018-06-29T22:14:30Z","author_association":"NONE","body":"Hi Thomas\n\n \n\nGot this allsky camera working on a pi zero W and even though the cpu runs at 100% all night the system held up very well and did what it was expected to do.. got the images uploading to my ftp.\n\n \n\nHow do I get the video and star trails to upload as well\n\n \n\n \n\nCheers\n\n \n\nJoe\n\n \n\nFrom: Thomas Jacquin [mailto:notifications@github.com] \nSent: Saturday, 30 June 2018 1:55 AM\nTo: thomasjacquin/allsky <allsky@noreply.github.com>\nCc: perulero <perulero@internode.on.net>; Author <author@noreply.github.com>\nSubject: Re: [thomasjacquin/allsky] FTP issue (#21)\n\n \n\nHi Joe,\n\nHere's what I would do around line 34:\n\n[...]\n# Save image in images/current directory\nDATE=$(date +'%Y%m%d%H%M%S')\ncp $IMAGE_TO_USE \"images/$CURRENT/$FILENAME-$DATE.$EXTENSION\"\n \necho -e \"Saving $FILENAME-$DATE.$EXTENSION\\n\" >> log.txt\n \n# If upload is true, create a smaller version of the image and upload it\nif [ \"$UPLOAD_IMG\" = true ] ; then\n        echo -e \"Resizing\\n\"\n        echo -e \"Resizing $FULL_FILENAME\\n\" >> log.txt\n \n        # Create a thumbnail for live view\n        # Here's what I use with my ASI224MC\n        convert \"$IMAGE_TO_USE\" -resize 962x720 -gravity East -chop 2x0 \"$FILENAME-$DATE.$EXTENSION\";\n        # Here's what I use with my ASI185MC (larger sensor so I crop the black around the image)\n        #convert \"$IMAGE_TO_USE\" -resize 962x720 -gravity Center -crop 680x720+40+0 +repage \"$FILENAME-$DATE.$EXTENSION\";\n \n        echo -e \"Uploading\\n\"\n        echo -e \"Uploading $FILENAME-resize.$EXTENSION\\n\" >> log.txt\n        lftp \"$PROTOCOL\"://\"$USER\":\"$PASSWORD\"@\"$HOST\":\"$IMGDIR\" -e \"set net:max-retries 1; set net:timeout 20; put $FILENAME-$DATE.$EXTENSION; bye\" &\nfi\n\nBasically, you create a DATE variable and you replace the word 'resize' by the date so it will be a different timestamp for each upload. I haven't tested it so let me know if it's still not working.\n\nThomas\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub <https://github.com/thomasjacquin/allsky/issues/21#issuecomment-401397201> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AmOzwM-xydOdFozl2VVcW4uU68Q8GY8Wks5uBk3XgaJpZM4U8s3L> .  <https://github.com/notifications/beacon/AmOzwMpUIJvAdGSOR3q2C4H4PUtltYsCks5uBk3XgaJpZM4U8s3L.gif> \n\n\n\n---\nThis email has been checked for viruses by AVG.\nhttps://www.avg.com\n"}}
{"actor":{"display_login":"perulero"}}