View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jun 04, 2010 2:59 am 
Offline
Joined: Wed May 12, 2004 1:13 am
Posts: 82
Location: Germany
Hey Guys,

how can I add a commando to autostart in Archlinux eg. LinHES?

Because in Germany we don`t have a good EPG Grabber, I use the broadcasted Analog one.

I grab that via Nextview. For that I use the command:

Code:
nxtvepgd -rcfile ./nxtvepg.conf

(This would be great to add to autostart but I dont understand the mechanism in Archlinux.)
I set the capturing to passive and the starting channel to the on that sends the epg data.
Than I start nxtvepg from time to time and export the current status as an xml file.
(Is it possible to do that also from the commandline?)
And that I run
Code:
mythfilldatabase --file 2 ./epg/nxtvepgexport.xml


Well that works but has to be done by hand... :(

Do you have an Idea how I can automate this process?

In this Link the most things are explained, but not how to get this into cron?!?

Thanks!

_________________
LinHES R6 on:
MSI K8T Neo2-F & Athlon-64 3200 - 4096 MB RAM
GeForce 8600GT
Mystique CaBiX-C2, PVR-350, PVR-250, Terratec CinergyT² & DBOX2


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2010 3:11 pm 
Offline
Joined: Wed May 12, 2004 1:13 am
Posts: 82
Location: Germany
OK, this means its not possible to autostart a commandline program in linhes :?:

_________________
LinHES R6 on:
MSI K8T Neo2-F & Athlon-64 3200 - 4096 MB RAM
GeForce 8600GT
Mystique CaBiX-C2, PVR-350, PVR-250, Terratec CinergyT² & DBOX2


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 15, 2010 2:09 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Check out "man 1 crontab" and "man 5 crontab".

Basically, you want to do a crontab -e (edit crontab) as the user that needs to run the command and add a line like:

05 9 * * * /myth/bin/nightly-cron.pl

This will run nightly-cron.pl every morning at 09:05.

I haven't used nxtvepgd in years... You might want to switch to DVB. The EPG for digital works out-of-the-box with mythtv. Whether you use satellite or cable, the selection of unencrypted digital channels should be the same or better than the analog ones. Just make sure you get a DVB card that works in linux....

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 15, 2010 3:17 am 
Offline
Joined: Wed May 12, 2004 1:13 am
Posts: 82
Location: Germany
OK Thanks I'll check that.

is ther also an option to run a script just at startup?

i wanna use the analog stuff because the privat dvb-c channels in germany are encrypted and i wont pay for watching ads o i use the analog cards for these channels.
i have a working dvb-c hdtv card but only for the free to air channels.

_________________
LinHES R6 on:
MSI K8T Neo2-F & Athlon-64 3200 - 4096 MB RAM
GeForce 8600GT
Mystique CaBiX-C2, PVR-350, PVR-250, Terratec CinergyT² & DBOX2


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 15, 2010 9:30 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
To run at startup put it in /etc/runit/1.local or ~/.fluxbox/apps.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 16, 2010 4:44 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Note that you can't record or watch liveTV when the nxtvepg is running. If I remember correctly, it takes about 10 mins to do the scan, that is why I didn't run it at startup.

I'm surprised you have unencrypted analog cable channels that are encrypted in digital. It wasn't like that when I had cable a couple of years ago.... I guess it has changed.

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 16, 2010 10:14 am 
Offline
Joined: Wed May 12, 2004 1:13 am
Posts: 82
Location: Germany
alien wrote:
Note that you can't record or watch liveTV when the nxtvepg is running. If I remember correctly, it takes about 10 mins to do the scan, that is why I didn't run it at startup.


Normally thats right, but I set up the nextview config, that it passively collects the epg information.
Code:
acq_mode = passive

so it collects as along as i dont switch to another channel.
and cause i have two pvr cards this doesnt happen often.

alien wrote:
I'm surprised you have unencrypted analog cable channels that are encrypted in digital. It wasn't like that when I had cable a couple of years ago.... I guess it has changed.


Yeah, that changed and is a pitty. But thats the way it works if US Investors take over the german cable net. they want the people to get to "pay per view". hopefully this doesnt work :cry:

_________________
LinHES R6 on:
MSI K8T Neo2-F & Athlon-64 3200 - 4096 MB RAM
GeForce 8600GT
Mystique CaBiX-C2, PVR-350, PVR-250, Terratec CinergyT² & DBOX2


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2010 2:35 am 
Offline
Joined: Wed May 12, 2004 1:13 am
Posts: 82
Location: Germany
brfransen wrote:
To run at startup put it in /etc/runit/1.local or ~/.fluxbox/apps.


Is it run by mzthtv if I use this location or do i have to add something - so mythtv is the owner?

_________________
LinHES R6 on:
MSI K8T Neo2-F & Athlon-64 3200 - 4096 MB RAM
GeForce 8600GT
Mystique CaBiX-C2, PVR-350, PVR-250, Terratec CinergyT² & DBOX2


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2010 3:00 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
Put it in ~/.fluxbox/apps if you want it to be run by mythtv.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 31, 2010 8:10 am 
Offline
Joined: Wed May 12, 2004 1:13 am
Posts: 82
Location: Germany
Well that doesn't really work.

I tried to write the commandline in there
Code:
nxtvepg -rcfile /home/mythtv/.nxtvepgrc


but that didn't start the programm - so i wrote a script with the command in there and wrote on the fluxbox app file only
Code:
sh /home/mythtv/bin/nextviewstart


that also did not work.
how do I have to put it in there?

_________________
LinHES R6 on:
MSI K8T Neo2-F & Athlon-64 3200 - 4096 MB RAM
GeForce 8600GT
Mystique CaBiX-C2, PVR-350, PVR-250, Terratec CinergyT² & DBOX2


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 02, 2010 10:13 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
In ~/.fluxbox/apps the line needs to be something like:
Code:
[startup] {nxtvepg -rcfile /home/mythtv/.nxtvepgrc}


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 148 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu