[SOLVED] How to get the local Device ID?


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?

Check how Show My Id does it in the web ui.



That’s exactly what I was looking for. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.