Read the statement by Michael Teeuw here.
MMM-aviationwx (Aviation weather)
-
So, it just dawned on me that the Raw-Report data looks pretty much like what I’ve been trying to achieve piece by piece, according to all of the wishes in this topic, aside from the order and the formatting. Shrug
Raw-Report: UUDD 220230Z 32003MPS 9999 OVC014 00/M02 Q1005 R32L/520295 NOSIG
Anyway, the flight rules have been converted to alternative color coding and are working. I can add the standard color coding at another time, via config option, so you can choose one or the other. The units will also will come from the data. The only time coming from the data is in Zulu time. It does not say if that is the time of the report.
Do you want a second line of data? Would you rather a single line as you’ve shown above?
Most importantly:
Someone needs to figure out how to call multiple ICAO’s in a single request. This would make my job a whole lot easier. Do I have to do everything? ;-)
@allebone said:
This is amazing collaboration.
So, collaborate already! ;-)
https://avwx.rest/api/metar/uudd only gets data for a single ICAO, uudd.
EDIT
I contacted the API. Only one station per request. Of course! I’ll think of something. -
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?

-
Standard and Alternative color coding is now a config option
-
So, I keep flip-flopping with API’s. I’m not thrilled with
aviationweather.govbut 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 toavwx.rest/apithen this will have to do. When I do figure that out I intend to use theavwx.rest/apiCaveat
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.

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.
-
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?
He might be able to help
-
@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 -
“C” removed

Individual coloring of each line made easy for easier viewing.

Still trying to work out the problem with
/avwx.rest/api -
@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:
-
Remove C from temperature? - yes, indeed. We just need to be sure that all data in C.
-
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…
-
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:
? -
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. -
-
-
@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
-
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", } }, -
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%", } }, -
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.
-
@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
-
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
-
This post is deleted! -
You have to run
npm installin the MagicMirror/modules/MMM-(THE MODULE NAME) folderI don’t know which one of the two you are trying
So for MMM-Pilot it’s
npm installin the MagicMirror/modules/MMM-Pilot directoryAnd for MMM-WISP it’s
npm installin the MagicMirror/modules/MMM-WISP directory -
@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.
-
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!)

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=PALHI 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

Not a huge deal on the units, but maybe put it on the wishlist?
Thanks again for your effort on putting this together!
-
@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

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