Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
10-15-2006, 11:12 AM
|
#1
|
|
Newbie
Join Date: Aug 2006
Posts: 36
|
Traffic Report Module
I will like to have/built a module for the Traffic Report, for some of you this should be basics, but I have no programming skills  .
Compare to the Podcast and the Weather module this should be an easy one, It will also use RSS, and the interface should be very simple. This is where I want to pull the RSS from:
http://rss.traffic.com/rss.xml?c=jqH...gDw7cZRg4oM%3D
Is there any documentation on how to use RSS functions in SD?, any Help?
|
|
|
10-15-2006, 11:44 AM
|
#2
|
|
Raw Wave
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,957
|
Theres no RSS functions per say. RSS is just an online accessible XML file.
The only StreetDeck function you need to use is Utility.DownloadFile to download the online XML file then just load the MS XML parser as a COM object and parse the RSS feed as an XML file. As you mentioned, both of these things are demonstrated in both the podcast and weather DigitalMods.
|
|
|
10-17-2006, 09:06 PM
|
#3
|
|
Newbie
Join Date: Aug 2006
Posts: 36
|
It worked!, after a quick reading about xml and xml Dom, etc, it was not that dificult, right now its working with text only, maybe you can help me with a question.
How do I extract just part of the text in a specific node?, for example the date and time that the report was created is part of the title, and I only want to diplay the time.
Thanks
Last edited by filatelico : 10-18-2006 at 08:58 AM.
|
|
|
10-18-2006, 07:09 AM
|
#4
|
|
Variable Bitrate
Join Date: Aug 2006
Location: Atlanta, GA
Vehicle: 2003 BMW 325ci Sport
Posts: 379
|
Good luck with this.... another GREAT addition to SD!!!
|
|
|
10-18-2006, 11:23 AM
|
#5
|
|
Raw Wave
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,957
|
Quote: Originally Posted by filatelico 
How do I extract just part of the text in a specific node?, for example the date and time that the report was created is part of the title, and I only want to diplay the time.
Use the vbscript string functions, i.e. Mid, Left, Right, and InStr shoudl do it.
|
|
|
10-18-2006, 05:10 PM
|
#6
|
|
Constant Bitrate
Join Date: May 2006
Posts: 153
|
Filatelico that is a good idea. once you have completed that MOD would you share.
|
|
|
10-18-2006, 05:58 PM
|
#7
|
|
Maximum Bitrate
Join Date: Jun 2006
Location: Houston, TX
Posts: 776
|
Quote: Originally Posted by jsdr78 
Filatelico that is a good idea. once you have completed that MOD would you share.
I already have that mod
|
|
|
10-19-2006, 02:30 PM
|
#8
|
|
Newbie
Join Date: Aug 2006
Posts: 36
|
Thanks Chuck, that should do it.......2 more questions:
1. How do I calculate the distance between 2 coordinates?
2. Is there a way to send data to the navigation module from a Digital Mod, like a coordinate or address result, and start the navigation to that location, how?.
So far the mod does 2 things:
1.Give you a Jam report for specific routes based on traffic.com
2.Accident report based on GPS location
Are they any disclaimers or lagalities about sharing mods?, I would like to post it once its done.
Last edited by filatelico : 10-19-2006 at 02:33 PM.
|
|
|
01-02-2007, 08:37 AM
|
#9
|
|
Newbie
Join Date: Jul 2006
Posts: 42
|
Quote: Originally Posted by tn6478 
I already have that mod
You alread have a traffic mod? Can you share?
Kris
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:28 PM.
|
|