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 133.8k 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 @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

      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

        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

            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

              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",
                	}
                },
                
                1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer
                  last edited by Mykle1

                  A new spin on the display and does allow for international ICAO’s.
                  https://github.com/mykle1/MMM-WISP

                  {
                          disabled: false,
                  	module: "MMM-WISP",
                  	position: "bottom_bar", // you could try top_bar and thirds
                  	config: {
                  	        ICAO: "KJFK,EGLL,UUDD,EDDT,RJAA,ZBAA,LFPG,LIRF", // Not limited to 8 International ICAO's
                  		colorCode: "Alternative", // Standard or Alternative
                  		useHeader: false,
                  		header: "",
                  		maxWidth: "100%",
                  	}
                  },
                  
                  A 1 Reply Last reply Reply Quote 2
                  • A Offline
                    Area 49 @Mykle1
                    last edited by

                    @Mykle1,

                    Thanks for your work on this!

                    I just installed Magic Mirror and started looking around for an aviation weather module that included Alaska. I just now stumbled on this thread, and see that your work should include the airports that I want in my list. I’ll install and test it as soon as I get a chance.

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

                      @Area-49 said in MMM-aviationwx (Aviation weather):

                      I’ll install and test it as soon as I get a chance.

                      Great! Let me know how things go. Use the four letter ICAO for each station you want to see

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Area 49 @Mykle1
                        last edited by

                        @Mykle1,

                        Looks like there is a dependency required - from my PM2 error log file: Error: Cannot find module ‘xml2js’

                        I’m just getting started figuring out Linux, Git repository, and Javascript, so I’m not sure where to find - and under what directory to install this dependency.

                        Is this the one to install? https://github.com/Leonidas-from-XIV/node-xml2js

                        Thanks

                        Mykle1M 3 Replies Last reply Reply Quote 0
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer @Area 49
                          last edited by Mykle1

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • Mykle1M Offline
                            Mykle1 Project Sponsor Module Developer @Area 49
                            last edited by Mykle1

                            @Area-49

                            You have to run npm install in the MagicMirror/modules/MMM-(THE MODULE NAME) folder

                            I don’t know which one of the two you are trying

                            So for MMM-Pilot it’s

                            npm install in the MagicMirror/modules/MMM-Pilot directory

                            And for MMM-WISP it’s

                            npm install in the MagicMirror/modules/MMM-WISP directory

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

                              @Area-49 said in MMM-aviationwx (Aviation weather):

                              I’m just getting started figuring out Linux, Git repository, and Javascript, so I’m not sure where to find - and under what directory to install this dependency.

                              Sorry about the lack of directions. I only just put this up for testing so it hasn’t been officially released or properly documented.

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                Area 49
                                last edited by

                                Mykle1,

                                Got it to install & run. Thanks for the clarification on how to install.

                                I put in my chosen airports in AK (also one in HI - just so I can feel bad about how cold it is here right now!)
                                0_1511732517173_Capture.JPG

                                Not sure if you know, but you can return only the most recent Metar data from each airport by using a slightly different URL and the following format:
                                http://aviationweather.ncep.noaa.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=4&mostRecent=true&stationString=PALH

                                I like the output format. I think it works well for at-a-glance information purposes. However if I had a choice, I’d like a config option for temperature and dew point units. I’m used to looking at these in Fahrenheit. I have my own simple personal website where I link to a few Metar reports directly, and the pages show both the raw units and (converted).
                                Example for PALH (Lake Hood AK): http://www.aviationweather.gov/adds/metars/?station_ids=palh&std_trans=translated&chk_metars=on&hoursStr=most+recent+only&submitmet=Submit
                                0_1511732578910_Capture1.JPG

                                Not a huge deal on the units, but maybe put it on the wishlist?

                                Thanks again for your effort on putting this together!

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

                                  @Area-49 said in MMM-aviationwx (Aviation weather):

                                  Not a huge deal on the units, but maybe put it on the wishlist?

                                  Sure, I’ll keep that in mind. I’m not in a rush after 500+ lines of code already. :-)

                                  Thanks again for your effort on putting this together!

                                  You’re welcome. It’s nice to be appreciated. :-)

                                  Now, the first url you posted is great. If you can edit it to pull multiple ICAO’s at once, then I’ll use it. I tried briefly. It only seems to return 1 ICAO. The url I’m using pulls observations from the last hour.

                                  The second url you posted is also great. However, it doesn’t get me to the xml data that I need for the module. If you can manage to get a url to return the very same data like this, we’ll be jamming

                                  0_1511737737664_1.PNG

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

                                    I feel obliged to state that this module should only be used for entertainment purposes. Yes, the data is being pulled from the very same sites that you use ordinarily, but the thought of any of you relying on this module’s data for actual flights scares the shit out of me. Not that you would. You’re pilots. You’re smarter than that, I hope. :-)

                                    How would that work anyway? You’re going to hang your mirror in the cockpit? :-)

                                    That’ll be a $10.00 fee for Wi-Fi. :-)

                                    Peace!

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

                                      When did 3.3k people look at this topic? Crazy

                                      Ok, so I’ve done the best I could with alignment of columns, considering there ARE no columns. At least the Flight Rules icon, the station, the wind direction and speed are relatively straight. I’m pretty much done with that. I hope it will suffice.

                                      I’ve added a Station header and a Conditions header. Here they are underlined. They don’t have to be. I was just experimenting.

                                      I’ve also added the most recent observation time to the end of each station’s conditions. This is converted from Zulu time to your local military time. Is this the way it should be?

                                      0_1511816456973_1.PNG

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

                                        Now I’ll add the most recent observation time to MMM-WISP for those that may want the rotating, bottom_bar version.

                                        Done!

                                        0_1511817830417_1.PNG

                                        The updates have been pushed to Github although there is no documentation as of yet

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

                                          @Mykle1

                                          Merged both modules into one. Static or Rotating by config option

                                          https://github.com/mykle1/MMM-PilotWX

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

                                            I’m planning on pulling this down at some point soon… just having some stability issues with my raspberry pi at the moment. It keeps crashing on me every 12-24 hours…

                                            Mykle1M 1 Reply 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
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 4 / 6
                                            • 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