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-aviationwx (Aviation weather)

    Scheduled Pinned Locked Moved Transport
    111 Posts 12 Posters 121.7k Views 11 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer
      last edited by Mykle1

      Here we encounter another problem with the “Remarks” line. It is not always the same length. When it is longer it wraps and looks messy. I could trim the data but that defeats the purpose. How set are we with having the remarks line?

      0_1511386279714_2.PNG

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer
        last edited by

        Standard and Alternative color coding is now a config option

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by Mykle1

          So, I keep flip-flopping with API’s. I’m not thrilled with aviationweather.gov but it does allow me to call multiple international stations in one request. However, there are differences in what each API offers. Until I can figure out how to make multiple requests to avwx.rest/api then this will have to do. When I do figure that out I intend to use the avwx.rest/api

          Caveat

          You can enter up to 8 international station ICAO’s. However, only stations with observation times within the last hour will be displayed. For instance, if KJFK has 2 observations within the last hour, then both observations will be displayed if there is an older observation among your other stations. In any case, the stations will order themselves by observation time starting with the most recent at the top.

          0_1511533955230_3.PNG

          Question: Remove the kt from wind speed? This API only provides kt.

          Question: Remove the C from temperature? This API only provides C

          Question: Any desire to have this module occupy the bottom or top bar where each station (one at a time) will span the entire width of your display? Ex, below the newsfeed module. I’m thinking a single line that can contain ALL of the data (raw data included) and you choose the amount of time each is displayed. Just a thought.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • S Offline
            stephenmelody
            last edited by

            I’d be surprised if the gov api is converting reported units to kts… I can have a look at this later and see if that’s really the case, or if it’s just providing values.

            C can go as all temps are reported in celcius, that’s the only bit that I think is common!!

            Have you tried emailing the guy at avwx?

            https://avwx.rest/contact

            He might be able to help

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @stephenmelody
              last edited by

              @stephenmelody said in MMM-aviationwx (Aviation weather):

              Have you tried emailing the guy at avwx?

              I did. That’s how I know I can’t use a single url for multiple stations (as in aviationweather). It’s my own lack of coding capability that prevents me from making multiple calls to that API from within the module. Help with that will have to come from this forum or somewhere else, not the API.

              I’d be surprised if the gov api is converting reported units to kts

              The data says, wind_speed_kt

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer
                last edited by Mykle1

                “C” removed

                0_1511559892573_3.PNG

                Individual coloring of each line made easy for easier viewing.

                0_1511561359682_3.PNG

                Still trying to work out the problem with /avwx.rest/api

                Create a working config
                How to add modules

                3 1 Reply Last reply Reply Quote 0
                • 3 Offline
                  320fan @Mykle1
                  last edited by 320fan

                  @Mykle1 said in MMM-aviationwx (Aviation weather):

                  Hi again,

                  Sorry for my long absence, I had really tough week of flights,and now I’m have 1 day off ;) Seem that you made a very good job with new module and I have seen that some questions were in place. So, just some of my opinions on these questions:

                  1. Remove C from temperature? - yes, indeed. We just need to be sure that all data in C.

                  2. Remove the kt from wind speed? The best way to keep initial units of measure (m/s in RU, kts in other contries from example). But, as I undestood, thats depends on API…

                  3. About remarks: first, just to recall - best way to have them to be configurable (to have options to display them/not display them at all). And for me - best way to keep the whole RMK field. Is there any possibility to align it by the next way:
                    0_1511605673698_Untitled.jpg ?

                  4. Also, I would ask you to keep digits after OVC/FEW/etc - it’s a important information, which means a top of clouds. I’ve just seen that on the last screenshoots this information is missing.

                  If you have any additional questions - please, let me know.
                  And thanks you again for your job.

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer
                    last edited by

                    https://youtu.be/zAImRnR9HsM

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 1
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @320fan
                      last edited by

                      @320fan said in MMM-aviationwx (Aviation weather):

                      About remarks: first, just to recall - best way to have them to be configurable (to have options to display them/not display them at all). And for me - best way to keep the whole RMK field.

                      I think, in the interest of mirror real estate, I will leave out the raw data for now. IMHO, an MM module is not meant to occupy all, or much of the display, as an iPad app would do.

                      Is there any possibility to align it by the next way:

                      I am not using a table in the module (I don’t know how) so alignment is tricky. I’m doing the best I can.

                      Also, I would ask you to keep digits after OVC/FEW/etc - it’s a important information, which means a top of clouds. I’ve just seen that on the last screenshoots this information is missing.

                      Agreed, and it will remain, as long as the data provides it.

                      Eventually, I’ll learn how to make multiples calls within the module. Then I can use the API of choice. For now I am battling with xml data of aviationweather.gov

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer
                        last edited by Mykle1

                        Ok, time for testing. Both of these modules are using aviationweather.gov for reasons explained above. I will learn how to make multiple requests within the module and move to avwx.rest/api, eventually.

                        Most like original in appearance and does allow for international ICAO’s.
                        https://github.com/mykle1/MMM-Pilot

                        {
                        	disabled: false,
                        	module: "MMM-Pilot",
                        	position: "top_left",
                        	config: {
                        		ICAO: "KJFK,EGLL,UUDD,EDDT,RJAA,ZBAA,LFPG,LIRF", // Any 8 International ICAO's
                        		colorCode: "Alternative", // Standard or Alternative
                        		updateInterval: 10 * 60 * 1000,
                        		useHeader: false,
                        		header: "",
                        		maxWidth: "400px",
                        	}
                        },
                        

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 10
                        • 11
                        • 12
                        • 7 / 12
                        • 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