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

MMM-WeasleyClock: authorization error

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 4 Posters 2.4k 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
    kai
    last edited by Nov 24, 2020, 9:42 PM

    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

    L 1 Reply Last reply Nov 24, 2020, 10:54 PM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @kai
      last edited by Nov 24, 2020, 10:54 PM

      @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
      • K Offline
        kai
        last edited by Nov 25, 2020, 8:22 AM

        @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
        • B Offline
          bhepler Module Developer
          last edited by bhepler Sep 27, 2021, 1:38 AM Sep 27, 2021, 1:36 AM

          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.

          B 1 Reply Last reply Jan 17, 2022, 4:34 PM Reply Quote 0
          • B Offline
            bhepler Module Developer @bhepler
            last edited by Jan 17, 2022, 4:34 PM

            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 Apr 12, 2022, 3:08 PM Reply Quote 0
            • D Offline
              dudus200 @bhepler
              last edited by dudus200 Apr 12, 2022, 3:15 PM Apr 12, 2022, 3:08 PM

              @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?

              B 1 Reply Last reply Apr 26, 2022, 11:44 PM Reply Quote 0
              • B Offline
                bhepler Module Developer @dudus200
                last edited by Apr 26, 2022, 11:44 PM

                @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?

                K 1 Reply Last reply May 19, 2022, 12:49 PM Reply Quote 0
                • K Offline
                  kai @bhepler
                  last edited by May 19, 2022, 12:49 PM

                  Hi @bhepler,
                  thank you so much for all your effort! I really do love the Weasley Clock! :hugging_face:
                  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. :winking_face:

                  May the code be with you
                  -kai

                  B 1 Reply Last reply May 25, 2022, 1:59 AM Reply Quote 0
                  • B Offline
                    bhepler Module Developer @kai
                    last edited by bhepler May 25, 2022, 1:59 AM May 25, 2022, 1:59 AM

                    @kai said in MMM-WeasleyClock: authorization error:

                    (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.)

                    This sounds like OwnTracks is in “manual” mode where it will not attempt to update location unless you touch the update button. If you are on the map screen and you see what looks like the Pause button on your stereo, I think that is the indicator. Press it a few times until it shows the “play” icon (triangle with a point facing to the right).

                    Then go back to the status page and see if it goes away from Idle. Let me know what you see.

                    K 1 Reply Last reply Sep 4, 2022, 8:06 PM Reply Quote 0
                    • K Offline
                      kai @bhepler
                      last edited by Sep 4, 2022, 8:06 PM

                      Hi @bhepler,
                      thank you very much for your answer. I appreciate that very much.
                      Please excuse my late response - time flies by…
                      Meanwhile I discovered your new WeasleyClock release and your walkthrough for setting up a mosquitto server.
                      Thank you so much!!! :clapping_hands:
                      Today I deleted and re-installed the WeasleyClock on my magic mirror and followed your mosquitto guide and everything works so fine now! I have both a WeasleyClock and my own MQTT server with password and TLS. Wow!
                      That’s entirely thanks to you. :thumbs_up:
                      Thank you very much again for all you effort!

                      May the code be with you
                      -kai

                      B 1 Reply Last reply Sep 10, 2022, 5:45 PM Reply Quote 1
                      • 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