jmclaren7 / uptime-kuma-push

PowerShell script to leverage UptimeKuma's push feature with local uptime tests
BSD 2-Clause "Simplified" License
6 stars 1 forks source link

Script for Linux #1

Open MindlessGamingDE opened 4 months ago

MindlessGamingDE commented 4 months ago

Hello there..

i wanna ask if you could translate this script to bash or shell script... would be nice for Linux users

:)

jmclaren7 commented 4 months ago

I'll look into it but some of the things in the script (like reading from JSON) are much more complicated in bash, I could see maybe rewriting in python but for now another alternative I've used for other powershell scripts is to use powershell in docker. I just uploaded an example compose.yml... https://github.com/jmclaren7/uptime-kuma-push/blob/main/compose-example.yml

Since the docker solution isn't using any scheduling like cron, you'll want to use the loop and loop_delay options in my script to let the script repeat forever inside the container.

Let me know what you end up doing and how it works, I might improve the compose example and add a little documentation if it seems like a reasonable solution.

MindlessGamingDE commented 4 months ago

That would be awesome if you could do that...

Thank you so much <3