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

Simple welcome script

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 1.6k Views 1 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.
  • T Offline
    TS77UK
    last edited by Jan 22, 2018, 7:51 PM

    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
    • C Offline
      cruunnerr
      last edited by cruunnerr Jan 22, 2018, 8:15 PM Jan 22, 2018, 8:14 PM

      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 Offline
        TS77UK
        last edited by Jan 22, 2018, 8:53 PM

        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
        • C Offline
          cruunnerr
          last edited by Jan 22, 2018, 8:56 PM

          You’re welcome ;)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            3/4
            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