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.

    MMM-ArduPort

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 3 Posters 2.6k 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.
    • K Offline
      Kereknjek
      last edited by

      How do I do that?

      S 1 Reply Last reply Reply Quote 0
      • K Offline
        Kereknjek
        last edited by

        It seems I’m having isues with Python.

        I have reinstaled Python and Python3, npm, python-shell and node js. Nothing worked. It was sending errors even with blank arduino, arduino sending only “starting” and “started” commands…
        So, due to my lack of knowlege of Python or anything else surrounding ArduPort, I’m abandoning it…

        To bad. It is very elagant module.

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

          @Kereknjek said in MMM-ArduPort:

          How do I do that?

          on the pi, ctrl-alt-t, will open a terminal window, you can also ssh into the pi

          then execute the command that the module would use

          python .......  whatever
          

          I see u dropped this path, but for other…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • K Offline
            Kereknjek @Kereknjek
            last edited by Kereknjek

            I tried that.

            @Kereknjek said in MMM-ArduPort:

            Now, when running

            python arduport.py
            

            I get this:

            {"debug": "SerialPort shell started..."}
            {"debug": "Waiting Ardunio to connect on port..."}
            {"status": {"data": "connected", "name": "connect"}}
            {"status": {"data": "starting", "name": "setup"}}
            {"status": {"data": "started", "name": "setup"}}
            {"sensor": {"data": "0.02", "name": "Baterija"}}
            {"sensor": {"data": "-0.00", "name": "Struja"}}
            {"sensor": {"data": "0.00", "name": "Solarno"}}
            {"sensor": {"data": "-0.12", "name": "Panel"}}
            {"sensor": {"data": "-0.00", "name": "Inverter"}}
            {"sensor": {"data": "0.04", "name": "Baterija"}}
            {"sensor": {"data": "-0.00", "name": "Struja"}}
            {"sensor": {"data": "0.00", "name": "Solarno"}}
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Kereknjek
              last edited by

              @Kereknjek that looks good…

              looks at the MMM-Arduino module, it shows debugging info on the developers window

              ctrl-shift-i on the keyboard, select the tab labeled ‘console’

              you can filter out other modules messages by putting part of the module name in the filter field

              ardu

              also, have to set developerMode:true in the module config.js section

              		    if (self.config.developerMode) {
              			      var date = new Date();
              			      var time = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
              			      message = self.name + ": (" + self.data.index + ")(" + time + ") " + message;
              		    } else { message = self.name + ": " + message; }
              		    switch (type) {
              			  case "error": Log.error(this.logPrefix + message); break;
              			  case "warn": Log.warn(this.logPrefix + message); break;
              			  case "info": Log.info(this.logPrefix + message); break;
              			  case "dev": if (self.config.developerMode) { Log.log(this.logPrefix + message); } break;
              			  default: Log.log(this.logPrefix + message);
              		    }
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • C Offline
                Crime
                last edited by

                has anyone solved this problem?
                I don’t understand anything at all in JS?
                error text from console:

                Uncaught (in promise) TypeError: "({0}) ".format is MMM-ArduPort.js:143 
                not a function
                    at Class.formatValue (MMM-ArduPort.js:143)
                    at Class.getDom (MMM-ArduPort.js:250)
                    at main.js:111
                    at new Promise (<anonymous>)
                    at updateDom (main.js:110)
                    at Object.updateDom (main.js:542)
                    at Class.updateDom (module.js:357)
                    at Class.socketNotificationReceived (MMM-ArduPort.js:118)
                    at module.js:243
                    at r.<anonymous> (socketclient.js:39)
                

                1.jpg

                help someone, I’ve been trying to run it for a long time !!!

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

                  @Crime as I posted the other day, someone posted a fix in the issue for the module

                  u have to change some code

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Crime @sdetweil
                    last edited by

                    @sdetweil please, more details. I really need help

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

                      @Crime sorry, other topic
                      see this issue on the module
                      https://github.com/Dentrax/MMM-ArduPort/issues/3

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      C 1 Reply Last reply Reply Quote 0
                      • C Offline
                        Crime @sdetweil
                        last edited by

                        @sdetweil thank you so much! it really helped! now my sensors are working as they should!
                        and how I did not notice this topic before

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