Hi,
I wonder how I could get the local service Device ID for sure. I’m trying to automate the installation and configuration of syncthing. I have several syncthing services on each node, one per user, and several nodes.
In the configuration file, I can see all known devices for a service, without a specific entry for the local one.
In the REST API, I can get all devices from rest/system/config
just as in the configuration file, or with rest/stats/device
. The only thing that seems consistent is that the lastSeen
value of the local device is the Epoch.
Is this lastSeen
value consistent enough to identify the local device ID? Or is there a better way?