Skip to content

Instantly share code, notes, and snippets.

@oliverstech
Last active August 26, 2022 14:59
Show Gist options
  • Save oliverstech/47657f42926be02bd4e5f066b926685c to your computer and use it in GitHub Desktop.
Save oliverstech/47657f42926be02bd4e5f066b926685c to your computer and use it in GitHub Desktop.
  1. make a push request checking monitor
  2. copy the push url
  3. paste the code at the top of the script and place the url in its respective place
  4. Run your script and save your monitor
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