diff --git a/example.env.py b/example.env.py index e624351..e756302 100644 --- a/example.env.py +++ b/example.env.py @@ -1,4 +1,8 @@ +if __name__ == '__main__': + print("This is not a script!") + exit() + UPTIME_KUMA_ADMIN_USER='admin' -UPTIME_KUMA_ADMIN_PASSWORD='admin' +UPTIME_KUMA_ADMIN_PASSWORD='admin123' UPTIME_KUMA_URL='https://status.example.com' -UPTIME_KUMA_OUT='/path/to/file.html' +UPTIME_KUMA_OUT='/path/to/file.html' \ No newline at end of file diff --git a/uptime-kuma-homepage.py b/uptime-kuma-homepage.py index 7a32886..e93f0bb 100755 --- a/uptime-kuma-homepage.py +++ b/uptime-kuma-homepage.py @@ -1,5 +1,6 @@ #! /bin/python3 -import json,env +import json +from env import * from uptime_kuma_api import UptimeKumaApi, MonitorType descriptions = {