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.

    Help Me To Get Lucy Working

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 4 Posters 7.3k Views 3 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
      dazza120
      last edited by

      I’m looking for some help with Lucy I’ve got MMM-voice working, I’ve installed the three Lucy files but I really can’t figure out how to do Pages and add Modules to appear and disappear. Help would be much appreciated, Lucy is taxing my tiny brain 🧠 😂

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

        @dazza120

        Ok, let’s start with a single module. What module would you like to use with Hello-Lucy? We’ll get that to SHOW and HIDE first.

        And just so you are aware, there is a list of modules in the ReadMe file that work by default

        Create a working config
        How to add modules

        D 1 Reply Last reply Reply Quote 1
        • D Offline
          dazza120 @Mykle1
          last edited by

          @mykle1 thanks, MMM-GoogleMapsTraffic please once I know how to do it I can take care of the other modules I have 😊 thanks I appreciate your help

          Mykle1M 2 Replies Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @dazza120
            last edited by

            @dazza120

            I have to run out to dinner. When I return I will post a reply. :thumbsup:

            Create a working config
            How to add modules

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

              @dazza120 said in Help Me To Get Lucy Working:

              MMM-GoogleMapsTraffic

              In the MMM-GoogleMapsTraffic.js file, add this if/else if statement to the notificationReceived function or the entire thing after the close of the getDom. (see readme)

              notificationReceived: function(notification, payload) {
                      if (notification === 'HIDE_TRAFFIC') {
                          this.hide();
                      }  else if (notification === 'SHOW_TRAFFIC') {
                          this.show(1000);
                      }
                          
                  },
              

              Now open the new node helper that you put in the MMM-voice folder Add this at about line 429 (choose a blank line) . You’ll see other just like it

              else if (/(SHOW)/g.test(data) && /(TRAFFIC)/g.test(data)) {
                          this.sendSocketNotification('SHOW_TRAFFIC');
                      } else if (/(HIDE)/g.test(data) && /(TRAFFIC)/g.test(data)) {
                          this.sendSocketNotification('HIDE_TRAFFIC');
                      }
              

              Then:

              Now open the new MMM-voice.js file that you put in your MMM-voice folder Add this to the sentences array

              HIDE TRAFFIC,
              SHOW TRAFFIC,

              Now go to about line 431 (choose a blank line)

                      else if (notification === 'HIDE_TRAFFIC') {
                           this.sendNotification('HIDE_TRAFFIC');
                      }  
                      else if (notification === 'SHOW_TRAFFIC') {
                           this.sendNotification('SHOW_TRAFFIC');
                      }
              

              Create a working config
              How to add modules

              D 1 Reply Last reply Reply Quote 1
              • D Offline
                dazza120 @Mykle1
                last edited by dazza120

                @mykle1 said in Help Me To Get Lucy Working:

                else if (notification === ‘HIDE_TRAFFIC’) {
                this.sendNotification(‘HIDE_TRAFFIC’);
                }
                else if (notification === ‘SHOW_TRAFFIC’) {
                this.sendNotification(‘SHOW_TRAFFIC’);
                }

                Hi as soon as i add those lines i’m no longer able to see the mic and lucy stops working i used an online json editor and it says line 429 is } else if AND 431 is MM.getModules ive tried every blank space here but it just breaks everytime, done all the other bits which seem ok as its not broken the voice module just adding the lines above seems to kill it. If i add the default lucy clock and calendar i can’t get them to appear and dissapear at will, i can hide ALL modules or show all modules only :(

                  this.sendNotification('SHOW_LOTTERY');
                   this.sendNotification('SHOW_CLOCK');
                   this.sendNotification('SHOW_EARTH');
                   this.sendNotification('SHOW_EYECANDY');
                   this.sendNotification('SHOW_LICE');
                   this.sendNotification('SHOW_COWBOY');
                   this.sendNotification('SHOW_TIDES');
                   this.sendNotification('SHOW_VOICE');
                
                 } else if (notification === 'HIDE_PAGE_ONE') {
                
                     MM.getModules().enumerate((module) => {
                            module.hide(1000);
                        });
                
                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @dazza120
                  last edited by Mykle1

                  @dazza120

                  Ok, the readme needs to be updated so the line numbers weren’t quite correct (My bad). I’ve taken the liberty of adding GoogleMapsTraffic to the defaults of Hello-Lucy. It was just easier for me than trying to explain things here.

                  1. Get a new copy of the Hello-Lucy repo.
                  2. In the MMM-voice replacement files folder is your new MMM-voice.js file and node_helper.
                  3. In the Replacement module files folder is your new MMM-GoogleMapsTraffic.js file.

                  Replace your current files with the files above.

                  Any of my modules will work by default, after having installed them. See the Replacement module files folder for other modules that you might want to use (Ex. calendar, clock, compliments, newsfeed etc)

                  Create a working config
                  How to add modules

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

                    Video quality is pretty bad but I’ve been working on a single, full page module specifically for my system and Hello-Lucy. The orange-ish square (bottom center) is an enlarged CPU core image containing the temperatures of each core.

                    HardwareMonitor

                    Create a working config
                    How to add modules

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

                      If only the video quality was this good. Click on images for a better view.

                      0_1544843607437_cyan.png

                      0_1544843698660_white.png

                      Create a working config
                      How to add modules

                      D 1 Reply Last reply Reply Quote 1
                      • D Offline
                        dazza120 @Mykle1
                        last edited by

                        @mykle1 thank you very much! At the bottom google traffic bit in the mmm-voice.js folder can I just add new modules underneath it? PS that looks good, it’s not a pi then lol, thanks for your help :)

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

                          @dazza120

                          Take a look at the readme again. Yes, you can add other modules beneath the traffic entry in the voice.js file. You HAVE to. But that’s not the extent of it. For each new module you want to add (except the default modules) you must edit

                          1. The module.js file you want to control
                          2. The MMM-voice node_helper
                          3. The MMM-voice.js file (in 2 places)

                          Create a working config
                          How to add modules

                          D bheplerB 2 Replies Last reply Reply Quote 0
                          • D Offline
                            dazza120 @Mykle1
                            last edited by

                            @mykle1 yep got that in the module itself after the return wrap and in Lucy’s array yep I’ll look at the traffic one and dupe it, thanks for your help, it has been much appreciated.

                            1 Reply Last reply Reply Quote 0
                            • bheplerB Offline
                              bhepler Module Developer @Mykle1
                              last edited by

                              @mykle1 - That raises an interesting question. Since you have to modify the module’s main JS file, does that imply that every time the module updates you’d have to re-enter your changes?

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

                                @bhepler

                                Hey b. :-)

                                To answer your question directly, yes. It has always been that way. I don’t know another way of doing it that wouldn’t require re-entering the changes unless module authors wanted Lucy functionality by default. In that case, a simple addition to their module.js is all that is required. I would handle the Lucy side.

                                When I got the idea for Lucy there was nothing like it here. I knew what I wanted her to do and I accomplished that. Simple coding, looking back, but no small undertaking for me with no prior coding experience at all. Look at my first posts on this site. I couldn’t add a module correctly.

                                Anyway, I continue to use Lucy very successfully to this day,

                                Create a working config
                                How to add modules

                                bheplerB 1 Reply Last reply Reply Quote 0
                                • bheplerB Offline
                                  bhepler Module Developer @Mykle1
                                  last edited by

                                  @mykle1 - Ah. That’s fine. Considering the functionality added, it seems a small price to pay. I just want to be sure I’m aware of the ramifications. If I’m building mirrors for friends, I need to weigh the pros & cons of including Hello Lucy into their builds. If I can maintain access to their mirror, then I can make it work. I just have to remember to redo my modifications to the module code.

                                  But if the owners intend to run the updates… then I should probably hold off on the Hello Lucy module. I barely trust myself with modifying the code, let alone teaching someone else how to do it!

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

                                    @bhepler said in Help Me To Get Lucy Working:

                                    Ah. That’s fine. Considering the functionality added, it seems a small price to pay. I just want to be sure I’m aware of the ramifications. If I’m building mirrors for friends, I need to weigh the pros & cons of including Hello Lucy into their builds. If I can maintain access to their mirror, then I can make it work. I just have to remember to redo my modifications to the module code.

                                    I have not and would not be so bold to ask all module authors to include these four lines to their module.js files. Doing so would not affect their modules but doing so would make them immediately available to Lucy and survive all updates.

                                    if (notification === 'HIDE_COMMAND') {
                                                this.hide(1000);
                                            }  else if (notification === 'SHOW_COMMAND') {
                                                this.show(1000);
                                    

                                    But if the owners intend to run the updates… then I should probably hold off on the Hello Lucy module.

                                    Agreed, but it’s there for people that want to use it. Again, when I made Lucy there was no other module like it in function. I wanted to be able to do exactly what it does. I’m sure there are better modules that do it now, but not then. Not a single one. Ironically, Lucy’s name turned out to be more appropriate than I thought. I only used it because it’s my granddaughter’s name.

                                    I barely trust myself with modifying the code, let alone teaching someone else how to do it!

                                    Well, for me, learning involved modifying code. I’m not encouraging anyone to do anything. However, if they want to use Lucy then this is what they must do. If they want to get their feet wet I think that is admirable. Most copy and paste their config.js entries. This is basically the same thing, if they want to experiment and learn.

                                    Create a working config
                                    How to add modules

                                    1 Reply Last reply Reply Quote 1
                                    • R Offline
                                      racampbellky
                                      last edited by

                                      When I run git pull in the \modules\Hello Lucy folder it gives me a:

                                      “fatal: refusing to merge unrelated histories”

                                      How can I get Hello Lucy updated?

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

                                        @racampbellky

                                        1. Rename your current Hello-Lucy folder. (just in case)

                                        2. Open a new terminal window

                                        3. Type cd MagicMirror/modules and Enter

                                        4. Type git clone https://github.com/mykle1/Hello-Lucy and Enter

                                        5. Type cd Hello-Lucy/installers and Enter

                                        6. Type bash dependencies.sh and Enter

                                        This does NOT solve your issues with github but it does get you the most recent Lucy.

                                        Create a working config
                                        How to add modules

                                        1 Reply Last reply Reply Quote 0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • 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