• 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 8.9k 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
    karsten13 @Snille
    last edited by Apr 8, 2022, 8:18 PM

    @Snille works only with latest mm release, you can test this before coding with "default": "http://localhost:8080/cors?url=http://your_not_working_url" (you have to adjust params to https or other port if necassary).

    You find the corresponding PR here.

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

      @karsten13 Hm… Not sure if that works, the “picture” is different depending om what the “sensor” is sending, so it’s not possible to set the “url=http://your_not_working_url” to something static… I’ll have to read up on it… :) Thank you!

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

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

        @Snille you should be able to see the CORS error in the dev window.

        however the url gets built now for the image, should be able to change it

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • W Offline
          wmx
          last edited by Apr 9, 2022, 9:27 AM

          @karsten13 , @Snille
          Sorry for the delay, but hanks for your feedback.

          Yes, I’m running MM on a raspi 3.
          One more point I figured out:
          The display connected to the raspi an showing THE mm on the wall has these problems with missing images.
          If I connect with a browser from my desltop to the mm URL the images are visible.

          I’ll try to test your given notes this weekend and return the results back here.

          1 Reply Last reply Reply Quote 0
          • W Offline
            wmx
            last edited by wmx Apr 9, 2022, 9:51 AM Apr 9, 2022, 9:49 AM

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

              icons: [{
              	"default": "https://www.snille.net/img/magicmirror/users/jane.png"
              }]
            

            (think in the example there is one closing bracket missing “]”)

            Had the time right now to test this one issue. I insertet the URL to the image from ha :-) (which is a static one here)

            http://<my-ha-url>:8123/local/images/hem.png
            

            but after restart of MM the problem still exists.

            K 1 Reply Last reply Apr 9, 2022, 4:58 PM Reply Quote 0
            • K Offline
              karsten13 @wmx
              last edited by Apr 9, 2022, 4:58 PM

              @wmx

              should be

              icons: [{
                "default": "http://localhost:8080/cors?url=http://<my-ha-url>:8123/local/images/hem.png"
              }]
              
              1 Reply Last reply Reply Quote 1
              • W Offline
                wmx
                last edited by Apr 10, 2022, 8:47 AM

                @karsten13
                Ok, tried this new config, but it does not change anything. :-(

                1 Reply Last reply Reply Quote 0
                • B Offline
                  borrmi @Snille
                  last edited by borrmi Apr 11, 2022, 5:49 PM Apr 11, 2022, 5:22 PM

                  @karsten13

                  I tried this(in the brackets)

                  default": "http://mm_url:8080/cors?url=http://ha_url:8123/media/borrmi.png but this doesn’t work. :-(

                  can i also use a local path on my mm instead? (e.g. ‘~/MagicMirror/pictures/person.png’)

                  S 1 Reply Last reply Apr 11, 2022, 5:48 PM Reply Quote 0
                  • S Away
                    sdetweil @borrmi
                    last edited by Apr 11, 2022, 5:48 PM

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

                    http://ha_url:8123/media/borrmi.png

                    does that work from a browser or curl on the system running MagicMirror?

                    curl -sL http://ha_url:8123/media/borrmi.png >borrmi.png
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Apr 11, 2022, 5:52 PM Reply Quote 0
                    • B Offline
                      borrmi @sdetweil
                      last edited by Apr 11, 2022, 5:52 PM

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

                      curl -sL http://ha_url:8123/media/borrmi.png >borrmi.png

                      no “404: Not Found”

                      S 1 Reply Last reply Apr 11, 2022, 5:53 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        11/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