I have a bash script which runs on the Pi and creates an image of my Octoprint SD Card on my NAS (amongst other things) which I'm intending to run with cron.
Before I do so, is there a method of testing if OctoPrint is "idle" and just serving the web page from the command line? I want to make my script wait until whatever is happening has finished before it stops the OctoPrint service and makes the image.