Thanks for your patience!!!
PP
Synology SPK for DVR Record Engine
Re: Synology SPK for DVR Record Engine
Finally eliminated my http 405 error when attempting to access the dashboard using the HDHomeRunDVR UI. I had to modify slightly one of the paths in the PHP settings in open_basedir. Had to add the directory "target" to /var/packages/HDHomeRunDVR (instructed in second post).
So in addition to /volume1/HDHomeRunDVR, I now use /var/packages/HDHomeRunDVR/target
Posting this in case someone else encounters the error 405 using the UI.
So in addition to /volume1/HDHomeRunDVR, I now use /var/packages/HDHomeRunDVR/target
Posting this in case someone else encounters the error 405 using the UI.
Re: Synology SPK for DVR Record Engine
Noticed my Synology has PHP 7.3 currently and the original post stated to run PHP 7.2, does it matter if we use the latest?
I installed this SPK over the current installation of SiliconDust software for the Synology that was not working properly. I assume this should now work even though I did no uninstalling? Seems to be ok and is currently working. Thanks for making this available.
I installed this SPK over the current installation of SiliconDust software for the Synology that was not working properly. I assume this should now work even though I did no uninstalling? Seems to be ok and is currently working. Thanks for making this available.
Re: Synology SPK for DVR Record Engine
Installed the latest version and "Dashboard" tab is totally blank. I'm running Php 7.2.
Recordings tab works, as does the gear icon for settings. But when I click "Dashboard" absolutely nothing displays below.
What am I doing wrong?
Recordings tab works, as does the gear icon for settings. But when I click "Dashboard" absolutely nothing displays below.
What am I doing wrong?
Re: Synology SPK for DVR Record Engine
Try doing a hard reload of the page in your web browser.
My suspicion is it's not loading up newer javascript required for the dashboard
Re: Synology SPK for DVR Record Engine
Hi all,
Having issues which I am troubleshooting in another thread viewtopic.php?f=119&t=72613&p=352864#p352864
Long story short, can't get the recording service to start on a DS413.
At the bottom of the dashboard screen I get the text "HDHomeRun RECORD not running | 0x1000040c"
Anyone got any idea what this code means?
Thanks in advance!
Having issues which I am troubleshooting in another thread viewtopic.php?f=119&t=72613&p=352864#p352864
Long story short, can't get the recording service to start on a DS413.
At the bottom of the dashboard screen I get the text "HDHomeRun RECORD not running | 0x1000040c"
Anyone got any idea what this code means?
Thanks in advance!
Re: Synology SPK for DVR Record Engine
Will add my voice to the other thread - but first on this question...
The first bit is when the web server accesses the binary from SD and it shows the engine is not running.
The code is unfamiliar. The right side of the | is meant to be the latest line in the log, so the code checks the RecordPath for the latest log file (*.log) and reads the newest line.
Looking at your other link you mention a fault log file... am guessing it's picking this up and reading the last line which you show is this code.
Re: Synology SPK for DVR Record Engine
Trying to learn about compilation from github source with new 20200121beta1 firmware but taking longer than expected to figure out. I figured I would reach out to see if anyone has compiled it on their own yet?
Thank you!
Thank you!
Re: Synology SPK for DVR Record Engine
synology makefile is just creating a tarball - no real compilation unless you compile the wrappers.
it does download the engine, and the wrappers (tiny) so could be an issue if wget isn't finding the URLs properly.
Am happy to try and explain things.
Re: Synology SPK for DVR Record Engine
Finding a step by step guide specific to the Synology has been difficult so far. It would be awesome if you could share that on this thread. Or if feeling lazy, or extra kind, post it up with/without the new spk.
Thanks again!!
Re: Synology SPK for DVR Record Engine
What step by step are you asking for?
- How to build SPKs?
- How to install SPK?
- How to add to the UI?
- How to use the AI?
- How to build this SPK
2 is explained in the very first post of this thread and is simple.
3 is a little more complex - but relatively straight forward. Largely based on Model-View-Controller pattern.. where the Model php files are in the includes folder for each aspect of the model as well as some helper functions. This model is what queries and builds the data for the Controller php which is in the main folder and pulls from the different data models and uses the View (the .html in style) to create the presentation of the UI. Connecting the server to the client is a Ajax (Asynchronous Javascript and XML).. Start at index.php - it builds out the starting point, registers the controller functions with the Ajax subsystem, then builds the initial page, etc.
4 I should do that at some point.. When I started it, it was pretty straight forward.. but probably needs a little explanation now. Maybe next (next) release.
5 need to add - is very easy, so will add in next (next) release. Main binaries you need are Make and wget along with tar and cp - all readily available in most linux distributions (I have never tried to get this to work on windows). The Makefile is easy enough to break down.. Think of it like a dependency tree.. To build the SPK I need the UI (so I copy it), the scripts, and the app package, so I build the app package which needs the wrappers and the record engine and use wget to download those, etc..
There really isn't any compilation going on EXCEPT for the wrapper binaries. You don't need to compiled them, I've already done so and the Makefiles pull them down via wget.. Code is really simple and I use generic ARM/X86 cross compilers to create static binaries (no dependency on libraries) so it can run on ANY ARM or x86 NAS (which is all that is supported)
Re: Synology SPK for DVR Record Engine
My main concern was #5. I come from a web development background so familiarity is with ubuntu and limited to CLI pull from git, deployments, etc, etc. so I thought this would be no problem to tackle for a quick update. I saw a video (https://www.youtube.com/watch?v=IjqGgBeNAlA) which looked like a GUI interface to create SPK's but couldn't find that anywhere. After trying a few ways online, including the docker spksrc install, I figured I would seek guidance.demonrik wrote: ↑Mon Jan 27, 2020 7:46 am What step by step are you asking for?1 is best dealt with via the synology developer resources. What I have here is a small subset since I don't build any binaries specific to the synology. Ultimately it comes down to tar file which includes some scripts, info and the app in another tar file. So you first create the tar ball of the app (in this case the UI, wrappers, record engine and conf file) then you place that and the scripts and INFO file into another tar file.. The synology then unpacks and starts to process the INFO and scripts files which are preset.
- How to build SPKs?
- How to install SPK?
- How to add to the UI?
- How to use the AI?
- How to build this SPK
2 is explained in the very first post of this thread and is simple.
3 is a little more complex - but relatively straight forward. Largely based on Model-View-Controller pattern.. where the Model php files are in the includes folder for each aspect of the model as well as some helper functions. This model is what queries and builds the data for the Controller php which is in the main folder and pulls from the different data models and uses the View (the .html in style) to create the presentation of the UI. Connecting the server to the client is a Ajax (Asynchronous Javascript and XML).. Start at index.php - it builds out the starting point, registers the controller functions with the Ajax subsystem, then builds the initial page, etc.
4 I should do that at some point.. When I started it, it was pretty straight forward.. but probably needs a little explanation now. Maybe next (next) release.
5 need to add - is very easy, so will add in next (next) release. Main binaries you need are Make and wget along with tar and cp - all readily available in most linux distributions (I have never tried to get this to work on windows). The Makefile is easy enough to break down.. Think of it like a dependency tree.. To build the SPK I need the UI (so I copy it), the scripts, and the app package, so I build the app package which needs the wrappers and the record engine and use wget to download those, etc..
There really isn't any compilation going on EXCEPT for the wrapper binaries. You don't need to compiled them, I've already done so and the Makefiles pull them down via wget.. Code is really simple and I use generic ARM/X86 cross compilers to create static binaries (no dependency on libraries) so it can run on ANY ARM or x86 NAS (which is all that is supported)
I was hoping to get a step by step guide; from what to install and how to how to create the spk. installation and set up of the spk and HDHomeRun platform is not needed since its already running great. I appreciate your help but I wouldn't expect you to waste your time creating a detailed guide like that for users like me. Is it at least possible for you to upload the new spk's with the new software for us?
Thank you tons!
Re: Synology SPK for DVR Record Engine
That is a tool that person put together.. it didn't exist when I started, and just quick look it seems to add a few things to make URLs available from desktop etc..MNOiSY wrote: ↑Mon Jan 27, 2020 9:43 amMy main concern was #5. I come from a web development background so familiarity is with ubuntu and limited to CLI pull from git, deployments, etc, etc. so I thought this would be no problem to tackle for a quick update. I saw a video (https://www.youtube.com/watch?v=IjqGgBeNAlA) which looked like a GUI interface to create SPK's but couldn't find that anywhere. After trying a few ways online, including the docker spksrc install, I figured I would seek guidance.demonrik wrote: ↑Mon Jan 27, 2020 7:46 am...
- How to build this SPK
5 need to add - is very easy, so will add in next (next) release. Main binaries you need are Make and wget along with tar and cp - all readily available in most linux distributions (I have never tried to get this to work on windows). The Makefile is easy enough to break down.. Think of it like a dependency tree.. To build the SPK I need the UI (so I copy it), the scripts, and the app package, so I build the app package which needs the wrappers and the record engine and use wget to download those, etc..
I normally do make them available quickly (sometimes before the changelog even comes outI was hoping to get a step by step guide; from what to install and how to how to create the spk. installation and set up of the spk and HDHomeRun platform is not needed since its already running great. I appreciate your help but I wouldn't expect you to waste your time creating a detailed guide like that for users like me. Is it at least possible for you to upload the new spk's with the new software for us?
Thank you tons!
![Wink ;)](./images/smilies/icon_e_wink.gif)
As to this SPK..
The makefile is the key as I mentioned https://github.com/Silicondust/dvr_inst ... y/Makefile
first creating the app package at line 51
Code: Select all
$(TMP_SPK_PATH)/$(TMP_PKG_NAME): $(TMP_BIN_PATH)/$(DVR_BIN) all_wrappers prep_dirs
@cp -R etc $(TMP_PKG_PATH)
@cp -R web $(TMP_PKG_PATH)
@cp -R $(UI_IN_PATH)/* $(TMP_PKG_PATH)/web
@tar cfz $(TMP_SPK_PATH)/package.tgz -C $(TMP_PKG_PATH) bin etc web
- $(TMP_BIN_PATH)/$(DVR_BIN)
- all_wrappers
- pre_dirs
Second pulls down the latest wrappers (line 89) - uses wget and chmod binaries.
Last creates the necessary temporary folder structure (line 83) - uses mkdir binary
Once the app package is ready - then there is the SPK stage on line 43
Code: Select all
$(BUILD_OUT_PATH)/$(SPK_NAME): $(TMP_SPK_PATH)/$(TMP_PKG_NAME)
@cp -R scripts $(TMP_SPK_PATH)
@cp icons/* $(TMP_SPK_PATH)
@cp INFO $(TMP_SPK_PATH)
@echo "Building $(SPK_NAME)"
@tar cf $(BUILD_OUT_PATH)/$(SPK_NAME) -C $(TMP_SPK_PATH) INFO PACKAGE_ICON_256.PNG PACKAGE_ICON.PNG package.tgz scripts
scripts - these are what is run on installation, update, boot, removal
icons - you have to have a certain amount of different sizes, etc.
INFO - this is what contains the version number, the description, etc.
Then it creates the final tar (no gzip) file - the SPK.
So.. to create a new SPK it's really straight forward assuming you are on a linux system with make, tar, wget installed. (cp, chmod, mkdir should already be available)
- clone from git (or git pull in root folder if previously cloned) https://github.com/Silicondust/dvr_install.git
- cd to the synology folder
- if you've run before.. 'make clean' will ensure we clean up previous
- Modify the version number in the INFO file to your needs - suggest do something easily identifiable as yours
- execute the 'make', and it will put the SPK in the build folder
Re: Synology SPK for DVR Record Engine
Removed - see OP for correct version and link
Last edited by demonrik on Fri Oct 01, 2021 4:29 pm, edited 1 time in total.
Re: Synology SPK for DVR Record Engine
Working perfectly so far! Thank you!!!!!demonrik wrote: ↑Tue Jan 28, 2020 3:50 pm NEW PACKAGE AVAILABLETo move to new package - simply do manual install of new package
- Updated Engine to latest beta release 20200121beta1
new SPK HDHomeRunDVR-0.8.1.spk available in the usual locationsGoogle Drive, DropBox, OneDrive
Code is available on github
https://github.com/Silicondust/dvr_install