Hi there,
I am writing a plugin for subtitles for using with the dreambox (gSUB). When doing this I need to get hold of some status from Enigma, i.e. what PIDs are used, is there an ongoing recording, are we in file mode, etc. Today, I am using the WebIF and specifically the /cgi-bin/status request to collect this information.
This is working very well in almost all cases. I am normally asking this question every 2 seconds to see if something has changed, i.e polling every 2 seconds.
However, there is a problem when using a dm500 model and recording to a network disk at the same time. If I am polling through WebIF while recording the recording gets corrupted... I have tested with writing a script (.sh file) where I only do a while loop with a "sleep 2" and a "wget ...." to this status page. If I start recording while this is running, I also end up with corrupted recordings. So, it seems like the 500 box cannot handle web requests while recording...probably due to the lack of CPU power???
Anyway, my idea was that you maybe could create a file like "/tmp/.enigma_status" with all this information that many plugins use and we could poll status from disk instead of poll through the network stack.
Or, is there any other way to get information out from Enigma?
Please help/advice...
/Gruffy