Auto start recording engine on WD Mycloud NAS

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
brentgossett
Posts: 6
Joined: Sun Sep 25, 2016 9:57 am

Auto start recording engine on WD Mycloud NAS

Postby brentgossett » Thu Apr 20, 2017 5:21 pm

My WD NAS is set to auto update and after an update is applied the recording engine doesn't restart. Has anyone been able to change this behavior?

Mediaman
Expert
Posts: 8109
Joined: Sun Aug 09, 2009 12:11 pm
Location: Olympia, WA

Re: Auto start recording engine on WD Mycloud NAS

Postby Mediaman » Thu Apr 20, 2017 6:35 pm

Found this in my files that may work -
by d21mike » Tue Jan 19, 2016 8:48 pm
I decided to play with this today and this appears to work. May work on other NAS Setups with minor changes.

IMPORTANT: I am not that experienced with this so you should do your own testing. Most of this I found with Google search.

I have a WDMyCloud single drive with firmware v04.04.01-112

1. Create a file with the HDHomeRun Start Command as the only line. I call mine start_hdhomerun.
@reboot root /shares/HDHomeRun/hdhomerun_record start --conf /shares/HDHomeRun/hdhomerun.conf

@reboot = tells cron to run this command after a reboot.

2. Place this file in the "/etc/cron.d" directory

3. Set execute attribute - assuming you called it start_hdhomerun
chmod 755 start_hdhomerun

If this is a good solution then maybe SD could make it part of the NAS Install step since maybe hard for Windows Users to put the file in this location. I am on a MAC so really easy for me to use SSH. On Windows you may want to install PUTTY if you want to play with this.
If this does not work for you look here viewtopic.php?f=125&t=36040#p217147

brentgossett
Posts: 6
Joined: Sun Sep 25, 2016 9:57 am

Re: Auto start recording engine on WD Mycloud NAS

Postby brentgossett » Sun Apr 23, 2017 9:45 am

thanks for the reply. I'm trying the solution.

Mediaman
Expert
Posts: 8109
Joined: Sun Aug 09, 2009 12:11 pm
Location: Olympia, WA

Re: Auto start recording engine on WD Mycloud NAS

Postby Mediaman » Sat Jun 17, 2017 4:05 pm

bump for single bay WD MyCloud

themusj
Posts: 54
Joined: Wed Aug 30, 2017 5:44 pm

Re: Auto start recording engine on WD Mycloud NAS

Postby themusj » Tue Sep 19, 2017 5:36 pm

Pardon my ignorance. Is your above Linux commands the answer to setting a WD MyCloud 3TB drive to auto restart in the event of a power failure. I have mine on a UPS, but if some commands sent to the unit will work, why not do it right?

themusj
Posts: 54
Joined: Wed Aug 30, 2017 5:44 pm

Re: Auto start recording engine on WD Mycloud NAS

Postby themusj » Tue Sep 19, 2017 5:37 pm

My ignorance refers to what you mean by "bump for single bay WD MyCloud." That is what I have as a matter of fact.

Mediaman
Expert
Posts: 8109
Joined: Sun Aug 09, 2009 12:11 pm
Location: Olympia, WA

Re: Auto start recording engine on WD Mycloud NAS

Postby Mediaman » Tue Sep 19, 2017 6:01 pm

1- the bump is to keep the thread alive and

2 - yes it is something that should auto reboot a single drive MyCloud though I do not use it so I can't speak to any restart when update to the WD firmware happens [I use ups too and I don't allow auto update on the MyCloud]. Hopefully this will just be a faded memory soon when SD get's the software updated.

themusj
Posts: 54
Joined: Wed Aug 30, 2017 5:44 pm

Re: Auto start recording engine on WD Mycloud NAS

Postby themusj » Tue Sep 19, 2017 7:17 pm

Thank you. If I turn off auto update, that means a manual update. But if I do a manual update at some point, won't I need a reboot anyway? --The only difference would be we would have control over the timing of the update and a controlled reboot?

Mediaman
Expert
Posts: 8109
Joined: Sun Aug 09, 2009 12:11 pm
Location: Olympia, WA

Re: Auto start recording engine on WD Mycloud NAS

Postby Mediaman » Tue Sep 19, 2017 9:09 pm

Correct, correct, yes and more likely a software update from SD, and it is always all about control.


Return to “Development Support”

Who is online

Users browsing this forum: No registered users and 2 guests