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.

    Compliments config

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 4 Posters 2.1k Views 4 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.
    • D Offline
      dgregory19 @Mykle1
      last edited by

      @mykle1 Found my problem. Thanks for the help. Read your “absolute-beginners” topics. Huge help!

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @dgregory19
        last edited by

        @dgregory19

        Ahhh cool. :thumbsup:

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • M Offline
          motdog
          last edited by

          I went out and found https://gist.github.com/ryck/e28a69665b8839f6e9a7acd6b4acc97d (which is awesome)

          I modified and removed what I didn’t want, but I left the weather stuff in even though I haven’t configured the default weather module.

          I then created https://github.com/motdog/compliments/blob/master/compliments.json

          I went into compliments.js and at remote file removed null and added that link followed by a comma.

          It didn’t run when I restarted my mirror. Do I need to change anything on main config.

          Module.register("compliments", {
          
          	// Module config defaults.
          	defaults: {
          		compliments: {
          			anytime: [
          				"Hey there sexy!"
          			],
          			morning: [
          				"Good morning, handsome!",
          				"Enjoy your day!",
          				"How was your sleep?"
          			],
          			afternoon: [
          				"Hello, beauty!",
          				"You look sexy!",
          				"Looking good today!"
          			],
          			evening: [
          				"Wow, you look hot!",
          				"You look nice!",
          				"Hi, sexy!"
          			]
          		},
          		updateInterval: 30000,
          		remoteFile: https://github.com/motdog/compliments/blob/master/compliments.json,
          		fadeSpeed: 4000,
          		morningStartTime: 3,
          		morningEndTime: 12,
          		afternoonStartTime: 12,
          		afternoonEndTime: 17
          	},
          

          Thanks for the help

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @motdog
            last edited by sdetweil

            @motdog that is not config, that looks like the source for compliments.js, and only a little bit of the source

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              motdog @sdetweil
              last edited by

              @sdetweil ok I am so confused. I took an existing list of compliments and saved/edited it. I then saved it as a .json file (or so I thought) . I went to the default modules folder and changed remote folder from null to that web address.

              I thought that was the way to go about it. Never created anything in github before. so Im grasping at straws

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy