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

MMM-Timetable

Scheduled Pinned Locked Moved Productivity
43 Posts 12 Posters 17.8k Views 13 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.
  • ? Offline
    A Former User @maxbachmann
    last edited by Aug 28, 2018, 6:51 AM

    @maxbachmann
    I think a structured static timetable is somehow different with schedule of calendar.
    But Anyway, you can consider this.

    https://forum.magicmirror.builders/topic/5426/mmm-calendarexttimeline-display-timeline-table
    [card:eouia/MMM-CalendarExtTimeline]

    1 Reply Last reply Reply Quote 0
    • M Offline
      maxbachmann
      last edited by Aug 28, 2018, 7:25 AM

      @Sean yeah it kind of has the advantage to show multiple events at the same time better. Therefor I prefer this design a lot, so still have to think about which one I will go with. The static structure is not that much of a problem for me then I will just change it to my needs ;) The design part is what I absolutely suck in xD

      1 Reply Last reply Reply Quote 0
      • E Offline
        electros Project Sponsor @Guest
        last edited by Sep 1, 2018, 8:47 PM

        @sean I like your module, the design is fantastic but I could ask you for a change to use a csv or txt file for schedule? I do not really trust to let my daughter change the config.js file while a txt or csv file is not so complicated.
        Thanks again for your work.

        ? 2 Replies Last reply Sep 2, 2018, 7:00 AM Reply Quote 0
        • ? Offline
          A Former User @electros
          last edited by Sep 2, 2018, 7:00 AM

          @electros I’ll consider.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @electros
            last edited by A Former User Sep 2, 2018, 12:24 PM Sep 2, 2018, 11:43 AM

            @electros
            I’ve added function of reading schedule from comma(,) separated text file(or csv).

            E 1 Reply Last reply Sep 2, 2018, 1:56 PM Reply Quote 1
            • M Offline
              maxbachmann
              last edited by Sep 2, 2018, 12:49 PM

              awesome :)

              1 Reply Last reply Reply Quote 0
              • E Offline
                electros Project Sponsor @Guest
                last edited by Sep 2, 2018, 1:56 PM

                @sean Wow, so fast thank you very much. I tested and everything is fine, thank you again for a great work.

                1 Reply Last reply Reply Quote 0
                • Z Offline
                  zdenek @Guest
                  last edited by Sep 3, 2018, 12:49 PM

                  @sean amazing, thanks. Just a question - my kids have different Timetable for odd and for even week. Is there way how to show them the correct one? Now Iˇve visible in Cal module the number of week and in TimeTable they have 2 rows (odd/even). Or can be still on 2 rows, but use different colors for odd and even?

                  Thanks, Zdeněk

                  ? 2 Replies Last reply Sep 3, 2018, 12:57 PM Reply Quote 0
                  • ? Offline
                    A Former User @zdenek
                    last edited by A Former User Sep 3, 2018, 1:00 PM Sep 3, 2018, 12:57 PM

                    @zdenek
                    Wow, It’s a very odd timetable which has never been imagined. :)
                    Do you need the 2 timetables are displayed at the same time always? or Just 1 timetable for the right week at that time?

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @zdenek
                      last edited by A Former User Sep 3, 2018, 1:25 PM Sep 3, 2018, 1:10 PM

                      @zdenek
                      0) display 2 timetables together;
                      Hmmm… I think it’s hard. I had considered that case at the development, but gave up. because I thought the screen was too small to display complex timetables.

                      1. display 2 timetables by rotation
                      refreshInterval: 1000*60,
                      schedules: [
                        {
                          title: "Even Weeks",
                          schedule: [ ... ]
                        },
                        {
                          title: "Odd Weeks",
                          schedule: [ ... ]
                        }
                      

                      This would make a rotation of timetables per every 1 minutes.

                      1. Display right timetable of that week.
                        I think it could be done by new feature - reading schedule from file.
                        Prepare 2 csv files, - even.csv, odd.csv
                        And you can add below code into your crontab to change from each .csv to thisweek.csv
                      0 8 * * 6 test $((10#$(date +\%W)\%2)) -eq 1 && cp /your/path/odd.csv /your/paht/thisweek.csv || cp /your/path/even.csv /your/path/thisweek.csv
                      

                      This will copy odd.csv or even.csv to thisweek.csv on each Saturday.

                      The configuration could be like this;

                      refreshInterval: 1000*60,
                      schedules: [
                        {
                          title: "My Kids Timetable",
                          file: "thisweek.csv",
                        },
                      

                      I didn’t test but you can catch the idea.

                      1 Reply Last reply Reply Quote 2
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        14/43
                        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