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.

    Changing icons of the modules Current Weather and Weather Forecast

    Scheduled Pinned Locked Moved Development
    301 Posts 30 Posters 1.6m Views 33 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
      Manu85 @sdetweil
      last edited by

      @sdetweil
      you made me want to do a lot of things, but I think I’m going to be limited very quickly… I have the “MMM-ISS-Live” module, from [Mykle1](https://github.com/ Mykle1), updated by KristjanESPERANTO https://github.com/KristjanESPERANTO/MMM-ISS-Live which is really great (force to them) and I would like to know if it was possible to add a module with the position of the 'ISS on the planisphere to have the position of the ISS live as on the ESA website: https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/International_Space_Station/Where_is_the_International_Space_Station

      I don’t know if I’m posting on the right subject but it’s a development that could interest a lot of people

      code_text
      

      770548b5-b977-447d-be65-47bf86337be2-image.png

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Manu85
        last edited by

        @Manu85 is it possible… sure…

        and as that image is already an iframe you can do the same thing with existing modules
        the web content of that page contains(using the dev window to look at the html source of that page)

        <p>&nbsp;</p><iframe src="https://isstracker.spaceflight.esa.int/" width="625" height="350" frameborder="0" scrolling="no" allowfullscreen></iframe>
        

        SO, you can use one of the iframe modules… to use that same link from the src=

        see the 3rd party module list
        https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-Party-Modules

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          Manu85 @sdetweil
          last edited by

          @sdetweil you are a genius, how did you manage to recover the ifram
          “https://isstracker.spaceflight.esa.int/”?

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Manu85
            last edited by

            @Manu85 I viewed the page, then right clicked and selected ‘View Page Source’

            which got me this (I have scrolled down a little)
            Screenshot at 2024-01-20 07-54-28.png

            and you can look at the real page and see the text and follow along to find the spot where the image would be… and boom, its in an iframe

            and then copy the url out…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              Manu85 @sdetweil
              last edited by

              @sdetweil I think I started to understand, like that?

              d01e24fb-d3fa-4929-9fc1-fc35c78e5ab0-image.png

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Manu85
                last edited by sdetweil

                @Manu85 using the dev window is another way, yes
                and if you had used the pointer to hover over the image, it would have taken you directly to that part of the html content

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  Manu85 @sdetweil
                  last edited by

                  @sdetweil This means that by using existing modules I can change some properties to adapt them to my needs, for example if I use the ISS live module if I change the address in the module’s js can it work?

                  S 2 Replies Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Manu85
                    last edited by sdetweil

                    @Manu85 existing modules like MMM-SmartWebDisplay take the URL as a config option . no coding required

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @Manu85
                      last edited by

                      @Manu85 I don’t think the ISS-live module can do that, as it calls an api to get the images

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        Manu85 @sdetweil
                        last edited by

                        @sdetweil ah ok I will try, you are my master

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @Manu85
                          last edited by sdetweil

                          @Manu85 there are other modules too… (note that you can push the iframe right up against the ISS-live output, so they LOOK like they are together…) a little css borders and padding… maybe other stuff…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          M 2 Replies Last reply Reply Quote 0
                          • M Offline
                            Manu85 @sdetweil
                            last edited by

                            @sdetweil ok, I will try both solutions

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Manu85 @sdetweil
                              last edited by

                              @sdetweil just copying the link doesn’t work

                              4eff0577-d409-4a9f-b11f-ae51bd67c527-image.png

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @Manu85
                                last edited by

                                @Manu85 i don’t know… I put it in smartwebdisplay
                                Screenshot at 2024-01-20 08-37-17.png

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Manu85 @sdetweil
                                  last edited by

                                  @sdetweil I’ll try

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @Manu85
                                    last edited by sdetweil

                                    @Manu85 here is the module config I used
                                    I took the size from the original web page

                                    {
                                    		module: 'MMM-SmartWebDisplay',
                                    		position: 'middle_center',	// This can be any of the regions.
                                    		config: {
                                    			// See 'Configuration options' for more information.
                                    			logDebug: false, //set to true to get detailed debug logs. To see them : "Ctrl+Shift+i"
                                    			height:"350px", //hauteur du cadre en pixel ou %
                                    			width:"650px", //largeur
                                                   		updateInterval: 0, //in min. Set it to 0 for no refresh (for videos)
                                                    	NextURLInterval: 0.5, //in min, set it to 0 not to have automatic URL change. If only 1 URL given, it will be updated
                                                    	displayLastUpdate: true, //to display the last update of the URL
                                    					displayLastUpdateFormat: 'ddd - HH:mm:ss', //format of the date and time to display
                                                    	url: ["https://isstracker.spaceflight.esa.int/"], //source of the URL to be displayed
                                    					scrolling: "no", // allow scrolling or not. html 4 only
                                    					shutoffDelay: 10000 //delay in miliseconds to video shut-off while using together with MMM-PIR-Sensor
                                    			}
                                    	},
                                    

                                    I didn’t change anything other than size and url
                                    there could be other settings needed…

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    M 3 Replies Last reply Reply Quote 0
                                    • M Offline
                                      Manu85 @sdetweil
                                      last edited by

                                      @sdetweil I did like you I see the image clearly on the MM, but it disappears every 3 seconds then recharges continuously, the green LED of the raspberry is lit very often, as if the module required a lot of resources from the pi

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        Manu85 @sdetweil
                                        last edited by

                                        @sdetweil I found, you have to set this setting to “0”, otherwise it reloads every 30 seconds

                                        NextURLInterval: 0,
                                        
                                        1 Reply Last reply Reply Quote 1
                                        • M Offline
                                          Manu85 @sdetweil
                                          last edited by

                                          @sdetweil Hello Sam, I still need your help, I saw KristjanESPERANTO’s module: MMM-OneCallWeather which I really like, so I installed this module I copied his example from js.config which I have completed with my elements longitude, latitude apy key, I tested my api key on the internet in version 2.5 and it works, so I changed the version in MMM-OneCallWeather.js, as Kristjan explains in the github, and when I restart the MM it notifies loading and nothing happens, I tried to understand, but I’m stuck, so I call a specialist :-)

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @Manu85
                                            last edited by

                                            @Manu85 said in Changing icons of the modules Current Weather and Weather Forecast:

                                            -OneCall

                                            OneCall requires the v3 key and api as I understand it…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            M M 3 Replies Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 15
                                            • 16
                                            • 7 / 16
                                            • 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