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.

    Schedule Module with XML/Feed source

    Scheduled Pinned Locked Moved Requests
    5 Posts 3 Posters 2.5k Views 3 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.
    • kruemelK Offline
      kruemel
      last edited by kruemel

      Hello

      Iam looking for help to fulfill my girlfriends request :-)

      I was able to filter out the course plan for her with feed43
      http://feed43.com/5546442377204284.xml (xml example 1)
      http://feed43.com/6082708764845543.xml (xml example 2)

      Now i need to be able to display this feed data like this module:
      https://github.com/pinsdorf/MMM-WeeklySchedule
      But not filled from the config file. Instead from the sources above.
      I think you understand it, otherwise ask me to explain it more detailed ;)

      Example:

      ONE Training Center
      Today
      8:30 - 9:25 Spinning
      8:30 - 9:25 Fun Tone
      9:30 - 10:25 Power Yoga
      (Data from xml file 1)

      Tomorrow
      8:30 - 9:25 Dances
      9:30 - 10:25 BODYPUMP
      (Data from xml file 2)

      So, a mix of the newsfeed and WeeklySchedule module i think ^^
      I did not found a similar solution, maybe someone know one or can help me because iam not a programmer :/

      Thank you very much!

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        ninjabreadman @kruemel
        last edited by

        @kruemel You can make a mashup of MMM-WeeklySchedule for display and MMM-HTTPRequestDisplay to fetch data which handles an XML response.

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        1 Reply Last reply Reply Quote 1
        • kruemelK Offline
          kruemel
          last edited by

          Thank you ninjabreadman but this is to high for me ^^ i cant code

          1 Reply Last reply Reply Quote 0
          • S Offline
            shakir
            last edited by

            is there an example where we change the quoted text in WeeklySchedule to XML. the Chicago CTA api is what i’m trying to resolve to a schedule based on the array they return

            like here - https://www.dmcinfo.com/latest-thinking/blog/id/8568/cta-bus-tracking-with-the-raspberry-pi

            • sorry if this is super basic
            N 1 Reply Last reply Reply Quote 0
            • N Offline
              ninjabreadman @shakir
              last edited by ninjabreadman

              Hi @shakir, I suggest you switch to using a JSON (vs XML) response. You just need to add &format=json to your query URL, according to the API documentation from CTA. Then you can look at any of the transit modules for MM, most of which handle a JSON response. It might even be easier to modify one of those than MMM-WeeklySchedule. Personally, I did something similar with MMM-json-feed customizing the output to show what I wanted from the json feed for my nearest bus stop.

              Problem with config or JavaScript? Copy/paste it into JSHint.
              Check out the detailed walkthroughs on install, config, modules, etc.

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy