Python Forum
Script ends, does not start again
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script ends, does not start again
#7
Quote:
   else:
        
       # Just trapping out the WHILE Statement
       print " ====================================== Doing nothing at this time"

You should probably put time.sleep() there, with pretty much any increment (even just 1 second). As it stands now, it'll run the loop continuously, non-stop, while the sun's down. Which means the device could get very hot. Depending on how hot is it outside, it could get hot enough to cause permanent damage.
Reply


Messages In This Thread
Script ends, does not start again - by phanegem - Mar-30-2017, 11:12 AM
RE: Script ends, does not start again - by buran - Mar-30-2017, 11:16 AM
RE: Script ends, does not start again - by phanegem - Mar-30-2017, 11:26 AM
RE: Script ends, does not start again - by buran - Mar-30-2017, 11:59 AM
RE: Script ends, does not start again - by wavic - Mar-30-2017, 12:06 PM
RE: Script ends, does not start again - by phanegem - Mar-30-2017, 12:41 PM
RE: Script ends, does not start again - by nilamo - Mar-30-2017, 06:19 PM
RE: Script ends, does not start again - by wavic - Mar-30-2017, 07:31 PM
RE: Script ends, does not start again - by nilamo - Mar-30-2017, 07:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pywin32: Outlook connection ends with 'operation aborted' on one machine tstone 0 2,476 May-03-2022, 04:29 AM
Last Post: tstone
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,591 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  Regex: a string does not starts and ends with the same character Melcu54 5 2,507 Jul-04-2021, 07:51 PM
Last Post: Melcu54
  threadlocals are garbage collected before thread ends akv1597 0 1,843 Mar-09-2021, 12:13 PM
Last Post: akv1597
  Running a few lines of code as soon as my timer ends nethatar 3 2,465 Feb-26-2021, 01:02 PM
Last Post: jefsummers
  Writing to file ends incorrectly project_science 4 2,800 Jan-06-2021, 06:39 PM
Last Post: bowlofred
  Keep Application running after Python script ends PEGylated_User 0 2,029 Nov-12-2020, 03:27 PM
Last Post: PEGylated_User
  Looking for help on making a script [no idea where to start] Chietnemese 1 1,795 Jun-26-2020, 03:50 AM
Last Post: Larz60+
  how to stop and start a script for 30 seconds laspaul 9 7,808 Jan-16-2020, 02:13 PM
Last Post: laspaul
  Multiple start of script dev1755 2 2,223 Sep-22-2019, 10:44 PM
Last Post: dev1755

Forum Jump:

User Panel Messages

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