diff --git a/bot.py b/bot.py index 846cd8f..c670291 100644 --- a/bot.py +++ b/bot.py @@ -71,8 +71,9 @@ def post_plot(config): print(r) def setup(config): - schedule.every(30).seconds.do(lambda: post_plot(config)) + #schedule.every(30).seconds.do(lambda: post_plot(config)) #schedule.every().week.do(post_plot) + schedule.every().day.do(lambda: post_plot(config)) if __name__ == "__main__": parser = argparse.ArgumentParser(description="DoorStateBot") @@ -83,4 +84,4 @@ if __name__ == "__main__": if args.loop: loop(vars(args)) else: - main(vars(args)) \ No newline at end of file + main(vars(args)) diff --git a/requirements.txt b/requirements.txt index 651d147..962c238 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -requests -schedule \ No newline at end of file +requests==2.18.4 +schedule==0.4.3