Picture upload via FTP

Got an idea for something that SharpCap should do? Share it here.
Forum rules
'+1' posts are welcome in this area of the forums to indicate your support for a particular feature suggestion. Suggestions that get the most +1's will be seriously considered for inclusion in future versions of SharpCap.
Post Reply
PoSiRO
Posts: 2
Joined: Wed Sep 19, 2018 3:09 am

Picture upload via FTP

#1

Post by PoSiRO »

Hello Robin,
I have not used SharpCap Pro for a very long time, but I am absolutely thrilled with the software.
When using my ASI 178MC with SharpCap as an All Sky camera, I came up with the following idea:

If you would equip SharpCap with an FTP functionality, you could copy the images of the AllSky camera (or any camera) in an adjustable time interval via FTP to a web server and display it on a web page. The advantage of this would be that several (many) users can see these images to get an idea of the local sky, without burdening the traffic of the observatory. In addition, I would imagine that there are people who would use this feature for remote-controlled time-lapse recording.

Since the live stacking delivers perfect images of the sky, the combination would be an ingenious solution.
---
Werner
User avatar
admin
Site Admin
Posts: 13173
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Picture upload via FTP

#2

Post by admin »

Hi Werner,

this sounds like a task that could be handled by the SharpCap python scripting tool -

* Python supports FTP - https://docs.python.org/2/library/ftplib.html
* SharpCap allows you to get the last captured filename

Code: Select all

SharpCap.GetLastCaptureFilename()
* Put a delay in between each upload - https://docs.python.org/2/library/time.html#time.sleep
* Wrap it in a loop to run it repeatedly - https://wiki.python.org/moin/WhileLoop
* Run it in a separate thread to keep the main SharpCap UI responsive - https://www.tutorialspoint.com/python/p ... eading.htm

If you don't feel like using scripting then it may be possible to use some sort of separate ftp program to automatically sync captured images to your FTP server.

cheers,

Robin
User avatar
turfpit
Posts: 1779
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Picture upload via FTP

#3

Post by turfpit »

Werner

Have a look at https://winscp.net/eng/docs/guide_automation plus https://winscp.net/eng/docs/guide_schedule for automated scheduling.

Dave
PoSiRO
Posts: 2
Joined: Wed Sep 19, 2018 3:09 am

Re: Picture upload via FTP

#4

Post by PoSiRO »

:D :D :D
Thank you very much, that sounds nice!
I, for my self, have not very much knowledge of python. But i know one with that knowledge.

I will try to catch him and if ... I let you know
Thank's again
---
Werner
User avatar
admin
Site Admin
Posts: 13173
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Picture upload via FTP

#5

Post by admin »

Excellent - good luck!

The python scripting is there for just this sort of thing where someone has a request for a feature that would suit them perfectly but isn't going to be used by many SharpCap users - they can add their special feature with the scripting.

cheers,

Robin
Post Reply