Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Simple welcome script

    Development
    2
    4
    1127
    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.
    • T
      TS77UK last edited by

      Hi, first time posting on here and ready to get building! Just waiting till payday on Friday to get he mirror!! Already have the Pi3 up and running using scripts from this amazing forum.

      Anyway, what I wanted to do was add a simple script in the top_bar that basically looks at the time and says “Good morning/afternoon/evening Tony” based on the time, so would need to have an autoupdate as well.

      Is this doable? I’m sure it is but I have been working on the setup all day and so just need confirmation from someone on here who knows.

      Thank you

      1 Reply Last reply Reply Quote 0
      • cruunnerr
        cruunnerr last edited by cruunnerr

        hey,

        nice to welcome u 😉

        I don’t use it, but as far as i know the default compliments module does that 🙂

        https://github.com/MichMich/MagicMirror/tree/master/modules/default/compliments

        So u don’t have to install an extra module. Just edit your compliments module in your config.js

        {
            module: "compliments",
                position: "lower_third",    // This can be any of the regions.
                    // Best results in one of the middle regions like: lower_third
                config: {
                    compliments: {
                        anytime: [
                        "Hey Tony"
                        ],
                        morning: [
                        "Good morning",
                        ],
                        afternoon: [
                        "Good afternoon",
                        ],
                        evening: [
                        "Good evening",
                        ]
                    }
            }
        },
        

        You can also use more variables. Take a look here:

        https://github.com/MichMich/MagicMirror/tree/master/modules/default/compliments

        1 Reply Last reply Reply Quote 2
        • T
          TS77UK last edited by

          Just added it and it works perfect!!! Added a load of gratitude messages, if you have read The Secret by Rhonda Byrne then you will know what I mean

          Thank you so much for your help!!!

          1 Reply Last reply Reply Quote 1
          • cruunnerr
            cruunnerr last edited by

            You’re welcome 😉

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy