milan-fabian / slideshow-support

Support and issue tracking for Slideshow software
https://slideshow.digital/
15 stars 1 forks source link

Feature request: Last synchronized timestamp #35

Closed kentare closed 1 year ago

kentare commented 1 year ago

Really an extension of this: #33

Request: When getting device info (I use mqtt for remote pseudo-control over slideshow) it would be great if I could get synchronization information with a timestamp and if the synch was manual or automatic.

Maybe something like this?

{
...device info,
lastSynchronized: manual-1675496322
}
{
...device info,
lastSynchronized: auto-1675496322
}
{
...device info,
lastSynchronized: null
}
milan-fabian commented 1 year ago

@kentare The device info response is getting quite large, I would rather make a new endpoint (synchronize/status?) for getting info about the last file synchronization with more details, like this:

{
   "lastSynchronization": {
      "timestamp": "2023-02-04T10:44:00+01:00",
      "triggered": "manual",
      "filesDownloaded": 3,
      "filesFailed": 0
   }
}

I will have a look at it in the next version.

kentare commented 1 year ago

I think that is a good solution @milan-fabian

milan-fabian commented 1 year ago

@kentare there is a new version of Slideshow app available on https://slideshow.digital/apk/4.3.0/slideshow-android-4.3.0.apk, with added support for checking the synchronization status (among other new features). It is available through endpoint synchronize/last, either via MQTT operation synchronize/last or HTTP REST API GET /ajax/synchronize/last.

This version is not published yet, I will do it in a few days after finishing up all the testing. If you have some free time, I would appreciate it if you could test this new version as well.

kentare commented 1 year ago

@milan-fabian I will try to test the new version this weekend

kentare commented 1 year ago

I have tested on emulator (bluestacks) and from my testing, this API seems stable and works as expected.

Unrelated: I have some unrelated questions about statistics gathering, do you want me to make a new issue for this or is the another IM channel I can reach you?

milan-fabian commented 1 year ago

@kentare I suggest writing an email to slideshow@slideshow.digital, it's the fastest way.