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.

    Svenskalag.se

    Scheduled Pinned Locked Moved Development
    5 Posts 2 Posters 604 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.
    • H Offline
      Henrik
      last edited by

      Hello!

      Has anyone integrated the “invititations” (kallelser) from svenskalag.se into their Magic Mirror? (Svenskalag is a site for keeping track of your kids’ football trainings & matches, etc.)

      They do provide a calendar export function, but it will show you every training by every team in the club, making it useless. I want to see just my kids’ trainings, and just the ones they will actually attend.

      I am pondering creating a simple scraping thingie that will in the end produce an .ics , which will be consumed by the Calendar Module.

      Thoughts on this?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Henrik
        last edited by sdetweil

        @Henrik you might be able to use the excludedEvents:property to remove all the other

        also, if you pull down the ics , it is just a text file… so this might make cleaning easier

        curl -sL the_cal_url >somefile.txt
        

        then u can look at filtering out events

        they start with
        BEGIN:VEVENT
        …
        and end
        END:VEVENT

        final file needs a BEGIN:VCALENDAR/END:VCALENDAR around the VEVENTs

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          Henrik @sdetweil
          last edited by

          @sdetweil Thanks, however that file does not contain info on how we have responded to the invitations! (e.g., are we attending the training/match in question?)

          I’ll have to do the scraping, I believe.

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            Henrik @Henrik
            last edited by

            I have now had time to wrap this up! It’s not a MM module, but a combination of shell and python scripts that in the end produce ics files, that are then consumed by the Calendar module. Works like a charm so far.

            In case this’d be useful to anyone else, just ping me and I’ll share the details.

            S 1 Reply Last reply Reply Quote 1
            • S Offline
              sdetweil @Henrik
              last edited by

              @Henrik nice work

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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