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

Scheduled Pinned Locked Moved Fun & Games
41 Posts 8 Posters 19.6k Views 8 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @Hein-Jan
    last edited by Sep 19, 2018, 11:27 PM

    @hein-jan

    It never dawned on me that the timezsone was specific to the url being used in the module. The url itself is rather cryptic so I can’t determine what part is responsible for the timezone. Thus, I can’t make an option for timezones, unless someone wants to help determine that for me.

    I have a work around if you are interested. You can go to https://www.timeanddate.com/clocks/freecountdown.html and create your own timer. You will be given a url when you are done. That url can be inserted into your copy of the module, with some minor modification and it will work.

    This problem arises because the module is simply in an iFrame and not data from an API

    Create a working config
    How to add modules

    1 Reply Last reply Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Hein-Jan
      last edited by Mykle1 Sep 20, 2018, 12:35 AM Sep 20, 2018, 12:34 AM

      @hein-jan said in MMM-EventHorizon:

      I am on Central European time.

      I went and got a url for Central European time. Replace line 41 in the MMM-EventHorizon.js file with the following line.

      iframe.src = "http://free.timeanddate.com/countdown/i6f8ps4b/n48/cf12/cm0/cu4/ct0/cs0/ca0/cr0/ss0/cac0ff/cpc0ff/pc000/tcfff/fs100/szw320/szh135/tat" + this.config.text1 + "/tac0ff/tpt" + this.config.endText1 + "/tpc0ff/mat" + this.config.text2 + "/mpt" + this.config.endText2 + "/mpc0ff/iso" + this.config.date + "T" + this.config.time;

      This will only work when these two config.js options are as follows:

      module: 'MMM-EventHorizon',
                  position: 'bottom_left',
                  config: {
                      size: "medium", // small, medium or large
                      countUp: "yes", // yes or no (count up after timer is done)
      

      The other config options will work as intended

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • H Offline
        Hein-Jan
        last edited by Sep 22, 2018, 9:32 AM

        Mykle1

        Thanks for your reply and confirming that it is a time-zone issues.
        Instead of messing around with the code, I think I will simply off-set my event deadline time.
        That way I am at least robust against updates.
        Thanks for the work with the CET link.

        Hein-Jan

        M 1 Reply Last reply Sep 22, 2018, 11:25 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Hein-Jan
          last edited by Sep 22, 2018, 11:25 PM

          @hein-jan

          You could do that or you could make it your own. Feel free to make any edits that please you. Ah, the beauty of open source. :-) Have fun.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer
            last edited by Jan 16, 2019, 1:19 AM

            Update:

            [card:mykle1/MMM-EventHorizon]

            Version 1.0.1

            Thanks to @spitzlbergerj for taking the initiative here. He posted an issue at the repo which included the modificatons so I wanted him to get the credit and my thanks.

            Now you can color text line by line AND use any city you like as the timezone.

            git pull or install as per the readme

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer
              last edited by Mykle1 Jan 25, 2019, 1:53 AM Jan 25, 2019, 1:49 AM

              Update:

              [card:mykle1/MMM-EventHorizon]

              Version update 1.0.2

              Added an option for unit designation

              1. No units
              2. D H M S
              3. Day Hr Min Sec
              4. Days Hrs Mins Secs
              5. Days Hours Minutes Seconds (Full names)

              Example of option 1 and 2

              0_1548380952908_Screenshot from 2019-01-24 19-13-00.png - 0_1548381184316_wert.png

              Create a working config
              How to add modules

              S 1 Reply Last reply Oct 16, 2019, 8:51 PM Reply Quote 2
              • S Offline
                swvalenti Project Sponsor @Mykle1
                last edited by Oct 16, 2019, 8:51 PM

                @Mykle1 Any way to add years to this? I retire in 2515 days, but would like to know years then days. HA! I keep having to fn pull out the calculator to convert.

                Thanks ahead if this can be done!

                Regards, Scott

                M 3 Replies Last reply Oct 16, 2019, 9:19 PM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @swvalenti
                  last edited by Oct 16, 2019, 9:19 PM

                  @swvalenti

                  Scott,

                  I’m terribly sorry but this module doesn’t use a conventional api data source which would have allowed me to do the computations on the data. Thus, converting all those days to years. It’s simply using an iFrame and tapping in to this web site. You can see on the site that “days” is not an option. My apologies.

                  Peace!

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @swvalenti
                    last edited by Oct 16, 2019, 11:34 PM

                    @swvalenti

                    Hey Scott,

                    You could try this module. It shows just the days remaining.

                    https://forum.magicmirror.builders/topic/1846/mmm-doomsday-the-countdown-module

                    Create a working config
                    How to add modules

                    S 1 Reply Last reply Oct 16, 2019, 11:37 PM Reply Quote 0
                    • S Offline
                      swvalenti Project Sponsor @Mykle1
                      last edited by Oct 16, 2019, 11:37 PM

                      @Mykle1 said in MMM-EventHorizon:

                      @swvalenti

                      Hey Scott,

                      You could try this module. It shows just the days remaining.

                      https://forum.magicmirror.builders/topic/1846/mmm-doomsday-the-countdown-module

                      I will give that a go thank you sir.

                      M 1 Reply Last reply Oct 17, 2019, 1:07 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      • 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