MagicMirror² v2.8.0 is available! For more information about this release, check out this topic.

MMM-EventHorizon


  • Project Sponsor Module Developer

    @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



  • 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


  • Project Sponsor Module Developer

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


  • Project Sponsor Module Developer

    Update:

    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


  • Project Sponsor Module Developer

    Update:

    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