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

Problem with MM-MQTT module

Scheduled Pinned Locked Moved Utilities
6 Posts 2 Posters 1.0k 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.
  • M Offline
    MM-Hans
    last edited by Dec 30, 2022, 2:42 PM

    To receive MQTT messages I use Otto Paulsen’s MM-MQTT Module (https://github.com/ottopaulsen/MMM-MQTT) and that is nice software. Unfortunately, there is a problem, the output seems to be refreshed every 5 seconds, so that the text in question flashes briefly every time.

    I have created an issue on Paul’s GitHub page about this, but unfortunately no answer after a few months of waiting. Does anyone know what could be the cause? Please let me know.

    This is my code in config.js:

    {
        			module: 'MMM-MQTT',
        			position: 'bottom_right',
    			header: 'ELEKTRA\xa0',
        			config: {
            		logging: false,
            		useWildcards: false,
            		mqttServers: [
                			{
                    		address: '192.168.2.155',
                    		port: '1883',
                    		subscriptions: [
                        			{
                            		topic: 'MM/Accu/Lader1',
                            		label: 'Acculader 1',
    					broadcast: false,
                       			},
                        			{
                            		topic: 'MM/Accu/Lader2',
                            		label: 'Acculader 2',
    					broadcast: false,
                       			},
    					{
                            		topic: 'Energie/power_delivered',
                            		label: 'Verbruik',
                            		suffix: 'kWh',
    					broadcast: false,
                       			}
                    		]
                			}
            			],
        			}
    		},
    
    
    S 1 Reply Last reply Dec 30, 2022, 2:47 PM Reply Quote 0
    • S Away
      sdetweil @MM-Hans
      last edited by Dec 30, 2022, 2:47 PM

      @MM-Hans is the send side sending info every 5 seconds?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Dec 30, 2022, 3:14 PM Reply Quote 0
      • M Offline
        MM-Hans @sdetweil
        last edited by Dec 30, 2022, 3:14 PM

        @sdetweil
        No Sam, both MM/Accu/ topics send every 5 minutes and Energy topic every 2.5 minute.

        S 1 Reply Last reply Dec 30, 2022, 4:15 PM Reply Quote 0
        • S Away
          sdetweil @MM-Hans
          last edited by Dec 30, 2022, 4:15 PM

          @MM-Hans there should be messages posted to the log for every mqtt message received

          and in the developers window, ctrl-shift-i on the keyboard and select the console tab and put part of the module name in the filter field

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Dec 30, 2022, 6:06 PM Reply Quote 0
          • M Offline
            MM-Hans @sdetweil
            last edited by Dec 30, 2022, 6:06 PM

            @sdetweil
            I forgot to mention that my mirror runs on a Raspberry Pi CM4 (in a Waveshare Magic Mirror). In the terminal (SSH) I can view logs with “pm2 log mm” but do not see any relevant details. CTRL-Shift-I doesn’t work if the software runs on a Raspberry, or am I mistaken?

            I just got a message from Otto Paulsen, the creator of the module, and he hadn’t heard of this problem yet. That would mean it has nothing to do with the module.

            M 1 Reply Last reply Jan 1, 2023, 1:10 PM Reply Quote 0
            • M Offline
              MM-Hans @MM-Hans
              last edited by Jan 1, 2023, 1:10 PM

              In general, “\xa0” can be used to add a space to the header, which works fine with all the modules I use. Unfortunately, that causes the mentioned problem with the MMM-MQTT module.

              As soon as I remove “\xa0” the problem is solved and the module works properly. I know, it’s strange and I can’t explain it, but it’s what I see happening in my setup.

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