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.

    erro MMM-HASS

    Scheduled Pinned Locked Moved Solved Troubleshooting
    19 Posts 2 Posters 6.6k 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.
    • I Offline
      iorifly @sdetweil
      last edited by iorifly

      @sdetweil

      Much! Thanks so much for helping me out! I do not know what else to do. I will send everything here to you.
      by message is not going.

      /* 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: "pt",
          timeFormat: 24,
          units: "metric",
          // serverOnly:  true/false/"local" ,
                       // local for armv6l processors, default 
                       //   starts serveronly and then starts chrome browser
                       // false, default for all  NON-armv6l devices
                       // true, force serveronly mode, because you want to.. no UI on this device
          
          modules: [
              {
                  module: "alert",
              },
              {
                  module: "updatenotification",
                  position: "top_bar"
              },
              {
                  module: "clock",
                  position: "top_left"
              },    
                     {
                  module: "calendar",
                  header: "Feriados",
                  position: "top_left",
                  config: {
                      calendars: [
                          {
                              symbol: "calendar-check",
                              url: "https://www.calendarlabs.com/ical-calendar/ics/37/Brazil_Holidays.ics"                    }
                      ]
                  }
              },
              {
                  module: "compliments",
                  position: "lower_third"
              },
              
              {
                             module: "MMM-DarkSkyForecast",
                             header: "Tempo em Duque de Caxias",
                             position: "top_right",
                             classes: "default everyone",
                             disabled: false,
                             config: {
                               apikey: "****",
                               latitude: "-22.787860",
                               longitude: "-43.303140",      
                               iconset: "4c",
                               units: "si",
                               concise: false,
                               forecastLayout: "table"
                            }
                      },
              
                      {
                      module: 'MMM-Screencast',
                      position: 'middle_center', // This position is for a hidden <div /> and not the screencast window
                      config: {
                          position: 'center',
                          height: 300,
                          width: 500,
                      }
                     },
              
              
              
              {
                          module: "newsfeed",
                          position: "bottom_bar",
                          config: {
                              feeds: [
                                  {
                                      title: "Noticias R7",
                                      url: "https://noticias.r7.com/rio-de-janeiro/feed.xml"
                                  }
                              ],
                              showSourceTitle: true,
                              showPublishDate: true,
                              broadcastNewsFeeds: true,
                              broadcastNewsUpdates: true
                          }
                      },
                              {
                      module: "MMM-HASS",
                      position: "middle_center",
                      config: {
                              host: "192.168.1.158",
                              port: "8123",
                              apipassword: "jeure3027",
                              hassiotoken: false,
                              https: false,
                              devices: [
                              { deviceLabel: "Exterior",
                                      deviceReadings: [
                                      { sensor: "sensor.disk_free", icon: "wi wi-thermometer", suffix: "%"}
                                      
                                      ]
                                }
                              
                                     ]
                              }       
              
                   },
              
                  ]
              
              };
              
              /*************** DO NOT EDIT THE LINE BELOW ***************/
              if (typeof module !== "undefined") {module.exports = config;}
              
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @iorifly
        last edited by sdetweil

        @iorifly I can recreate the failure, but if I remove the MMM-HASS module, it doesn’t fail…

        debugging, but not sure yet…
        if I run serverOnly mode and and access the system from a browser on another system, that browser doesn’t report any unexpected errors…

        pi0, raspian jessie,
        node -v v10.17.0
        npm -v 6.11.3

        MM 2.10.0

        chromium-browser --version
        Chromium 56.0.2924.84 Built on Ubuntu 14.04, running on Raspbian 8.0

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          iorifly @sdetweil
          last edited by

          @sdetweil said in erro MMM-HASS:

          pi0, raspian jessie,

          When I remove HASS it also works.

          But I did not understand. You think there’s no way. Still debugging?

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

            @iorifly yes, not home now. Will try to spend some time tomorrow

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • I Offline
              iorifly
              last edited by

              I look forward to something tomorrow. Thank you for not leaving me!

              1 Reply Last reply Reply Quote 0
              • I Offline
                iorifly
                last edited by

                My exit when I request browser version

                pi@raspberrypi:~/MagicMirror $ chromium-browser --version
                 --disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
                Chromium 74.0.3729.157 Built on Raspbian , running on Raspbian 10
                
                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil
                  last edited by

                  @iorifly

                  ok, i have found the problem… all my fault

                  edit ~/MagicMirror/run-start.sh

                  	#exec 3< &-           #  edit this line and comment out with leading #
                  	tee < &3 &             #  add this line  after the line above, no space between < and &3, forum is real trouble with < 
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  I 1 Reply Last reply Reply Quote 0
                  • I Offline
                    iorifly
                    last edited by

                    guy!!

                    I’m not home at the moment BUT HOW HAPPY I am. Will I be able to use the module? I will return as soon as possible to you. THANK YOU FOR HELPING ME AND NOT ABANDONING THE BOAT.

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

                      @iorifly it is not a module problem, but a script problem…

                      the module runs, but I don’t know how it works, so that will be next work for you

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        iorifly
                        last edited by

                        @sdetweil said in erro MMM-HASS:

                        it is not a module problem, but a script problem…
                        the module runs, but I don’t know how it works, so that will be next work for you

                        I understood. I will try to do it later! You don’t know how happy I am !!!

                        I can get MMM-hass + spotify to work and remove the update notice from the screen I will buy the glass.

                        1 Reply Last reply Reply Quote 0
                        • I Offline
                          iorifly @sdetweil
                          last edited by

                          @sdetweil said in erro MMM-HASS:

                          #exec 3< &- # edit this line and comment out with leading #
                          tee < &3 & # add this line after the line above, no space between < and &3, forum is real trouble with <

                          Regardless of how I put it, I get an error.

                          pi@raspberrypi:~/MagicMirror $ npm start
                          
                          > magicmirror@2.10.0 start /home/pi/MagicMirror
                          > ./run-start.sh
                          
                          ./run-start.sh: linha 68: 3: Descritor de arquivo inválido
                          ./run-start.sh: linha 38: 3: Descritor de arquivo inválido
                          Starting chromium browser now, have patience, it takes a minute
                           --disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
                          Abrindo em uma sessão de navegador existente.
                          pi@raspberrypi:~/MagicMirror $
                          1 Reply Last reply Reply Quote 0
                          • I Offline
                            iorifly
                            last edited by iorifly

                            the forum will not let me write … lol

                            https://imgur.com/LoCMbrA

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

                              @iorifly get it this way

                              cd ~/MagicMirror
                              curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh >run-start.sh
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                iorifly
                                last edited by

                                Wait a while. I am updating with the command you directed me.

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

                                  @iorifly np… either way

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • I Offline
                                    iorifly
                                    last edited by

                                    The modules are loading. I have no update msg. Now my fight is with MMM-HASS setup and Home assistant.
                                       Thanks!! I haven’t tested the spotify model yet. But I’m happy with what I have for now.

                                    You were perfect !!!

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

                                      @iorifly said in erro MMM-HASS:

                                      I haven’t tested the spotify model yet.

                                      it won’t fail for the run-start script problem… can’t guarantee anything beyond that

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      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