Python Forum
waiting to save on network
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
waiting to save on network
#1
Hi all

Im trying to make a code that takes a picture every morning 1 hour before sunset and save the picture on my NAS. the code works fine as long as the picture is saved within the first few minutes after the code has started. But of course the sun dont get up at the same time everyday so there is a long waiting time and the connection to the server closes.

How do I make the code not open the connection to early?
the current save code for the NAS is

        with open(filePath, 'rb') as file:
            conn.storeFile(DestinationPath, Filename, file)
It works as a charm if I need it to save a once. but I don't Confused

Thanks in advance
Reply


Messages In This Thread
waiting to save on network - by SusKahl - Apr-05-2020, 04:35 PM
RE: waiting to save on network - by keuninkske - Apr-05-2020, 06:06 PM
RE: waiting to save on network - by SusKahl - Apr-05-2020, 06:48 PM
RE: waiting to save on network - by keuninkske - Apr-05-2020, 09:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020