Hello Pako;Pako wrote:When you use the action "Start periodical reading", so you can not print eg.result. This action does not result, this action only starts the periodic reading.
Content (or certain lines) of file you can only receive as eg.event.payload.
You certainly do not need to actually print the "result".
Perhaps it would be better to write exactly what you need.
Pako
Thanks for your reply.
Here is what I would like to do:
I run a media player called TMT5 on my home theater PC (HTPC). TMT5 outputs during operation, i.e. playback of a media file (movie) an ASCII file, containing information about the playback state of the file.
Here is an example:
[States]
State=stop
TotalTitle=11
CurTitle=1
TotalChapter=18
CurChapter=4
TotalTime=1:15:13
CurTime=0:13:32
Video=mpeg2
Audio=ac3
CurSpeed=0.000000
TotalAudio=2
CurAudio=2
AudioLangs=
TotalSubtitle=0
CurSubtitle=0
SubtitleLangs=
Mute=false
Volume=60
TMT continuously updates this file, e.g. the CurTime counter goes up every second by a second, so if I refresh the file 5 seconds later, it should show instead of CurTime=0:13:32, ...=0:13:37, etc.
I would like to extract some of this information (state, chapter and time information) from the file and broadcast it to my universal remote control, so it can be displayed there. Basically I would like to show the kind of information one finds on a display of a standalone DVD player.
My remote is a iRule app that runs on an iPad (http://iruleathome.com/). I have 2-way feedback working already with the Broadcast plugin, but only for simple things like whether the HTPC is on or not. I do this by sending a query command from the iRule and EG on my HTPC responds with a simple ON broadcast command.
I guess what I am struggling with most is how to broadcast the information that has been captured by the periodic reading. Unfortunately, I do not know how to use 'eg.event.payload'.
Hope this is clearer now.
TIA!