# Syncthing is the BEST! Help me detect "Up to Date" with REST

**URL:** https://forum.syncthing.net/t/syncthing-is-the-best-help-me-detect-up-to-date-with-rest/10968
**Category:** Feature
**Created:** [November 18, 2017, 2:34am UTC](https://forum.syncthing.net/t/syncthing-is-the-best-help-me-detect-up-to-date-with-rest/10968 "2017-11-18T02:34:06Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Martchus](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@Martchus](https://forum.syncthing.net/u/Martchus)
#### Post date: [November 18, 2017, 8:08pm UTC](https://forum.syncthing.net/t/syncthing-is-the-best-help-me-detect-up-to-date-with-rest/10968/6 "2017-11-18T20:08:17Z")

</div>

@rlpowell Your script looks like it serves a similar purpose as the `wait-for-idle` command of my [`syncthingctl`](https://forum.syncthing.net/t/yet-another-syncthing-tray/8502/28) utility. Here’s an excerpt from its `--help`:

```
wait-for-idle, -w
  waits until the specified dirs/devs are idling
  --dir, -d [ID]
    specifies the directories, default is all dirs
  --dev [ID]
    specifies the devices, default is all devs
  --at-least, -a [number]
    specifies for how many milliseconds Syncthing must idle (prevents exiting to early in case of flaky status)
  --timeout, -t [number]
    specifies how many milliseconds to wait at most

  example: syncthingctl wait-for-idle --timeout 1800000 --at-least 5000 && systemctl poweroff
           syncthingctl wait-for-idle --dir dir1 --dir dir2 --dev dev1 --dev dev2 --at-least 5000

```

The utility is using the event API Jakob mentioned.

---

_[View the full topic](https://forum.syncthing.net/t/syncthing-is-the-best-help-me-detect-up-to-date-with-rest/10968)._
