QNAP QPKG for DVR Record Engine

Downloads & Instructions
Post Reply
demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

alphatech wrote:Rik, I wanted to thank you for following up with me in private about my post in regard of installing this QPKG. For some reason, I 'm unable to reply to your email so I will try to bother you with my issue about installing it on this post. I hope I will not annoying anyone here as well. First of all your dedication is admirable and you have lot of patience, that is appreciated. My current status at the moment, I was able to install the QPKG without issues, unfortunately maybe because I'm accessing it from the web portal I'm getting this error "The operation timed out." I will check it again when I get back home and report to you back. In the mean time, thanks again for reaching out to me.

P.S. Do you know why I can't reply to you via the private message system?
First one could be that the webserver isn't running for some reason
Make sure you are running the webserver (Control Panel -> Applications -> WebServer)
It could also be that you need to port forward the web port on your router if you are accessing remotely

As for PM - no idea.. It works for me with others. Maybe there is a limit.

alphatech
Posts: 22
Joined: Sun Feb 09, 2014 12:35 pm

Re: QNAP QPKG for DVR Record Engine

Post by alphatech »

Indeed you were right. I enabled the Web server and now I can start or stop the service. I will keep you posted when I do some recording tonight.

Thanks again for all your help.

avdp
Posts: 296
Joined: Thu Nov 13, 2014 4:54 pm

Re: QNAP QPKG for DVR Record Engine

Post by avdp »

I noticed that changing the recording path works, the log viewer (magnifying glass icon) doesn't pick up the new location. Poking around in the php a bit, it seems the path for that functionality is hard coded.

Otherwise, very cool / promising, thanks for creating this!

Mediaman
Expert
Posts: 8346
Joined: Sun Aug 09, 2009 12:11 pm
Device ID: 131045A9, 131F4A88, 1080278D
Location: Olympia, WA
x 4

Re: QNAP QPKG for DVR Record Engine

Post by Mediaman »

fyi - you need 5 posts on the forum before you can PM someone. Keeps the spammer's at bay. :D

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

New package q0.7.2 is now up on the google shared drive https://drive.google.com/folderview?id= ... sp=sharing

It includes the record engine 20160512atest1
https://www.silicondust.com/forum/viewt ... 23#p214123

Been really busy of late.. Planning to get some UI updates done in about 2 weeks time.. Bear with me....

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

New package q0.7.3 is now up on the google shared drive https://drive.google.com/folderview?id= ... sp=sharing

It includes the record engine 20160514atest2
https://www.silicondust.com/forum/viewt ... 39#p214939

warpster
Posts: 583
Joined: Sun Jul 26, 2009 11:07 pm

Re: QNAP QPKG for DVR Record Engine

Post by warpster »

never mind I was being an idiot

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

Have updated the OP https://www.silicondust.com/forum/viewt ... 35#p186335 with better instructions on how to install the prebuilt packages.
Will continue to update over coming days/weeks.
Let me know if you want more, etc..

teredactle
Posts: 19
Joined: Fri Jan 22, 2016 6:25 am

Re: QNAP QPKG for DVR Record Engine

Post by teredactle »

Also wanted to say thanks for this. For the record, I installed this w/o an issue on my TS-459 running firmware version 4.0.3. Honestly I haven't upgraded firmware as I've had no need and last time I did it, it wiped everything.

Everything looks ok, my question (rather dumb) how do I control it? I use hdhomerun from Kodi, is there a way to record with this engine - am I missing something?

TY!

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

Been really busy of late - so now just getting back to further development of this.

New Version of the UI (0.7.0)
This adds syntax highlighting to components of the logfile.. If you see red it's because an error exists.

q0.8.0 is now up on the google shared drive https://drive.google.com/folderview?id= ... sp=sharing

It includes the record engine 20160516atest1
https://www.silicondust.com/forum/viewt ... 81#p215581
avdp wrote:I noticed that changing the recording path works, the log viewer (magnifying glass icon) doesn't pick up the new location. Poking around in the php a bit, it seems the path for that functionality is hard coded.
I removed that hardcoding some time back.. Please make sure you have the latest version.
From my limited testing I can quickly swap to a different folder, and if log files exist they are discovered. Obviously if the engine isn't running, no log file exists.
Note: My script does not create the folder - you have to create that, and then update the config file..
teredactle wrote:Everything looks ok, my question (rather dumb) how do I control it? I use hdhomerun from Kodi, is there a way to record with this engine - am I missing something?
This just installs the backend record engine.. you need to setup one of the many clients to manage the recordings.

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

New Version of the UI (0.8.0)
- Some tweaking of the CSS to make the page better when resizing
- Added the ability to modify the Port parameter in the config file (default is just a port I don't have issues with - set to your needs and restart the engine)
- Added capability to query for the recording rules (more to come as I decipher what I can/cannot edit)
- Added paging for Logs/Rules
- Added placeholders for recordings discovery (to come in future release)

Package q0.8.1 is now up on the google shared drive https://drive.google.com/folderview?id= ... sp=sharing

It includes the record engine 20160516atest1
https://www.silicondust.com/forum/viewt ... 81#p215581

Note to Mods/Nickk - feel free to move this to the development support forum if it makes more sense

avdp
Posts: 296
Joined: Thu Nov 13, 2014 4:54 pm

Re: QNAP QPKG for DVR Record Engine

Post by avdp »

To be clear, it was indeed able to detect/list the log files in the new location, just not actually read/display the content of the log files if they are not in the default location.

But let me install the latest and greatest tonight and try again.

Thanks again for a great program!

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: QNAP QPKG for DVR Record Engine

Post by demonrik »

avdp wrote:To be clear, it was indeed able to detect/list the log files in the new location, just not actually read/display the content of the log files if they are not in the default location.
Please check the permissions on the folder/log files for that location.
They need to be group readable - otherwise they are probably locked down to the 'Admin' user.
http user is part of the admin group so once you add group read it should be good.

avdp
Posts: 296
Joined: Thu Nov 13, 2014 4:54 pm

Re: QNAP QPKG for DVR Record Engine

Post by avdp »

OK, I installed the latest qpkg which is ui 0.8.0, record engine 20160516atest1

Still not working
Last edited by avdp on Wed Jun 15, 2016 4:57 pm, edited 1 time in total.

avdp
Posts: 296
Joined: Thu Nov 13, 2014 4:54 pm

Re: QNAP QPKG for DVR Record Engine

Post by avdp »

I think I found the problem and solution.
getLogFile function in ui/logfile.php uses the DVR_recPath variable instead of using the RecordPath from the config file.
There may be a better / more elegant solution but the following was verified to work!

Code: Select all

function getLogFile($filename) {
// prep
ob_start();
$tab = new TinyAjaxBehavior();
$configFile = new DVRUI_Engine_Config(); // ADD THIS LINE

//create output
//$logfile = new DVRUI_Engine_LogFile(DVRUI_Vars::DVR_recPath . '/' . $filename); 
$logfile = new DVRUI_Engine_LogFile($configFile->getRecordPath() . '/' . $filename);

Post Reply