MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Need more compliments? compliments.json

    Fun & Games
    8
    16
    4881
    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.
    • R
      ryck Module Developer last edited by broberg

      I always like to expand the default compliments a little bit (using an external json file), so I guess I can share it as well:

      https://gist.github.com/ryck/e28a69665b8839f6e9a7acd6b4acc97d

      1 Reply Last reply Reply Quote 4
      • E
        E3V3A last edited by

        thanks 🙂

        "Everything I do (here) is for free – altruism is the way!"
        MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

        1 Reply Last reply Reply Quote 0
        • D
          dmd last edited by

          First of all, thanks for the new compliments! But I’m a noob and I can’t seem to figure this out. As I understand, first you copy this file to: pi@raspberrypi:~/MagicMirror/modules/default/compliments

          Do I have to edit config.js or compliments.js and what exactly do I put there?

          R 1 Reply Last reply Reply Quote 0
          • R
            ryck Module Developer @dmd last edited by

            @dmd Just add remoteFile: “compliments.json” to the compliments module configuration

            A 1 Reply Last reply Reply Quote 1
            • G
              gotchabeats last edited by

              i still cant figure it out. How do i remote to the file?

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

                @gotchabeats you don’t its just a word…

                means the compliments are the file, not in config.js

                just

                {
                module: 'compliments',
                   config: { 
                     remoteFile: 'whatever the filename is',
                   ...
                   ...
                   }
                },
                

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • G
                  gotchabeats last edited by

                  @sdetweil said in compliments.json:

                  @gotchabeats you don’t its just a word…

                  means the compliments are the file, not in config.js

                  just

                  {
                  module: 'compliments',
                     config: { 
                       remoteFile: 'whatever the filename is',
                     ...
                     ...
                     }
                  },
                  

                  thanks that worked

                  1 Reply Last reply Reply Quote 0
                  • A
                    amanzimdwini @ryck last edited by

                    @ryck
                    I was wondering how I can just link to a LOCAL file (instead of your github): I’d like to change the contents.
                    (Yes, I could copy to my OWN github and modify, but that seems a bit wierd).
                    I have to date failed with

                    remoteFile: "~\MagicMirror\config\compliments.json"
                    

                    where I had copied your file to.

                    What am I missing?
                    Thanks
                    Karl

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      ryck Module Developer @amanzimdwini last edited by

                      @amanzimdwini I always use it locally, github is just a place for sharing it, so you are doing the right thing. You can always fork it to keep your personal compliments safe, but that’s up to you.

                      To use it, copy the file to somewhere (ie, in the compliments module folder: modules/default/compliments/compliments.js) and use it in your config like this:

                          {
                            module: "compliments",
                            position: "bottom_bar",
                            disabled: false,
                            config: {
                              remoteFile: "compliments.json",
                              updateInterval: 10000,
                              classes: "thin bright medium",
                              fadeSpeed: 2000,
                            },
                          },
                      

                      Good luck!

                      P A 2 Replies Last reply Reply Quote 0
                      • P
                        pastormingle @ryck last edited by

                        @ryck Do you know if compliments can be set to fit a grid? I have it at the top right about my todo list and when it rotates it causes the todo to also change in size?

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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