HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Help and support with third-party TV software.
Windows Media Center, J River Media Center, Next PVR, MythTV, InstaTV, etc.
Post Reply
jasonl
Silicondust
Posts: 14749
Joined: Sun Oct 28, 2007 9:23 pm

Re: Air Date: Wed Dec/31 1969

Post by jasonl » Wed May 01, 2019 1:11 pm

gtb wrote:
Wed May 01, 2019 1:03 pm
This should probably be posted in the Third Party Software section, under the HDHR-DVRUI topic.
And through the magic of moderator powers, it now is.

gtb
Expert
Posts: 3996
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: Air Date: Wed Dec/31 1969

Post by gtb » Wed May 01, 2019 1:14 pm

jasonl wrote:
Wed May 01, 2019 1:11 pm
And through the magic of moderator powers, it now is.
Us peons bow to the powers of the moderators.

jasonl
Silicondust
Posts: 14749
Joined: Sun Oct 28, 2007 9:23 pm

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by jasonl » Wed May 01, 2019 2:01 pm

:roll:

demonrik
Posts: 1141
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: Air Date: Wed Dec/31 1969

Post by demonrik » Thu May 02, 2019 3:56 pm

gtb wrote:
Wed May 01, 2019 1:03 pm
goofnroxx wrote:
Wed May 01, 2019 12:41 pm
Neither, it's the external HDHR-DVRUI web based stuff.
Someone is not checking for the unix epoch zero date (and special casing it as "NULL"/"None"/NaN depending on your persuasion). This should probably be posted in the Third Party Software section, under the HDHR-DVRUI topic.
air date is not provided in this case.
completely cosmetic since start is the important data piece..
will add to the list.. should return something other than 0 :)

grumpygramp
Posts: 240
Joined: Sun May 03, 2015 2:42 pm

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by grumpygramp » Wed May 08, 2019 7:37 pm

How do I change the time zone on a Synology NAS; the DVRUI isn't displaying the correct time? On a Qnap NAS I changed a line in the php.ini file to read date.timezone = "America/New_York". I can't find a php.ini file on the Synology NAS.

Thanks in advance.

demonrik
Posts: 1141
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by demonrik » Thu May 09, 2019 5:16 pm

grumpygramp wrote:
Wed May 08, 2019 7:37 pm
How do I change the time zone on a Synology NAS; the DVRUI isn't displaying the correct time? On a Qnap NAS I changed a line in the php.ini file to read date.timezone = "America/New_York". I can't find a php.ini file on the Synology NAS.

Thanks in advance.
Synology doesn't provide option in menus to override date.timezone on my device.. I haven't bothered to look for where it's stored either since, once I set up the regional options under the Control Panel it seemed to be setup ok for me.
I did notice that they do provide date.default_longtitude and date.default_latitude.. maybe you can get it by setting these?? Am not sure.

You can always override in the vars.php file too if you need to.

grumpygramp
Posts: 240
Joined: Sun May 03, 2015 2:42 pm

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by grumpygramp » Wed May 15, 2019 4:53 pm

demonrik wrote:
Thu May 09, 2019 5:16 pm
grumpygramp wrote:
Wed May 08, 2019 7:37 pm
How do I change the time zone on a Synology NAS; the DVRUI isn't displaying the correct time? On a Qnap NAS I changed a line in the php.ini file to read date.timezone = "America/New_York". I can't find a php.ini file on the Synology NAS.

Thanks in advance.
Synology doesn't provide option in menus to override date.timezone on my device.. I haven't bothered to look for where it's stored either since, once I set up the regional options under the Control Panel it seemed to be setup ok for me.
I did notice that they do provide date.default_longtitude and date.default_latitude.. maybe you can get it by setting these?? Am not sure.

You can always override in the vars.php file too if you need to.
Thanks for the help. My regional options were set wrong; I changed them using the control panel.

demonrik
Posts: 1141
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by demonrik » Sun May 19, 2019 3:09 pm

If you haven't seen other posts..
The API with the new beta engine has changed for delete and poke - see viewtopic.php?f=125&t=71542
Will be doing an update and some better handing of multiple engine over coming days..
Just wanted to let you know they are top of my priority list now I got the Engine packages out of the way.
Will include the TZ fixes which are already up on github.

Anyway - as of now.. existing UI doesn't fully support the new beta engine.. use at your own risk.

Lunar
Posts: 17
Joined: Sun Mar 11, 2018 7:02 pm

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by Lunar » Sun May 19, 2019 5:36 pm

demonrik wrote:
Sat Mar 09, 2019 8:30 am
First,
Apologies to @handyd and @lunar
I've been really busy at work, and all my free time that I dedicate to these has been focused on major updates to the DVR managers. Now done, so I get to focus on this for a little while.
handyd wrote:
Thu Feb 14, 2019 6:35 am
192.168.0.75 says
Missing behavior or php-error:<br />
<b> Notice</b>: Undefined index: Version in <b>C:
\)(ampp\htdocs\HDHR63\includes\dvrui_hdhrjson.php</b> on line
<b>69</b br />
<br />
<b>Fatal error</b>: Uncaught ArgumentCountError: Too few
arguments to function DVRUI_Upcoming::DVRUI .UpcomingQ, 1
passed in C:\xampp\htdocs\HDHR63\search.php on line 70 and
exactly 2 expected in C:
\)(ampp\htdocs\HDHR63\includes\dvrui_upcoming.php:38
Stack trace:
#0 C:\)(ampp\htdocs\HDHR63\search.php(70): DVRUI_Upcoming&
gt;DVRUI_Upcoming(Object(DVRUI_HDHRjson))
lf1 C:\)(ampp\htdocs\HDHR63\TinyAjax.php(233):
createRuleFromSearchCJudge Judy', 'C184382ENVN01', ·o·. '30', '120',
",'null', 'nuW)
#2 C:\xampp\htdocs\HDHR63\index.php(S4): TinyAjax-&gt;processO
#3 {main)
thrown in <b>C:
\)(ampp\htdocs\HDHR63\includes\dvrui_upcoming.php </b > on line
<b>38</b><br />
This is the issues found by @airdrummer
Is fixed in the github, and will be in the next release
If I try to use the latest version, I get this error when starting:
Fatal error: Uncaught Error: Undefined class constant 'DVRUI_DEBUG' in C:\xampp\htdocs\HDHR65\includes\dvrui_debug.php:8 Stack trace: #0 C:\xampp\htdocs\HDHR65\index.php(4): require_once() #1 {main} thrown in C:\xampp\htdocs\HDHR65\includes\dvrui_debug.php on line 8
This is a strange one.
Can you check the vars.php file in your installed folder. It should have a line similar to

Code: Select all

const DVRUI_DEBUG = false;
If not - then something went wrong when it should have created that file :(
Lunar wrote:
demonrik wrote:
Sat Feb 02, 2019 9:58 pm
you need to make sure the http service can write the .css
i.e. make sure .../themes/default is writable by the http user on your system
Ok, so I've gotten some success by doing that, but still not 100% yet. Now the page is formatted correctly, but I'm still receiving the invalid status error as soon as the page loads. I'm not sure what I'm doing different this time from the last time I was running the UI. :cry:

This is what I'm seeing now.
https://i.imgur.com/jSNydfR.png

EDIT: Also, I've tried going back a couple of versions with the same results.
500 is basically the web server can't serve the requested resource (file or URL) to your browser.
So something is up with either permissions or bad install.
Make sure your webserver has read access to everything in the install folder
AND has write access to the themes folder
AND has ownership/write access of the themes/default/style.css

there are other possibilities such as external URLs being blocked..
try opening the diagnostics page directly
http://192.168.1.6/hdhr/diagnostics.php

FWIW - will be focusing on this for next few days to get all known fixes in, add container recipe, add list/tiles option on recordings, etc.
Thank you for the assistance. I too have been really busy since you last responded. I opened the diagnostics page as you suggested, and below is what information it provided. I've double checked permissions, and I'm at a loss as to what's going on. It seems like everything should be working, but it's not. What's even more strange, is I did nothing different when setting up this server as I did when I last had the UI up and running.

Code: Select all

---------- OS and ENV VARIABLES ------------------------------------------------
Operating System = Linux tv-server 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64
HTTP_HOST = 192.168.1.6
SERVER_NAME = 192.168.1.6
SERVER_ADDR = 192.168.1.6
SERVER_SOFTWARE = Apache/2.4.29 (Ubuntu)
SYS TEMP = /tmp
---------- PHP INFO -------------------------------------------------------------
php version = 7.2.17-0ubuntu0.18.04.1
php.ini file = /etc/php/7.2/apache2/php.ini
php.ini date.timezone = 
date_default_timezone_get() = America/New_York
---------- DVRUI VARS -----------------------------------------------------------
DVRUI_name = HDHomeRun DVR UI
DVRUI_version = 0.6.5
DVRUI_TZ = 
DVRUI_discover_cache = 360
DVRUI_upcoming_cache = 3600
---------- PERMISSIONS -----------------------------------------------------------
style = 0755
themes = 0755
themes/default = 0755
themes/default/style.css = 0644
themes/default/m_style.css = 0644

demonrik
Posts: 1141
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by demonrik » Mon May 20, 2019 6:34 am

Lunar wrote:
Sun May 19, 2019 5:36 pm
Thank you for the assistance. I too have been really busy since you last responded. I opened the diagnostics page as you suggested, and below is what information it provided. I've double checked permissions, and I'm at a loss as to what's going on. It seems like everything should be working, but it's not. What's even more strange, is I did nothing different when setting up this server as I did when I last had the UI up and running.

Code: Select all

---------- OS and ENV VARIABLES ------------------------------------------------
Operating System = Linux tv-server 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64
HTTP_HOST = 192.168.1.6
SERVER_NAME = 192.168.1.6
SERVER_ADDR = 192.168.1.6
SERVER_SOFTWARE = Apache/2.4.29 (Ubuntu)
SYS TEMP = /tmp
---------- PHP INFO -------------------------------------------------------------
php version = 7.2.17-0ubuntu0.18.04.1
php.ini file = /etc/php/7.2/apache2/php.ini
php.ini date.timezone = 
date_default_timezone_get() = America/New_York
---------- DVRUI VARS -----------------------------------------------------------
DVRUI_name = HDHomeRun DVR UI
DVRUI_version = 0.6.5
DVRUI_TZ = 
DVRUI_discover_cache = 360
DVRUI_upcoming_cache = 3600
---------- PERMISSIONS -----------------------------------------------------------
style = 0755
themes = 0755
themes/default = 0755
themes/default/style.css = 0644
themes/default/m_style.css = 0644
the diagnostics output is cut short before it dumps the found tuners
so something is wrong as it builds that list.
either it cant write to the cache in /tmp
or cant get to the discover url

handyd
Posts: 255
Joined: Mon Mar 22, 2010 5:38 am
Device ID: 131092F3, 13122223, 13136631

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by handyd » Sat Jun 01, 2019 7:46 pm

Hello,

A new issue came up. My internet went down for a few day. When it finally came back up, HDHR is no longer seeing my DVR. MyHDHomerun and my Apps all see the DVR. It's been a full day since I came back up.

Thanks.

Axxel
Posts: 14
Joined: Mon Feb 20, 2017 11:59 am

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by Axxel » Sat Jun 01, 2019 8:32 pm

When it finally came back up, HDHR is no longer seeing my DVR. MyHDHomerun and my Apps all see the DVR. It's been a full day since I came back up.
I came here with a similar issue, though in my case there was no Internet outage. Do the known issues with the current DVR beta (just recently delivered from the user-maintained Debian repository) include problems locating the DVR?

- Both the UI and diagnostics page show the tuner device.
- The web UI shows rules (if I add them).
- No recordings are shown.
- my.hdhomerun.com shows both tuner and DVR without issues.
- HDHR apps have no problem finding the DVR.

demonrik
Posts: 1141
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by demonrik » Sun Jun 02, 2019 2:27 am

handyd wrote:
Sat Jun 01, 2019 7:46 pm
Hello,

A new issue came up. My internet went down for a few day. When it finally came back up, HDHR is no longer seeing my DVR. MyHDHomerun and my Apps all see the DVR. It's been a full day since I came back up.

Thanks.
make sure it has access to the internet.
The DVRUI looks to api.hdhomerun.com/discover to get the relevant discovery data. If that's not accessible it has nothing to work with.

Axxel wrote:
Sat Jun 01, 2019 8:32 pm
When it finally came back up, HDHR is no longer seeing my DVR. MyHDHomerun and my Apps all see the DVR. It's been a full day since I came back up.
I came here with a similar issue, though in my case there was no Internet outage. Do the known issues with the current DVR beta (just recently delivered from the user-maintained Debian repository) include problems locating the DVR?

- Both the UI and diagnostics page show the tuner device.
- The web UI shows rules (if I add them).
- No recordings are shown.
- my.hdhomerun.com shows both tuner and DVR without issues.
- HDHR apps have no problem finding the DVR.
if the DVRUI is detecting the tuners it should be detecting the DVR engine.
The DVRUI was written for multiple record engines, so does work with the latest versions. However, the change to deleting recordings and poking the engine is needed for the interface change. Plan to get to that next weekend when I return to the US.
Try looking at api.hdhomerun.com/discover and see if the record engine(s) are listed. If they're not there then something is up.

Ken.F
Posts: 2167
Joined: Fri Apr 05, 2013 9:20 am
Device ID: 1041A706, 1043EB32, 104BAD9E, 13168DC5, 1322A7AC
Location: West Rockhill, PA

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by Ken.F » Sun Jun 02, 2019 5:43 am

Axxel wrote:
Sat Jun 01, 2019 8:32 pm
- Both the UI and diagnostics page show the tuner device.
- The web UI shows rules (if I add them).
- No recordings are shown.
- my.hdhomerun.com shows both tuner and DVR without issues.
- HDHR apps have no problem finding the DVR.
demonrik wrote:
Sun Jun 02, 2019 2:27 am
if the DVRUI is detecting the tuners it should be detecting the DVR engine.
The DVRUI was written for multiple record engines, so does work with the latest versions. However, the change to deleting recordings and poking the engine is needed for the interface change. Plan to get to that next weekend when I return to the US.
Try looking at api.hdhomerun.com/discover and see if the record engine(s) are listed. If they're not there then something is up.
I have the same problem as Axxel. Last week I wanted to try out the new record engine running on multiple machines so I upgraded to 20190516beta2. Everything seemed to work fine. A few days later I noticed the HDHR-DVRUI could see my rules and display upcoming recordings but would not see any of my recorded programs. I figured the problem had something to do with switching to record engine 20190516beta2 so I switched back to 20190417 but the HDHR-DVRUI still doesn't see my recordings.

On the machine running the web server I found php-dvrui.log in /temp. It has a bunch of PHP notices and warnings. I tried to copy relevant parts in a code box but Cloudflare won't let me post it on the forum. I uploaded the log to Google drive if you want to take a look.
https://drive.google.com/open?id=1O52Tl ... 5-MJ5cyM_p

handyd
Posts: 255
Joined: Mon Mar 22, 2010 5:38 am
Device ID: 131092F3, 13122223, 13136631

Re: HDHR-DVRUI - A PHP/Web Interface to your HDHR DVR Setup

Post by handyd » Sun Jun 02, 2019 6:53 am

demonrik wrote:
Sun Jun 02, 2019 2:27 am
handyd wrote:
Sat Jun 01, 2019 7:46 pm
Hello,

A new issue came up. My internet went down for a few day. When it finally came back up, HDHR is no longer seeing my DVR. MyHDHomerun and my Apps all see the DVR. It's been a full day since I came back up.

Thanks.
make sure it has access to the internet.
The DVRUI looks to api.hdhomerun.com/discover to get the relevant discovery data. If that's not accessible it has nothing to work with.

All the machines are on the internet and running. HDHR-DVRUI is not seeing the recording engine and it' been 2 days. I have rebooted several times as well.

Post Reply