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.

    Can anyone revive AviationWX, PilotWX, or TAF

    Scheduled Pinned Locked Moved Unsolved Requests
    36 Posts 3 Posters 11.9k Views 3 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.
    • F Offline
      FSAHD
      last edited by

      I am in the process of becoming a pilot and I would love to have the information these modules offer at a glance instead of having to look it up every time.

      I tried, with the help of AI to update the code as I believe they were using the request fuction which is deprecated. I even tried to create a module from scratch which right now is a failure lol.

      I am not the best at coding but if I can get a mentor I will definitely help keep the module up and running

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

        @FSAHD sure, you can use my sample module
        at least it works.

        https://github.com/sdetweil/SampleModule

        where is the data you want to show and what api might be available to get that data

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          FSAHD @sdetweil
          last edited by

          @sdetweil

          From what I have been able to tell I have 2 options however, I think https://aviationweather.gov/data/api/#/Data/dataMetars is going to be the better source (the other one is avwx.rest which needs users to sign up and create a token to use). I can send you a token for avwx if you need.

          FWIW I can also share the repository for the Module I was working on

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

            @FSAHD is the problem just the use of request?
            that can be fixed w very little code change

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              FSAHD @sdetweil
              last edited by

              @sdetweil that is what I believe it it, also what the AI helped me deduce.

              I attempted to solve that but was unsuccessful. I believe that was the problem with all 3 modules I mentioned.

              I tried using npm install request. that didnt work.

              Then I attempted to update the code to use axios

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

                @FSAHD OK, let me look at them

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @FSAHD well every url changed, and all the data
                  changed. some has to be calculated (avg airport delay) or that info display deleted.

                  too much work for me., given my avaliable time

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  F 1 Reply Last reply Reply Quote 0
                  • F Offline
                    FSAHD @sdetweil
                    last edited by

                    @sdetweil I appreciate you looking into this. ill take some time and see wat I can do!

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

                      @FSAHD I got the metar to work, then the faa data is all different not by airport request. and all the variable names have changed too

                      don’t know if the data is different for display

                      and the data is xml

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        FSAHD @sdetweil
                        last edited by

                        @sdetweil I know the airport delay item is last on the wish list.

                        I can take over and update variables and such. wherever you left off ill be happy to take over!

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

                          @FSAHD ok, let me finish the faa data . I was working on it this morning

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @FSAHD ok, here is the partially updated MMM-aviationwx

                            https://github.com/sdetweil/MMM-aviationwx

                            there is a file of the output sent back from the node_helper( this morning) in formatted json (sample-data.txt)

                            so you can see the field names and values…

                            I marked in the MMM-aviationwx.js in getDom() where all this needs to be corrected with correct variable names and values…

                            as an example

                                  var icao = airport.id;
                            

                            airport.id is now airport.station_id
                            “station_id”: “KSFO”,

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            F 1 Reply Last reply Reply Quote 0
                            • F Offline
                              FSAHD @sdetweil
                              last edited by

                              @sdetweil Thanks again for the help.

                              I think I have all the variables updated. Im c urrently working on trying to get the dependencies to install on my pi so I can test.

                              You were a big help and I see where I went wrong in a lot of places when I was trying to build from scratch. It was a lot of simple mistakes lol

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

                                @FSAHD great news.

                                dependencies?

                                package.json has them all for the module
                                so npm install will do all for the module

                                use my install script for mm

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @FSAHD a lot of simple mistakes…

                                  computers do things fast. whatever we tell them… lol

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    FSAHD @sdetweil
                                    last edited by

                                    @sdetweil I tried that after I cloned the git into the modules folder.

                                    I ended up getting this error.

                                    I also don’t remember if I used your script for this instance of mm or if I installed manually if that makes any difference

                                    20240315_030845.jpg

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

                                      @FSAHD ok, let me look at it in a couple hours

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      mumblebajM 1 Reply Last reply Reply Quote 0
                                      • mumblebajM Online
                                        mumblebaj Module Developer @sdetweil
                                        last edited by

                                        @sdetweil I think to resolve just do npm uninstall request and will remove request from the package,json. Else it will try to install it and you will run into the errors above.

                                        Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                        Check my blog-post: https://mumblebaj.xyz/
                                        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                                          @mumblebaj but the code uses request…

                                          It downloads a now gz folder, with one xml file in it… I tried to use fetch and couldn’t get it to unzip the file in stream…
                                          2 days, gave up

                                          I installed ok on a pi4 after doing my script install
                                          warnings but no failures

                                          npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
                                          npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                                          npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                          npm WARN deprecated joi@13.7.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
                                          
                                          added 66 packages, and audited 67 packages in 46s
                                          
                                          2 packages are looking for funding
                                            run `npm fund` for details
                                          
                                          6 vulnerabilities (2 moderate, 4 high)
                                          
                                          To address issues that do not require attention, run:
                                            npm audit fix
                                          
                                          To address all issues possible (including breaking changes), run:
                                            npm audit fix --force
                                          
                                          Some issues need review, and may require choosing
                                          a different dependency.
                                          
                                          Run `npm audit` for details.
                                          sam@raspberrypi4:~/MagicMirror/modules/MMM-aviationwx $ 
                                          

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

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

                                            @FSAHD i just pushed a fix to package.json and a new postinstall script

                                            git pull to get the updates…(watch out that it doesn’t overwrite your code)
                                            then the postinstall script from the module folder

                                            ./postinstall
                                            

                                            it will be called by npm install as well…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            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
                                            • 1 / 2
                                            • 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