Johnny_Rico Posted December 21, 2017 Share Posted December 21, 2017 (edited) I have wanted to get real time weather (METAR) data in our server missions So ... I wrote a system to do it (it operates before DCS launches - DCS limitation) I thought some other might want to use it, after all what is the point in creating something and not sharing it with others. I will keep one link with the most current up to date version in it -> https://github.com/shadowze/DCS_weather/releases Do Not Redistribute (makes it easier to keep it up to date) Features Set real time in mission file (also presets are available - some people dont like flying in the dark) METAR weather data from a selected airport(s) (you can set a primary and secondary airport to use) 2 independant web sites to grab the data from (just incase one happens to be offline) Thanks to Neon and Kenta for helping me test it out Any bugs please give me a shout and I will fix them (as best I can) The read me has detailed info on how to get his working, if you have any questions/suggestions just post a message on this thread -> https://forum.dcs.world/topic/168761-real-time-weather-metar-on-your-server-missions-how-to Edited December 31, 2023 by Johnny_Rico 1 METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
Martus Posted December 21, 2017 Share Posted December 21, 2017 Eager to try this out. Was planning to write my own. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Gaanalma Posted December 21, 2017 Share Posted December 21, 2017 See if this is what you are searching. http://www.amvi.it/download292-daws-weather-for-dcs-world-156.html From AMVI Italian Squadron! [sIGPIC][/sIGPIC] www.36stormovirtuale.net Link to comment Share on other sites More sharing options...
Johnny_Rico Posted December 21, 2017 Author Share Posted December 21, 2017 Sorry but I am running a 1.5.7 and 1.5.8 server not 1.5.6 (which DAWS weather works on) Thanks for the link tho METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
FlightControl Posted December 21, 2017 Share Posted December 21, 2017 Thanks for sharing this. When the time is right I will try this. +1 [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE] Link to comment Share on other sites More sharing options...
xcom Posted December 23, 2017 Share Posted December 23, 2017 This is a really nice feature, thanks! [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 2, 2018 Author Share Posted January 2, 2018 Is anyone using DAWS in their missions? I am working editing this to make this DAWS compatible METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
LevelPulse Posted January 2, 2018 Share Posted January 2, 2018 Can't wait to try this out, thanks. Will post my results soon when i test it. [sIGPIC][/sIGPIC] Director | Team Coordinator ME-163B Project The DCS Modding Hub Discord PC Specs: Intel I7 8700k 4.7Ghz Gigabyte Aorus Ultra Gaming Z370 Motherboard 16GB Corsair Vengeance DDR4 3000MHz Ram 500GB Samsung Evo 850 SSD Link to comment Share on other sites More sharing options...
Alpenwolf Posted January 4, 2018 Share Posted January 4, 2018 Cool stuff! I'll try it over the weekend :thumbup: Cold War 1947 - 1991 Discord Helicopters Tournaments Combined Arms Tournaments You can help me with keeping up the server via PayPal donations: hokumyounis@yahoo.com Link to comment Share on other sites More sharing options...
chromium Posted January 5, 2018 Share Posted January 5, 2018 Sorry but I am running a 1.5.7 and 1.5.8 server not 1.5.6 (which DAWS weather works on) Thanks for the link tho Thanks. DAWS Weather won't be updated before 2.5 and some time after also. Check mainly the modded "module" files inside mission editor folder. Inside the old DAWS code you can search by text "DAWS" word: each added chunk start & end with that tag. You might also have to deal with new mod structure, which is the reason that let me dump this version of weather and point right to integrate that into DAWS package. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 6, 2018 Author Share Posted January 6, 2018 I got a DAWS mission file from Neon and have modified my script to work out if it is a DAWS mission then write the new weather values back to the DAWS mission differently than a normal mission file Assuming that the format of how the weather is stored in the DAWS mission file does not change this will most likely work ok METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
chromium Posted January 6, 2018 Share Posted January 6, 2018 The weather info in DAWS Weather (or DAWS Package) is the very same of standard DCS weather table. It should works in any conditions, DAWS or not. In fact DAWS mission itself is a normal DCS mission file, no difference at all once loaded into the mission editor or by DCS. This mod won't be compatible with future DAWS Package version when I will integrate weather update functionalities... but in the meantime it could be a valid solution. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 6, 2018 Author Share Posted January 6, 2018 hmm I have never used DAWS but I got contacted by Neon who said my script would not work with DAWS missions normal mission file data for wind section ["wind"] = { ["at8000"] = { ["speed"] = 0, ["dir"] = 0, }, -- end of ["at8000"] ["atGround"] = { ["speed"] = 0, ["dir"] = 0, }, -- end of ["atGround"] ["at2000"] = { ["speed"] = 0, ["dir"] = 0, }, -- end of ["at2000"] }, -- end of ["wind"] DAWS mission file provided to me same section mission["weather"]["wind"] = {} mission["weather"]["wind"]["at8000"] = {} mission["weather"]["wind"]["at8000"]["speed"] = 7 mission["weather"]["wind"]["at8000"]["dir"] = 273 mission["weather"]["wind"]["atGround"] = {} mission["weather"]["wind"]["atGround"]["speed"] = 3 mission["weather"]["wind"]["atGround"]["dir"] = 270 mission["weather"]["wind"]["at2000"] = {} mission["weather"]["wind"]["at2000"]["speed"] = 5 mission["weather"]["wind"]["at2000"]["dir"] = 264 METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
chromium Posted January 6, 2018 Share Posted January 6, 2018 once you open and save the daws mission in the editor, those would look the same (upper side). "DAWS" format is only a different way to create the tables when the "mission" file inside the miz archive is written. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 6, 2018 Author Share Posted January 6, 2018 so list 2 is what is the mission file inside the miz after DAWS has done its processing with it ? METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
chromium Posted January 6, 2018 Share Posted January 6, 2018 list 2 is the saved "mission" file inside .miz archive when DAWS saves a mission. It automatically be converted to the list 1 format once the file is open & saved inside the mission editor. If you immediately load the saved mission file, for DCS won't be an issue but it might be for your mode. So, your mod might work only if you open&save the DAWS's saved file in the mission editor before launching the mission. I might say that if your mod does the same as daws weather did, so: load the "mission" file into a local table, process and sobstitute the env.mission.weather table with the one generated by metar lua parser, then re-save the "mission" file with a serializer you shouln't have any problem anyway. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 6, 2018 Author Share Posted January 6, 2018 thanks for the info open&save the DAWS's saved file in the mission editor before launching the mission. ^ yep that is exactly what I do (needs to update mission file before loaded into MP server METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
chromium Posted January 6, 2018 Share Posted January 6, 2018 Than it's strange that your mod doesn't do the job with DAWS package saved files :noexpression: Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 7, 2018 Author Share Posted January 7, 2018 (edited) It has to write different data for each file type due to DAWS changing things I have a test version done , awaiting feedback from tester Edited January 7, 2018 by Johnny_Rico METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
chromium Posted January 7, 2018 Share Posted January 7, 2018 Then it's a different solution. DAWS weather load the entire mission file, sobstitute the weather table, and rewrite the entire mission file. This way nothing changes because loading a table with list1 or list2 formats it's the same. Maybe check DAWS_Weather_mul.lua file in the DAWS Weather old mod if you find issue in the testing. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 7, 2018 Author Share Posted January 7, 2018 Thanks for the input So to re-cap List 1 default way DCS saves files List 2 file after DAWS has modified it DAWS and DCS can handle both versions METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
chromium Posted January 7, 2018 Share Posted January 7, 2018 to recap: list1 & list 2 are the same thing once loaded. They are written differently when it comes to file. Since DAWS & DCS load the tables before working on it, they can handle both and any other possible way to write the same thing. If possibile it's safer that you could work on a loaded table imho. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Johnny_Rico Posted January 7, 2018 Author Share Posted January 7, 2018 thanks for confirming what I thought METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
uscstaylor Posted January 24, 2018 Share Posted January 24, 2018 Is this working in the 1.5.8 version Link to comment Share on other sites More sharing options...
uscstaylor Posted January 25, 2018 Share Posted January 25, 2018 (edited) Due your instructions are not very clear. What does this mean After installing python open a dos window as admin and install requests using pip install requests What requests? 2nd Get an API key to grab real time weather from the internet from www.checkwx.com - register an account and then login and go to www.checkwx.com/apikey - fill in the details (remember to say non commercial use) - might take up to 24 hours for him to activate it for you but you can check by going to - https://www.checkwx.com/user/api once you have it copy paste it somewhere safe - dont give your key out to anyone else you only get a certain amount of free reads per month - Our server restarts 4 times per day every 6 hours, so we said we would only use about 200 per month - when filling in the form What API key are you talking about? I really want to use this but need help with this. UPDATE GOT THE KEY but still need help to install Edited February 22, 2018 by uscstaylor Link to comment Share on other sites More sharing options...
Recommended Posts