recording on external HDD

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

recording on external HDD

Postby lukas22 » Sat Dec 10, 2016 3:06 pm

Hi,

I have RaspberryPi2 with USB camera. Recording videos into my external HDD works just fine until I make reboot. After reboot it starts to record videos to memory card instead HDD.
How can I make Pi to record videos automatically into HDD after reboot?

Lukas
lukas22
 
Posts: 6
Joined: Sat Dec 10, 2016 2:35 pm

Re: recording on external HDD

Postby Admin_P » Mon Dec 12, 2016 9:52 am

Hello, Lukas! It seems that Xeoma starts working before the external HDD is recognized by your system. You can create a delay for Xeoma using this command: -startdelay [seconds]
You can find a full list of supported commands here.
Admin_P
 
Posts: 245
Joined: Wed Aug 24, 2016 1:49 pm

Re: recording on external HDD

Postby lukas22 » Mon Dec 12, 2016 7:13 pm

Hello :) ,
I tried but core is still working and can't change the delay. We also tried kill the proces but still can't change delay. :-/
lukas22
 
Posts: 6
Joined: Sat Dec 10, 2016 2:35 pm

Re: recording on external HDD

Postby lukas22 » Mon Dec 12, 2016 7:40 pm

I tried command service XeomaCoreService stop
Output:
Xeoma server is started in foreground.

Core: Starting ...

Core: starting services ...
Core: Started.
lukas22
 
Posts: 6
Joined: Sat Dec 10, 2016 2:35 pm

Re: recording on external HDD

Postby Admin_N » Tue Dec 13, 2016 12:38 pm

Hi there Lukas,

Could you temporarily uninstall Xeoma with the -removeexe command? You'll stop the core AND save your settings and archives (if yours is a commercial edition). A bit hardsh decision, I know, but a quick one as well. :D
Then edit the startdelay thing, and then turn Xeoma back on & install it again.

Did it help?
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: recording on external HDD

Postby lukas22 » Tue Dec 13, 2016 8:14 pm

./xeoma.app -install -removeexe
Remove programm files (leave Archive) ... * Ok > popClientFromAutorun
* Ok > unInstallClientShortcut
* Ok > unInstallCoreShortcut
* Ok > unRegisterInSystem
* Ok > unRegisterCoreAsService
grep: grep: No such file or directory
grep: xeoma.prerm: No such file or directory
* Ok > removeExeOnly
* Ok > uninstallExe
Ok

pi@raspberrypi:~ $ ./xeoma.app -core -startdelay 15
Xeoma server is started in foreground.
Core: Starting ...
Core: starting services ...
Core: Started.

Also when I rebooted raspberryPi2, it`s the same result.
lukas22
 
Posts: 6
Joined: Sat Dec 10, 2016 2:35 pm

Re: recording on external HDD

Postby Admin_N » Wed Dec 14, 2016 9:00 am

Oh I'm sorry. You should edit the autostart script to save this change after reboot. The command alone won't help after reboot.

Here's where the autoscript resides: http://felenasoft.com/xeoma/en/articles/linux-video-surveillance/#autostart

The order of actions is as follows:
Stop Xeoma
Find the autoscript
Edit the startdelay line with root rights
Save it
Turn Xeoma back on and install it
Restart your machine

If done correctly, this should work. Did it work for you?
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: recording on external HDD

Postby lukas22 » Wed Dec 14, 2016 8:38 pm

Hi,

what is the name of the autoscript?
I should the autoscript create?
In all these paths have same files:
/etc/init.d
/etc/init
/etc/systemd/system
lukas22
 
Posts: 6
Joined: Sat Dec 10, 2016 2:35 pm

Re: recording on external HDD

Postby Admin_N » Thu Dec 15, 2016 10:05 am

The name of autoscript you're looking for is XeomaCoreService

No, it must be in one of those folders - which one depends onwhat initialization system you have. Please check all paths if you have doubts.

If it isn't there, please install Xeoma once more and check again. If you find it then, please change the startdelay string with Xeoma installed. Does it work now? It must work this time.
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: recording on external HDD

Postby lukas22 » Sat Dec 17, 2016 3:16 pm

Hi, :)

yes it works.
Thanks very much for your help.
XeomaCoreService was in /etc/systemd/system.
And now I used this guide for the mounting HDD:
https://www.modmypi.com/blog/how-to-mount-an-external-hard-drive-on-the-raspberry-pi-raspian
Have a nice day and thanks. :)

Lukas
lukas22
 
Posts: 6
Joined: Sat Dec 10, 2016 2:35 pm

Re: recording on external HDD

Postby Admin_N » Tue Dec 20, 2016 11:40 am

Hi Lukas,

Thanks for sharing the guide. Have a great day and feel free to let us know if you have any further questions!
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests