• 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-homeassistant-sensors no icons after MM upgrade to 2.19.0

Scheduled Pinned Locked Moved Solved Troubleshooting
38 Posts 5 Posters 9.7k 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.
  • W Offline
    wmx
    last edited by Apr 11, 2022, 8:57 PM

    @sdetweil, @Snille
    same here.
    The urls to the icons work in browser sessions showing MM, but do not work local in raspi with MM.

    I tested access from raspi console with

    curl -sL http://<ma-ha-url>:8123/local/images/person.jpg >person.jpg 
    

    and this works too.

    I also have the same problem, the local MM is not able to access a remote_compliments.conf file via URL in the local module\defaults\compliments folder, but I can access it from a browser. Seems to be the same problem!?

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil @Snille
      last edited by Apr 11, 2022, 9:00 PM

      @Snille what is the view of the console in the MM dev window? should be an access error

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Apr 11, 2022, 9:05 PM Reply Quote 0
      • S Offline
        Snille Module Developer @sdetweil
        last edited by Apr 11, 2022, 9:05 PM

        @sdetweil Correct, it’s the cors error:
        c994e8de-8164-4307-b93e-ec340e8a13e7-image.png

        If you cant find it, make it and share it!
        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

        K 1 Reply Last reply Apr 11, 2022, 9:10 PM Reply Quote 0
        • K Offline
          karsten13 @Snille
          last edited by Apr 11, 2022, 9:10 PM

          @Snille

          if you can manage to insert http://localhost:8080/cors?url= so that the whole url is http://localhost:8080/cors?url=http://10.0.0.249: ... it should work

          S 1 Reply Last reply Apr 11, 2022, 9:20 PM Reply Quote 0
          • S Offline
            Snille Module Developer @karsten13
            last edited by Snille Apr 11, 2022, 9:25 PM Apr 11, 2022, 9:20 PM

            @karsten13 Almost… I can’t use “localhost” because then I cant access the “remote control” (and therefore can not open DevTools) from anywhere… So I have to set at least the “IP” of the mirror… But I still get the broken image…
            a21a719e-2cf0-4177-9ecb-49a91dc51829-image.png
            But I get no errors in the console now… Hmm…

            If you cant find it, make it and share it!
            Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

            K 1 Reply Last reply Apr 11, 2022, 9:26 PM Reply Quote 0
            • K Offline
              karsten13 @Snille
              last edited by Apr 11, 2022, 9:26 PM

              @Snille said in MMM-homeassistant-sensors no icons after MM upgrade to 2.19.0:

              But I get no errors in the console now… Hmm…

              strange, may errors in the server logs?

              S 2 Replies Last reply Apr 11, 2022, 9:33 PM Reply Quote 0
              • S Offline
                Snille Module Developer @karsten13
                last edited by Apr 11, 2022, 9:33 PM

                @karsten13 in the (pm2 log) I get:

                0|MagicMirror  | [11.04.2022 23:30.43.266] [LOG]
                0|MagicMirror  | cors url: http://10.0.0.249:8123/api/camera_proxy/camera.xiaomi_cloud_map_extractor?token=5b341e663bd99335792031e6f0129db5502c3eddfc4e297f70bdbfbc284a528e
                

                For every try. Now it no longer works in the browser… And if I curl it…

                curl -sL http://10.0.0.112:8080/cors?url=http://10.0.0.249:8123/api/camera_proxy/camera.xiaomi_cloud_map_extractor?token=562f09c026b6a8a87de4dc0ed7bfe5273e23429c1fb152be3597c37cf1b6d2d0
                

                I get nothing… :)
                So, something is not working more now… :)

                If you cant find it, make it and share it!
                Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                K 1 Reply Last reply Apr 11, 2022, 9:36 PM Reply Quote 0
                • K Offline
                  karsten13 @Snille
                  last edited by Apr 11, 2022, 9:36 PM

                  @Snille

                  the cors url log entry is o.k., but no idea at the moment. I’m not sure if the ip (instead of localhost) works, will try to test this tomorrow (I have no homeassistant so this will be no real test) …

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Snille Module Developer @karsten13
                    last edited by Snille Apr 11, 2022, 9:49 PM Apr 11, 2022, 9:43 PM

                    Hang on, I just reset everything “back”, reset the MMM-homeassistant-sensors
                    to it’s “original” state but let the IP be set in the config… And now it works?
                    What’s going on here?! :)

                    All modules that are fetching pictures from other places are now working!?
                    So, the config needs to have the actual IP of the mirror set now. I have been using 0.0.0.0 all the time… Also tried “localhost” and it did not work. But the actual IP works!

                    Great!! Thank you all for helping out! :)

                    If you cant find it, make it and share it!
                    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                    1 Reply Last reply Reply Quote 1
                    • W Offline
                      wmx
                      last edited by Apr 11, 2022, 10:07 PM

                      Ok, I can reproduce this correction too! :-)
                      After changing address: “0.0.0.0” to the real ip address: “192.168.x.y” and removing every additional config from this thread ALL images are back again!

                      Thank you all for this simple but effictive solution!

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 4 / 4
                      4 / 4
                      • First post
                        32/38
                        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