View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Jul 23, 2006 8:47 am 
Offline
Joined: Sat Jun 10, 2006 5:27 am
Posts: 24
Hi, my MythTV-box hasn't got an internet connection and insn't in a network. Is it possible to preform the mythfilldatabase-command on an external computer (and get the schedules etc) and then put that data on a floppy which I put in the mythTV-computer and it loads the data and is able to use it.

Would such a thing be possible? (is the data small enough to be put on a floppy?)
Has annyone ever done this? Can you write a script that speeds up the prosses? (gets data from floppy and copies it in correct location)


Thanks,

The Crazy Noob - A linux newbie

_________________
Visit my site about cool things you can do with fresnel lenses including TV and LCD Projectors and a 3D Virtual Monitor using a regular computer-monitor and a fresnel lens!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 23, 2006 4:12 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
What you are asking is relatively simple. All you would need to do is download the TV guide data as an XML file and then you can use mythfilldatabase on you KnoppMyth box to insert that data into the DB.

How you get the data on your Windoze box is another question though as I am not sure how you would go about this, but there is a number of XML grabbers for windows if you do a bit of searching.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 12:03 pm 
Offline
Joined: Sat Jun 10, 2006 5:27 am
Posts: 24
Ok, I can create the xml files on my windows computer. Now how do i insert them in the mythTV database? (I know that for you guys it must sound realy stupid, I apologise for that)

_________________
Visit my site about cool things you can do with fresnel lenses including TV and LCD Projectors and a 3D Virtual Monitor using a regular computer-monitor and a fresnel lens!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 1:44 pm 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
Check "mythfilldatabase --help" and the --file flag might help, something like:

Code:
mythfilldatabase --file 1 -1 /home/mythtv/data.xml


I haven't tried this but it seems like it's worth a shot.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 8:36 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Filling as per the previous command does work, that is how I was previously putting the data into my EPG.

If you are looking on how to get the file from you Windows box to KnoppMyth box look up this http://www.knoppmythwiki.org/index.php?page=UsingSambaHowTo in the wiki.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 2:43 am 
Offline
Joined: Sat Jun 10, 2006 5:27 am
Posts: 24
Girkers wrote:
Filling as per the previous command does work, that is how I was previously putting the data into my EPG.

If you are looking on how to get the file from you Windows box to KnoppMyth box look up this http://www.knoppmythwiki.org/index.php?page=UsingSambaHowTo in the wiki.

I can't do that because the computers are not networked together. I'll use an old 128MB USB stick for now (if I can get it to work with KnoppMyth that is)

I've allready made an MS-DOS batch file that gets the info and puts it on the USB-stick, now I just need to find a way to write a script in linux to do the rest of the work.

If I plug in the USB-stick in linux (text-mode, not graphical), it prints some lines about initialising it and it allso says:
Code:
sda: sda1

When i try to acces /dev/sda1, it gives an error, i've allso tried "mount /dev/sda1" but that didn't work either.
What is the correct way to acces the USB-stick?


Thanks

[edit] I just thought of it but is it possible to put the channel-icons on the usb stick as well? (The KnoppMyth computer can't get them from the internet)

_________________
Visit my site about cool things you can do with fresnel lenses including TV and LCD Projectors and a 3D Virtual Monitor using a regular computer-monitor and a fresnel lens!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 6:09 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
I have the same config and I transfer the xml data via a USB stick. Unfortunately, I'm not going to be home for a month, so I can't post the scripts directly. As noted above, the --file option doesn't work. When I tried it, the db was updated, but for some reason, no repeated recordings were scheduled (I think there is a process that needs to be kicked of to update the recording schedules).

What I roughly did was to set the grabber to one of the existing ones and replaced the grabber script with my script. One of the parameters to the grabber is a file name and you have to copy the xml data from the usb to this file name. To find the parameter, I wrote a test script that dumped all the parameters to a tmp file and looked for the one that was a temporary file. The script looks roughly like (this is from memory, so the commands are not exact):

Code:
$tempfile= <need to find parameter in input>;
mount /mnt/usb;
cat /mnt/usb/a.xml | grep -v 'icon>' > $tempfile;
umount /mnt/usb;
The grep -v 'icon>' is to strip out icon data so it doesn't try and download each icon.

As an aside, you can put windows xmltv on the usb stick and run it directly off that. Just plug it into any windows pc and run it to create the xml file then plug it into the myth box and run mythfilldatabase.

Allen

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 8:08 am 
Offline
Joined: Wed May 24, 2006 9:10 am
Posts: 107
Location: Minneapolis, MN
I would like to do the same thing, updating myth with an xml file. My xml file is saved locally as listings.xml. So I ran the command shown above, and this is my output:

Code:
mythtv@mythtv:~$ mythfilldatabase --file 1 -1 /home/mythtv/listings.xml
### bypassing grabbers, reading directly from file
2007-08-13 09:08:55.282 Using runtime prefix = /usr
2007-08-13 09:08:55.590 New DB connection, total: 1
2007-08-13 09:08:55.604 Connected to database 'mythconverg' at host: localhost
2007-08-13 09:08:56.013 New DB connection, total: 2
2007-08-13 09:08:56.014 Connected to database 'mythconverg' at host: localhost
2007-08-13 09:08:56.086 Updating icons for sourceid: 1
Updated programs: 0  Unchanged programs: 0
2007-08-13 09:08:57.831 New DB connection, total: 3
2007-08-13 09:08:57.832 Connected to database 'mythconverg' at host: localhost
2007-08-13 09:08:57.835 New DB connection, total: 4
2007-08-13 09:08:57.835 Connected to database 'mythconverg' at host: localhost
2007-08-13 09:08:57.924 Adjusting program database end times.
2007-08-13 09:08:57.950     0 replacements made
2007-08-13 09:08:57.950 Marking generic episodes.
2007-08-13 09:08:58.041     Found 0
2007-08-13 09:08:58.042 Marking repeats.
2007-08-13 09:08:58.122     Found 0
2007-08-13 09:08:58.122 Unmarking new episode rebroadcast repeats.
2007-08-13 09:08:58.207     Found 0
2007-08-13 09:08:58.207
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2007-08-13 09:08:58.209 Connecting to backend server: 192.168.0.7:6543 (try 1 of 5)
2007-08-13 09:08:58.216 Using protocol version 26
2007-08-13 09:08:58.243 mythfilldatabase run complete.
mythtv@mythtv:~$


So as you can see, nothing seems to update. Do I need to set someting up differently in mythtv-setup? Right now I just have it set with North America Data Direct through a zap2it account, I want to obviously bypass the zap2it listings with this test. Thanks for the help.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 8:52 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

I move "stuff" around using a usb stick often.

If it is of any value, here is what I do to make it work: (first steps as root)
add a line to /etc/fstab I usually put it under the /floppy but at the bottom is fine.

/dev/sda1 /stick vfat defaults,user,noauto,showexec,umask=022 0 0

mkdir a folder:
mkdir /stick
chown mythtv:mythtv /stick

exit from root and as user mythtv you should be able o plug in a memory stick, wait a few seconds and then

mount /stick
copy, move what ever and when done,
umount /stick

A couple of notes:
sda1 would be IF you are using ide drives

To locate the correct sd letter, plug in a memory stick and then check the dmesg.
dmesg|grep sd will show what the system thinks is the usb port and show something as:
~~partial info
sda: assuming drive cache: write through
sda: sda1
~~

If you have a sata primary drive (+cd rom) then the letters may start at c,d,e

I have found that I need the cd monitor box checked in order to mount it and that will cause myth to switch to the gallery when it is ready for you to mount the /stick. ( there aren't any /dev/sd_ to use )

At this point it becomes quite simple to make a button with matching script that would allow you to plug in a memory stick and do the fill process un-mounting when completed.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 11:10 am 
Offline
Joined: Sat Oct 29, 2005 6:57 am
Posts: 176
I am looking to try something similar.

rkshack


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 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