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

Add API call for navigating to a specific asset #662

Closed
3PO opened this issue Oct 22, 2017 · 6 comments

Comments

@3PO
Copy link

commented Oct 22, 2017

Hi,

is it possible to implant a function that enables to control the Assets by hand?

Normally the Assets will shown automaticly, but i want to call the Assets e.g. by a keypress, or a ir-remote control (-> lirc).

@vpetersson

This comment has been minimized.

Copy link
Contributor

commented Oct 22, 2017

You can't disable the transition, but you could do something like this:

  • Set the duration to something very high (like an hour)
  • Use the control API call to navigate

You'd have to write some kind of event handler for LIRC or keys for this tho.

@vpetersson vpetersson added the question label Oct 22, 2017

@3PO

This comment has been minimized.

Copy link
Author

commented Oct 22, 2017

Thanks for the response.

When i do,

curl -s http://localhost:8080/api/v1/assets/control/previous
or
curl -s http://localhost:8080/api/v1/assets/control/next

it works fine, but i'am not able to select a asset directly.

I have 4 assets,

raspberrypi ~ # curl -s http://localhost:8080/api/v1/assets | python -m json.tool |grep "asset_id" |cut -d \" -f4
2a780f8b3abb4d458c2730ec8e1c2136
1ebd3f91d3944fa798ea38438d3b29a6
4e87566490964aed8122cb34fb6682b6
0693aefa873e40cd8c75c4be57b360f2

but if i want to switch to "Asset 2", this

curl -s http://localhost:8080/api/v1/assets/1ebd3f91d3944fa798ea38438d3b29a6

doesn't work. :(

What do i wrong?

@vpetersson

This comment has been minimized.

Copy link
Contributor

commented Oct 22, 2017

Right, so there's currently no API call for navigating to a particular asset. It is however a good idea to add. I'm not sure if we have the bandwidth to squeeze that into the next sprint.

@3PO

This comment has been minimized.

Copy link
Author

commented Oct 22, 2017

Nice, but maybe you have the "bandwidth" to extend the API to start/stop the slideshow? ;)

@vpetersson

This comment has been minimized.

Copy link
Contributor

commented Oct 23, 2017

No, that would unfortunately require a equally (or possibly even more) work.

@vpetersson vpetersson changed the title [RFE] Control the Assets by hand Add API call for navigating to a specific asset Nov 21, 2017

@vpetersson vpetersson added this to the Sprint 6 milestone Dec 3, 2017

@vpetersson

This comment has been minimized.

Copy link
Contributor

commented Dec 3, 2017

I'm thinking that it should be possible to navigate to any asset (enabled or disabled etc) and once the asset has been displayed it would return to the regular playlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.