Results 1 to 9 of 9

Thread: Traffic Report Module

  1. #1
    Newbie
    Join Date
    Aug 2006
    Posts
    36

    Post 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?

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    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.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  3. #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

  4. #4
    Variable Bitrate polo6979's Avatar
    Join Date
    Aug 2006
    Location
    Atlanta, GA
    Posts
    419
    Good luck with this.... another GREAT addition to SD!!!
    2003 E46 BMW
    Lilliput Transflective, GM965 mobo w/ Processor
    ELMSCAN 5 USB, Slot load DVD, BU-353 GPS
    Everything is for sale.

  5. #5
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Quote Originally Posted by filatelico View Post
    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.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  6. #6
    Constant Bitrate jsdr78's Avatar
    Join Date
    May 2006
    Posts
    151
    Filatelico that is a good idea. once you have completed that MOD would you share.

  7. #7
    Maximum Bitrate tn6478's Avatar
    Join Date
    Jun 2006
    Location
    Houston, TX
    Posts
    791
    Quote Originally Posted by jsdr78 View Post
    Filatelico that is a good idea. once you have completed that MOD would you share.
    I already have that mod

  8. #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.

  9. #9
    Newbie
    Join Date
    Jul 2006
    Posts
    42

    Thumbs up

    Quote Originally Posted by tn6478 View Post
    I already have that mod
    You alread have a traffic mod? Can you share?

    Kris

Similar Threads

  1. XMLTraffic Plugin
    By 307SW_NLD in forum RR Plugins
    Replies: 20
    Last Post: 09-14-2006, 05:20 PM
  2. Interfacedefinition for Car-PC Module
    By hematec in forum FP FrodoComm
    Replies: 5
    Last Post: 12-04-2005, 05:46 AM
  3. The point on NMC [VIDEO UPDATE]
    By netsuo in forum NeoCar Media Center
    Replies: 16
    Last Post: 08-19-2005, 11:44 PM
  4. Replies: 14
    Last Post: 08-09-2005, 01:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •