Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner


Reply
 
Share Thread Tools Display Modes
Old 02-22-2008, 01:07 PM   #1
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
Generate a complete xmcache.ini

I am posting here because RR is the only front-end I use and I don't know if xmcache is used in other front ends. If this is the wrong place, let me know and I will ask the admin to move the thread.

Since I got sick of the xmcache.ini file being out of date, I just wrote a quick tool to take the lineup page created from xmradio.com and generate a corresponding xmcache.ini file.

The instructions (which come up first when you run it) are:

Code:
Go to: http://www.xmradio.com/onxm/full-channel-listing.xmc and save the web page by using <Alt>-F, Save As... The filename must be "XM Channel Lineup.htm" Run this tool in the same file as where you save the HTM file The file xmcache.ini will be created as the output file. Place this file in the RoadRunner folder. Hit any key to start processing the HTM file...

I have an exe, but would like someone else to test it before I post it. If you're interested, please email me and I'll send you the exe.

steve@meisners.net

Steve
meisner is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-23-2008, 09:30 AM   #2
FLAC
 
Custommx3's Avatar
 
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,195
Custommx3
get this error on both versions.
Attached Images
 
__________________
2007 Mazdaspeed 6
Custommx3 is offline   Reply With Quote
Old 02-23-2008, 10:57 AM   #3
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
So far the second version is working for others. Are you running Windows Vista? I haven't tested it on Vista.

Try moving the exe and the .htm file to C:\ and running it from a DOS command box.
meisner is offline   Reply With Quote
Old 02-23-2008, 11:24 AM   #4
Maximum Bitrate
 
fixerofallthing's Avatar
 
Join Date: May 2005
Location: Lawrenceville GA
Posts: 709
fixerofallthing is on a distinguished road
Quote: Originally Posted by meisner View Post
So far the second version is working for others. Are you running Windows Vista? I haven't tested it on Vista.

Try moving the exe and the .htm file to C:\ and running it from a DOS command box.

Worked perfect for me. Great little app. Good job!
__________________
The Car 2005 Scion xB

The Truck 2004 GMC Canyon
fixerofallthing is offline   Reply With Quote
Old 02-23-2008, 11:25 AM   #5
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
Quote: Originally Posted by fixerofallthing View Post
Worked perfect for me. Great little app. Good job!

Thanks! What OS did you run it on?
meisner is offline   Reply With Quote
Old 02-23-2008, 11:42 AM   #6
Maximum Bitrate
 
fixerofallthing's Avatar
 
Join Date: May 2005
Location: Lawrenceville GA
Posts: 709
fixerofallthing is on a distinguished road
Quote: Originally Posted by meisner View Post
Thanks! What OS did you run it on?

XP and Vista Ultimate
__________________
The Car 2005 Scion xB

The Truck 2004 GMC Canyon
fixerofallthing is offline   Reply With Quote
Old 02-24-2008, 01:19 AM   #7
FLAC
 
Custommx3's Avatar
 
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,195
Custommx3
xp pro..
worked via command line, thx
__________________
2007 Mazdaspeed 6
Custommx3 is offline   Reply With Quote
Old 02-27-2008, 09:44 AM   #8
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
If anyone tried sending me email since this past weekend, it probably got lost. So count on me never seeing it. I am back up now.

Here is the latest XMCache.exe util to generate the .ini file.
Attached Files
File Type: zip XMCache.zip (33.2 KB, 36 views)
meisner is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-07-2008, 07:59 AM   #9
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
Updated XMCache generator

Last night I decided I didn't like how you had to first go to the XM site and get the HTML page manually, so I modified the tool to do it for you. Now, just run the attached XMCache.exe in a DOS box and it will automatically connect and generate the XMcache.ini file in the same directory.

Let me know if there's any problems.

Here's a sample output:
Code:
N:\XMCache\XMCache\Release>XMCache IP is 209.170.118.10 Query is: <<START>> GET /onxm/full-channel-listing.xmc HTTP/1.0 Host: www.xmradio.com User-Agent: HTMLGET 1.0 <<END>> Done...wrote 194 channels

Attached Files
File Type: zip XMCache.zip (35.6 KB, 6 views)
meisner is offline   Reply With Quote
Old 08-07-2008, 10:10 AM   #10
Constant Bitrate
 
DeadlyAP1's Avatar
 
Join Date: Aug 2005
Location: MA
Posts: 207
DeadlyAP1 is on a distinguished road
I keep getting this:

DeadlyAP1 is offline   Reply With Quote
Old 08-07-2008, 10:31 AM   #11
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
Could you try this one? I was using a function to generate a temporary file name and use that. For some reason (maybe policies on your system?) it was failing to create the temp file. This new version doesn't rely on the tmpnam() function...hopefully this works.

I am actually using what is stated in the error message now for the temp name; 'XM Channel Lineup.htm'. If this doesn't work, then let me know.
Attached Files
File Type: zip XMCache.zip (34.5 KB, 11 views)
meisner is offline   Reply With Quote
Old 08-07-2008, 10:40 AM   #12
Constant Bitrate
 
DeadlyAP1's Avatar
 
Join Date: Aug 2005
Location: MA
Posts: 207
DeadlyAP1 is on a distinguished road
Quote: Originally Posted by meisner View Post
Could you try this one? I was using a function to generate a temporary file name and use that. For some reason (maybe policies on your system?) it was failing to create the temp file. This new version doesn't rely on the tmpnam() function...hopefully this works.

I am actually using what is stated in the error message now for the temp name; 'XM Channel Lineup.htm'. If this doesn't work, then let me know.

Worked perfect and AMAZINGLY fast!!! thanks a million!
DeadlyAP1 is offline   Reply With Quote
Old 08-07-2008, 10:47 AM   #13
Constant Bitrate
 
DeadlyAP1's Avatar
 
Join Date: Aug 2005
Location: MA
Posts: 207
DeadlyAP1 is on a distinguished road
So, if I put this file into my RR directory, will it automatically overwrite the existing xmcache.ini everytime I run it? Can you make it save it as "read only"?

That way I can just make a shortcut to it on the desktop and run it periodically to make sure I always have an up to date file.


EDIT, I just tested it and it does not overwrite.
DeadlyAP1 is offline   Reply With Quote
Old 08-07-2008, 10:50 AM   #14
Constant Bitrate
 
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
meisner is an unknown quantity at this point
No file attributes are applied to the new xmcache.ini file. So it is not read only. So yes, you could just keep running it regularly (assuming you have Internet connectivity) and always have a complete cache.

BTW...what version of Windows did you just run this on? I tried on an old XP machine here at work and it failed with a missing function in the winsock dll (ws2_32.dll).
meisner is offline   Reply With Quote
Old 08-07-2008, 10:54 AM   #15
Constant Bitrate
 
DeadlyAP1's Avatar
 
Join Date: Aug 2005
Location: MA
Posts: 207
DeadlyAP1 is on a distinguished road
Quote: Originally Posted by meisner View Post
No file attributes are applied to the new xmcache.ini file. So it is not read only. So yes, you could just keep running it regularly (assuming you have Internet connectivity) and always have a complete cache.

BTW...what version of Windows did you just run this on? I tried on an old XP machine here at work and it failed with a missing function in the winsock dll (ws2_32.dll).



OK, I made a mistake, it IS overwriting which is great. Is there any way to get it to set attributes?

I am testing this on my vista machine but it will eventually be put to work in my XP machine in the car.
DeadlyAP1 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete bolt in Screen/CPU/HD/PS - indash blk02si Fabrication 763 03-29-2009 01:51 AM
1987 Toyota Camry -- Complete Resurrection Sidewalksalvage Worklogs 96 01-11-2008 04:21 AM
complete beginner, few questions, thanks for help! mattress Road Runner 5 08-21-2006 08:39 AM
FS: Complete Mini-ITX CarPC w/Xenarc Monitor + More DLe Classified Archive 23 10-19-2004 09:15 PM



All times are GMT -5. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics