I’ve been fidding around with METAR information, and have managed to get a working script of the VATSIM metar information. Best part about it is that there is NO iframes!
Here is a quick shot to show you what it looks like
You can add the code where ever you want it to be displayed.
For anyone using this code: be aware, Vatsim is rather strict when it comes to downloading data from their servers, and with this code, every metar will be downloaded every time someone accesses the page. If you have quite some traffic to your site, they’ll easily block your server’s access to download from Vatsim, so you might want to consider downloading and save the data on your server, and then have a script check if your local file is older than x minutes, and if it is, redownload. It’s not too difficult to set up, and all you need can be found by a simple search (I don’t have access to my FTP at the moment so I can’t post my code)
Specifically please consider how many concurrent requests you are making and how often.
The IPs below have been flagged as having make grossly excessive numbers of requests to the METAR system. By this I’m talking in the tens of thousands of requests per day. Considering you can download the entire METAR file in a single request and that METARs don’t update more than about once every 30 mins, you can have all the METARs available to you with 48 requests per day.
The record was hit last night, I won’t single out the IP, but it was 99,904 individual requests in 24 hours!
If your ARE in the list
If your IP is below you need to re-think how you are calling the METARs and use the ability to obtain more than one at once, if you aren’t already. See my post for more details. From this time next week, I will start blocking IPs on this list that continue with “excessive” usage. Feel free to get in touch with me if you recognise your IP and would like me to hold off banning it while you make the appropriate changes.
If you AREN’T in the list
Please have a look anyway to make sure you are following the guidance in my post. Those I’ve listed below are requesting in the tens of thousands and therefore I’ve flagged as “grossly excessive”. There are still many many sites making an excessive number of requests that I haven’t listed below.
Above all, please keep in mind that it’s not just you using the system and that we want to keep it available to everyone. Thanks for your cooperation
there is no need to do that you can save the txt file on your server and grab it from there i might be able to give you a script 2morrow as i am still at work
there is no need to do that you can save the txt file on your server and grab it from there i might be able to give you a script 2morrow as i am still at work
Hey Vangelis,
I know this post is old but I’m wondering whether you wrote a script for this?