- make a push request checking monitor
- copy the push url
- paste the code at the top of the script and place the url in its respective place
- Run your script and save your monitor
Last active
August 26, 2022 14:59
-
-
Save oliverstech/47657f42926be02bd4e5f066b926685c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def uptime_kuma(): | |
requests.get("YOUR-PUSH-URL-HERE") | |
#print("--Pushed to uptime kuma--") | |
threading.Timer(60, uptime_kuma).start() # If you change the heartbeat interval, then change 60 to whatever you set it to | |
# wherever your script begins | |
uptime_kuma() | |
# then do your usual script stuff | |
name = input("Hello, what is your name? ") | |
print("Hello, " + name + "!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment