Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Show Picture - variable path

If you have a question or need help, this is the place to be.
Post Reply
vasikgreif
Posts: 2
Joined: Fri Aug 26, 2011 9:38 am

Show Picture - variable path

Post by vasikgreif »

Hi, absolute newbie here. Is it possible to pass a variable for ShowPicture action somehow? I would need to pass variable from PHP/JS script, which outputs the path to the file I need to display. Thanks for help.
kalia
Experienced User
Posts: 109
Joined: Wed Aug 12, 2009 1:10 am

Re: Show Picture - variable path

Post by kalia »

Yes, it should be possible. You could trigger an event with file path as the payload. Then use {eg.event.payload} in the Show Picture action path.

I don't know exactly how you trigger an event through PHP/JS script.
vasikgreif
Posts: 2
Joined: Fri Aug 26, 2011 9:38 am

Re: Show Picture - variable path

Post by vasikgreif »

Hi, thanks for reply. To describe what I need: We use ResourceSpace web app as our asset management system. Now I need to choose the image via ResourceSpace on iPad, and display it on TV. The only way I came with to do this was to write a plugin, that will get the path to the image in RS, pass it as variable somewhere and trigger EG action via it's webserver. I'm not a programmer, so don't know if this is possible at all, but I suppose that it should be doable:

When I click on "display on TV link" in RS:
1) The plugin get's the path to the actual image, passes it as variable somewhere
2) plugin binds to the IP with EG webserver and triggers an event via it
3) EG loads the path variable and displays the image

Do you think this is doable? Or, is anyone here interested to take this as paid job?
Post Reply