• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Train status from webpage (not RSS)

Scheduled Pinned Locked Moved Requests
1 Posts 1 Posters 954 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    Unbored
    last edited by Unbored Jun 2, 2017, 12:20 AM Jun 1, 2017, 11:54 PM

    Looking for some guidance. Is there a module that reads a table on a webpage and then rotates the statuses like the new feed? If not, I would settle for just updating the status.

    There is a commuter train that runs from Virginia into Wash., DC. called the VRE. Their site has a RSS feed, but it doesn’t really track individual trains. The status that I am looking to pull is on this site: http://www.vre.org/service/status/

    I haven’t read up on iframes and I am pretty sure that I am not using iframes in my current build. I guess I could, if that is required.

    It is late in the day and the number of trains are starting to fade from the webpage, so here is what it looks like in case there are no trains listed when you look.

    0_1496362484176_train.png

    The code on the page looks like this:

    <div class="widget case-status">
    <h3 class="label case-status">Live Tracking</h3>
    <span class="label case-status">(Status Tracked via GPS)</span>
    <p class="description case-status">Train Status as of <span id="tripUpdateDate">Thursday, June 1, 2017</span> - <span id="tripUpdateTime">7:44 PM</span></p>
    <table id="tripupdates">
    <thead>
    <tr>
    <td><strong>Train Number</strong></td>
    <td><strong>Status</strong></td>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td colspan="2">Loading...</td>
    </tr>
    </tbody>
    </table>
    <div id="delay-status" class="flow-center">
    &nbsp;
    </div>
    </div>
    

    Thanks,
    Danny

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Enjoying MagicMirror? Please consider a donation!
    MagicMirror created by Michael Teeuw.
    Forum managed by Sam, technical setup by Karsten.
    This forum is using NodeBB as its core | Contributors
    Contact | Privacy Policy