MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-WeasleyClock: authorization error

    Troubleshooting
    4
    8
    224
    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.
    • kai
      kai last edited by

      Hi there,
      I’m a newbie here and I do not know if this is the right place for this post. So please apologize for possibly bothering you…

      I realized my first magic mirror on a Raspi a few weeks ago and it worked instantly without any errors! (Thanks a lot to Michael Teeuw and all of you!!!)
      I was so thrilled that I wanted to setup a second one with just the “Weasley Clock” for my youngsters - no sooner said then done. I set up my own MQTT broker (mosquitto) and installed the MMM-WeasleyClock. The broker is up and running and the installed owntracks apps on our mobile phones have been connected successfully.

      When I start the magic mirror it crashes as soon as I include the MMM-WeasleyClock module. To my mind this is not a magic mirror error because there is no error when I remove the MMM-WeasleyClock module.
      I set up mosquitto with TLS/certificates, ACL and user/passwords. Hence I think that I have a bad configuration of the MMM-WeasleyClock module:

      MMM-Weasley.png

      Please accept my apologies if this is not the the right forum (and close/delete this issue).
      Any hints highly appreciated. Thank you very much in advance.

      May the code be with you!
      -kai

      lavolp3 1 Reply Last reply Reply Quote 0
      • lavolp3
        lavolp3 Module Developer @kai last edited by

        @kai This is EXACTLY the right forum for your question.

        You seem to have an error in your MQTT settings.
        Maybe a wrong password?

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • kai
          kai last edited by

          @lavolp3 thanks a lot, you made my day!
          That was it… user/password and certificates is too much security. 😉
          I adjusted the MMM-WeasleyClock’s password configuration and it works!

          1 Reply Last reply Reply Quote 0
          • bhepler
            bhepler Project Sponsor last edited by bhepler

            Hey guys, the Weasley Clock is my module. I’m glad you got it working with your own MQTT server. The plan is to include instructions on how to do this. But I’m glad that you got it running for you.

            If you have suggestions or better yet, a pull request, I’m all ears.

            Do not try to connect to my MQTT server. Short version: It’s broken and I’m working on fixing it. It’s not you, it’s me.

            Long version: The module relied upon an poor implementation of OwnTracks with regards to TLS encryption. The latest version of OwnTracks fixed the implementation, so the module stopped working. Essentially, I need to figure out a better way of distributing the authorization key with the module.

            I have a fix in progress. I’ll let you know when I get it up & running.

            bhepler 1 Reply Last reply Reply Quote 0
            • bhepler
              bhepler Project Sponsor @bhepler last edited by

              Just an update: My MQTT server is back up & running again. It’s SSL enabled if you like, so you can just connect to it without specifying the CA file.

              Updated version with better instructions coming soon.

              D 1 Reply Last reply Reply Quote 0
              • D
                dudus200 @bhepler last edited by dudus200

                @bhepler Hey. great addition when we can expect a repository refresh
                Is there a chance to use the MQTT Broker and Location with Home Assistant?

                bhepler 1 Reply Last reply Reply Quote 0
                • bhepler
                  bhepler Project Sponsor @dudus200 last edited by

                  @dudus200 - Hey sorry for the delay. I have another project that is taking up a lot of my time.

                  I’m working on the next version which will include instructions on how to set up your own MQTT server and how to connect to it with or without the TLS encryption. That should give you the option to roll your own or tie into your own MQTT server if you have one connected to Home Assistant or whatever.

                  I’m not terribly familiar with Home Assistant. What sort of integration did you have in mind?

                  kai 1 Reply Last reply Reply Quote 0
                  • kai
                    kai @bhepler last edited by

                    Hi @bhepler,
                    thank you so much for all your effort! I really do love the Weasley Clock! 🤗
                    Since Sept 2021 I have difficulties with the OwnTracks app - probably due to the app’s update you mentioned here. (OwnTracks app always shows an “idle” state and does not connect to my MQTT server which has a signed cert from a known CA. Removing the app’s certificate didn’t help so far - or I did something wrong.)
                    Hence I’m eagerly awaiting your instructions on how to set up my own MQTT server and how to connect to it with or without the TLS encryption. 😉

                    May the code be with you
                    -kai

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