Apparently I need the syncthing-cli tool (which for Windows, right? It is Windows I’m asking about; I’ve found a way to check the status using Bash, so my Linux machines are catered for). But, where can I get syncthing-cli? I can’t find the file on my system and neither can I find somewhere to download the file.
Unfortunately I can only say it works on my computer. I’ve been trying mintty and cmd.exe under a recent Windows 10. Both commands - the automatic detection of the config file and specifying it manually - work.
Of course it will wait until a timeout is reached if the instance isn’t available but then you’ll get Connection timed out. Unfortunately there’s currently no way to specify the timeout and I’m not even sure where the default comes from. I’ll add a way to configure the timeout but for now it is maybe better to use one of the other tools.
By the way, you know that you can run scripts on Windows, too (and even Bash scripts e.g. using MSYS2)? Because checking the availability is really just an HTTP call so it makes actually sense to keep it simple.
I’m running syncthingctl status again and I’ll leave it for a long time to see whether it times out, in case I can learn anything from any error message.
As to running a Bash script, I’m afraid I don’t see how using an emulator fits with your recommendation to keep things simple! As to just using any form of script: well, yes, the plan was to put syncthingctl status into a batch file run by Rainmeter (which, of you don’t know it, but do know conky, is a kind of conky for Windows). But perhaps I misunderstand you on some point(s).
PS: The command has been running in a terminal for five minutes now and still not stopped.