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

Modifying Compliments module

Scheduled Pinned Locked Moved Development
9 Posts 3 Posters 4.2k Views 2 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.
  • A Offline
    acbc18
    last edited by Oct 9, 2017, 1:58 AM

    So i’ve been working on this for a few weeks now and i’m completely stuck. I tried to change the compliments module in config.js and get an error at the three lines after position. Can anyone figure out what I’m doing wrong? here is my config.js
    /* Magic Mirror Config Sample
    *

    • By Michael Teeuw http://michaelteeuw.nl
    • MIT Licensed.
    • For more information how you can configurate this file
    • See https://github.com/MichMich/MagicMirror#configuration

    */

    var config = {
    address: “localhost”, // Address to listen on, can be:
    // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
    // - another specific IPv4/6 to listen on a specific interface
    // - “”, “0.0.0.0”, “::” to listen on any interface
    // Default, when address config is left out, is “localhost”
    port: 8080,
    ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
    // or add a specific IPv4 of 192.168.1.5 :
    // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
    // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
    // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],

    language: "en",
    timeFormat: 12,
    units: "imperial",
    
    modules: [
    	{
    		module: "alert",
    	},
    	{
    		module: "updatenotification",
    		position: "top_bar"
    	},
    	{
    		module: "clock",
    		position: "top_left"
    	},
    	
    	{
    		module: "compliments",
    		position: "lower_third",
                        Config: {
                            updateInterval: 30000,
                            compliments: {
    	                       morning:  [
                                       “Good morning love!”,
    	                           “Have a great day!”,
                                       “Hey Sexy!”
    		                            ],
                                       afternoon:  [
                                       “Still looking great!”,
                                       “The cats are being bastards again”,
                                                     ],
    	                       evening:  [ 
                                       “How was your day?”,
                                       “You can do anything!”
                                                  ],
                              }
                     }
    	},
    	{
    		module: "currentweather",
    		position: "top_right",
    		config: {
    			location: "New York",
    			locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "YOUR_OPENWEATHER_API_KEY"
    		}
    	},
    	{
    		module: "weatherforecast",
    		position: "top_right",
    		header: "Weather Forecast",
    		config: {
    			location: "New York",
    			locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "YOUR_OPENWEATHER_API_KEY"
    		}
    	},
    	
    ]
    

    };

    M 1 Reply Last reply Oct 9, 2017, 2:25 AM Reply Quote 0
    • C Offline
      cowboysdude Module Developer
      last edited by Oct 9, 2017, 2:07 AM

      Use a different module for compliments…

      https://github.com/cowboysdude/MMM-NiceThings

      A lot easier to use…

      A 1 Reply Last reply Oct 9, 2017, 2:16 AM Reply Quote 1
      • A Offline
        acbc18 @cowboysdude
        last edited by Oct 9, 2017, 2:16 AM

        @cowboysdude I’ll give it a shot, thanks!

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer
          last edited by cowboysdude Oct 9, 2017, 2:22 AM Oct 9, 2017, 2:17 AM

          This is the config…VERY simple!

          {
          module: ‘MMM-NiceThings’,
          position: ‘lower_third’
          },

          @Mykle1 will show you the errors so if you want you can also fix your config :) He’s good like that!

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @acbc18
            last edited by Mykle1 Oct 9, 2017, 2:32 AM Oct 9, 2017, 2:25 AM

            @acbc18 said in Modifying Compliments module:

            Can anyone figure out what I’m doing wrong?

            Your use of curly quotes

            “Good morning love!”,
            

            Should be

            "Good morning love!",
            

            No more curly quotes, EVER! :^)

            Just so we’re clear, you can’t use them at all so you’ll have to check your entire config for them.

            Find ” and “ Replace with "

            Create a working config
            How to add modules

            C A 3 Replies Last reply Oct 9, 2017, 2:26 AM Reply Quote 1
            • C Offline
              cowboysdude Module Developer @Mykle1
              last edited by Oct 9, 2017, 2:26 AM

              @Mykle1 EVERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR LOL

              1 Reply Last reply Reply Quote 0
              • A Offline
                acbc18 @Mykle1
                last edited by Oct 9, 2017, 12:57 PM

                @Mykle1 Thank you. I’m new at this and didn’t notice it but will do from now on.

                M 1 Reply Last reply Oct 9, 2017, 8:09 PM Reply Quote 1
                • A Offline
                  acbc18 @Mykle1
                  last edited by acbc18 Oct 9, 2017, 1:11 PM Oct 9, 2017, 1:04 PM

                  @Mykle1 Outside of that though is there any syntax issue with the lines starting with config: { down to compliments: {?
                  Edit: thanks guys turns out I had left out a comma and putting that in fixed it (after changing the quotes).

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @acbc18
                    last edited by Oct 9, 2017, 8:09 PM

                    @acbc18 said in Modifying Compliments module:

                    Thank you. I’m new at this and didn’t notice it but will do from now on.

                    No worries friend. We’ve all been there.

                    thanks guys turns out I had left out a comma and putting that in fixed it (after changing the quotes).

                    Excellent! Those are two things you won’t forget.

                    Enjoy your mirror! :^)

                    Create a working config
                    How to add modules

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