I would like to run a daily cron job that will reassure me that Syncthing is still running on all three of my machines and that it is Up-to-date in the three places that I now see in the web GUI: local folders, remote device 1, and remote device 2. Currently I do this visually by looking at the web GUI on my primary machine and confirming “Up-to-date” for folders and remote devices.
I succeeded in using the REST interface to read various status information, but I was not clever enough to figure out (not quickly, anyway) how to get the basic summary information that most interests me: is it running, and is it up-to-date.
Is there in fact a straightforward way to get this information either via the REST interface or by reading the contents of a log file?
In /rest/system/connections I see who is connected and whether paused, but not the up-to-date status. (Also the mnemonic names are not there that appear in the GUI.)
In /rest/db/status I’m not sure which combination of fields indicates “up-to-date” since nearly every field’s value is zero.
I apologize in advance that I did not read through the GUI code before asking this question. I did read through the REST API documentation.