Announcement

Collapse
No announcement yet.

Traffic Report Module

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


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

      Comment


      • #4
        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.

        Comment


        • #5
          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.

          Comment


          • #6
            Filatelico that is a good idea. once you have completed that MOD would you share.

            Comment


            • #7
              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

              Comment


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

                Comment


                • #9
                  Originally posted by tn6478 View Post
                  I already have that mod
                  You alread have a traffic mod? Can you share?

                  Kris

                  Comment

                  Working...
                  X