Embedding METAR in page

I noticed that there is an embedded METAR in the pilot brief page, and would like to be able to do this on another website (i.e. not phpVMS), but I can’t find the code to do it. How is it embedded, and does it use PHP or JavaScript?

It’s a call to geonames’s API

My knowledge of PHP is very limited, so I have no idea how I would call the data, and what code to use etc. Do you have a piece of code that will work by itself that I can integrate into a page?

Thanks.