Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
schedule module conundrum
#3
(May-28-2019, 08:42 PM)Gribouillis Wrote: Your description makes it very difficult to understand the issue. If you don't have an error message to post, could you post expected output vs actual output?

The message content should contain the current temp and the current date and time the message was sent. But the content of the message is repeating from the moment of first execution. Same "temp" & "time". over and over. The values are not being updated.

the currenttemp was set to a hard value in the example code for the purposes of this post. In my actual code, the temp is read from a device file and that's not getting updated either. (I couldn't figure out how to show that in the post.

The scheduled job is not "polling" the current "variable values" to insert into the content of the message. IE temp & time. this can be seen in my example code. the message will cycle, but the date and time don't change.

If I have the scheduled event set to take place every 1 min. the timestamp within the message should be 1 min apart from the previous message. It is not. It's like the "schedule module" took a snapshot of the message then re-issues it at whatever time-marker I set.

As simply as I can put it "the variables contained within the message and not getting updated prior to the execution of the scheduled event".. which is "send message"

if someone could show me the proper way to get the "current" datetime in the message prior to its scheduled excecution (IE:send message), I think I can figure out the temperature. atleast I hope.
Reply


Messages In This Thread
schedule module conundrum - by wgovideo - May-28-2019, 07:48 PM
RE: schedule module conundrum - by Gribouillis - May-28-2019, 08:42 PM
RE: schedule module conundrum - by wgovideo - May-28-2019, 09:31 PM
RE: schedule module conundrum - by Yoriz - May-28-2019, 09:45 PM
RE: schedule module conundrum - by wgovideo - May-28-2019, 09:54 PM
RE: schedule module conundrum - by Yoriz - May-28-2019, 09:57 PM
RE: schedule module conundrum - by wgovideo - May-28-2019, 10:05 PM
RE: schedule module conundrum - by Yoriz - May-28-2019, 10:09 PM
RE: schedule module conundrum - by wgovideo - May-28-2019, 10:29 PM
RE: schedule module conundrum - by wgovideo - May-29-2019, 03:38 AM
RE: schedule module conundrum - by Gribouillis - May-29-2019, 06:14 AM
RE: schedule module conundrum - by wgovideo - May-29-2019, 06:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Schedule exit a program at a specific time 4 am every day. chubbychub 3 1,708 May-17-2024, 03:45 PM
Last Post: chubbychub
  Cancelling previous schedule cosmarchy 2 4,421 Sep-15-2021, 04:55 PM
Last Post: Larz60+
  Hosting a script on a VPS, and on a schedule? oldguy 0 3,629 Mar-13-2021, 02:46 AM
Last Post: oldguy
  something i noticed about the "schedule" module Stan2292 1 2,402 Aug-30-2019, 06:04 AM
Last Post: buran
  How to schedule Jupyter Notebooks with Papermill wendysling 0 3,017 Jun-11-2019, 05:53 PM
Last Post: wendysling
  I got a problem with python schedule darktitan 2 4,621 Sep-22-2018, 12:49 PM
Last Post: darktitan
  Schedule with other processing RValentim 7 5,407 Jul-10-2018, 12:57 PM
Last Post: RValentim
  How to convert Schedule to APScheduler module? penguin9 2 4,656 May-03-2018, 12:44 PM
Last Post: penguin9
  Creating a schedule program ndplokkaar 4 5,756 Nov-23-2017, 04:21 PM
Last Post: ndplokkaar

Forum Jump:

User Panel Messages

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