Log & IP address from HTTP API

Hi, I have a request to obtain some more info from the Supervisor HTTP API:

  1. I’d like to obtain the current IP address of a specific Device within an application
  2. It would also be great to receive the last 10 or so log lines from a specific Device within an application

Would any of this be possible through the API?

Robin

Hi. I think you don’t even need the supervisor (on-device) API for that — the Resin (cloud) API can be used instead.
Have you looked into our CLI and / or SDKs?


There’s also https://github.com/resin-io/resin-sdk-python if you prefer Python.

Perfect, thanks Eugene. I use NodeJS so the SDK works perfectly. I didn’t know it existed, so thanks for that.

You’re welcome. Should you have any issues please report them to the corresponding repos.