MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    Schedule update?

    Development
    1
    1
    774
    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.
    • W
      winstonma last edited by winstonma

      I have created a module that would display Estimated Time of Arrival (ETA) in Hong Kong. The tough thing would be there are multiple route will stop at one bus stop, and I need to find the URL for each route. So my program will have several parts.

      • At load time, it will generate URL for each route

        • It will load all the routes that will go through that bus stop

        • Then for each route I need to find the corresponding URL for each route

        • For each route it will find out the corresponding ETA URL

      • For each ETA URL, it will poll every minute and update the info in Magic Mirror

      But there are few problems here.

      • I would like to update the ETA URL “Every 5am”, how the schedule can be done?

      • Currently my work only support one bus stop but I would like to include multiple bus stops, how could I change the structure in node_helper.js to accommodate that?

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy