Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to use mqtt to request resync? #33

Closed
kentare opened this issue Dec 20, 2022 · 4 comments
Closed

Possible to use mqtt to request resync? #33

kentare opened this issue Dec 20, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@kentare
Copy link

kentare commented Dec 20, 2022

Does this exist now?

Here is what I want to do: I want to set up an external endpoint that have only the config file zipped (i.e example.com/config.zip). But I only want the device to sync 1. When the device is being set up, and 2. When I update my config file, I want to be able to tell the device to resync to get the new one.

I guess this is a feature request if this does not already exist.

@milan-fabian
Copy link
Owner

@kentare Hello, there is no public MQTT command to trigger resync in Slideshow yet, but it won't be very hard to add it.

@milan-fabian milan-fabian added the enhancement New feature or request label Dec 20, 2022
@kentare
Copy link
Author

kentare commented Dec 20, 2022

It would be amazing to have this feature. It opens up for the tech savvy to have have remote sync on demand (i.e broadcasted through mqtt) if you do changes instead of interval based sync.

@milan-fabian
Copy link
Owner

Support for triggering file synchronization through HTTP API as well as MQTT was added in Slideshow 4.1.0.

Example command through MQTT:
{"operation": "synchronize", "parameters": {"url": "https://example.com/data.zip", "method": "GET", "target": "file.zip", "clearFolder": false}}

The parameters are the same as in /ajax/synchronize REST API, as described in the documentation: https://slideshow.digital/documentation/rest-api/.

@milan-fabian milan-fabian added this to the Slideshow 4.1.0 milestone Dec 21, 2022
@kentare
Copy link
Author

kentare commented Dec 21, 2022

Amazing! You work faster than the speed of light. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants