Karamellwuerfel Posted January 10, 2017 Report Share Posted January 10, 2017 (edited) Hey guys! I've made a Weather module that shows you real time and instant weather informations of the current airport where the logged in pilot is. DEMO VIDEO: www.youtube.com/watch?v=Cx0HCaW-a5I #########INSTALLATION######### 1. Copy the "core/modules/InstantWeather"-folder into your "core/modules"-folder of your va 2. Copy the "core/templates/instantweather"-folder into your "core/templates"-folder of your va 3. To show the module in the navigation: <li><a href="<?php echo url('/instantweather'); ?>">InstantWeather</a></li> USE INFORMATION ON OTHER PAGES (v 1.9) --> More on github project README.md Use MainController::Run to display all different information of the table on other pages. Available functions: <?php MainController::Run('InstantWeather', 'metar'); ?> // example: EDDS 070920Z 26004KT 230V300 9999 FEW012 SCT025 BKN068 18/16 Q1015 NOSIG <?php MainController::Run('InstantWeather', 'pressure'); ?> // example: 982 mbar <?php MainController::Run('InstantWeather', 'wind_speed'); ?> // example: 4 kts <?php MainController::Run('InstantWeather', 'wind_degrees'); ?> // example: 260° <?php MainController::Run('InstantWeather', 'temperature'); ?> // example: 18.0 °C <?php MainController::Run('InstantWeather', 'dewpoint'); ?> // example: 16.0 °C <?php MainController::Run('InstantWeather', 'visibility'); ?> // example: 6.21 mile <?php MainController::Run('InstantWeather', 'skycondition'); ?> /* example: Sky condition level 1 FEW 1200 ft Sky condition level 2 SCT 2500 ft (Scattered) Sky condition level 3 BKN 6800 ft (Broken) */ DOWNLOAD (Tested on PHPVMS Version 2.1.936) Edited September 7, 2018 by MrDonutButter +++ UPDATE V1.9 +++ 2 1 Quote Link to comment Share on other sites More sharing options...
Moderators ProSkyDesign Posted January 10, 2017 Moderators Report Share Posted January 10, 2017 it works for .tpl version? Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted January 10, 2017 Author Report Share Posted January 10, 2017 16 minutes ago, joooseb said: it works for .tpl version? Yes I think so. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted January 12, 2017 Moderators Report Share Posted January 12, 2017 I would suggest uploading your module on github to ensure that it won't be lost from the forum. What is the weather source? It would be great if you could decode clouds too. Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted January 12, 2017 Author Report Share Posted January 12, 2017 3 hours ago, servetas said: I would suggest uploading your module on github to ensure that it won't be lost from the forum. What is the weather source? It would be great if you could decode clouds too. Added in Version 1.1 - thanks! http://philippdalheimer.de/phpvms-demo-1/index.php/instantweather Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted January 15, 2017 Author Report Share Posted January 15, 2017 Fixed some display issues (°C) in version 1.2 Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted June 21, 2017 Report Share Posted June 21, 2017 Can you reupload the module? Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted June 28, 2017 Author Report Share Posted June 28, 2017 On 21.06.2017 at 2:36 PM, RafaelLetras said: Can you reupload the module? Should work: https://goo.gl/W7FW32 Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted July 12, 2017 Author Report Share Posted July 12, 2017 (edited) ++ UPDATED TO VERSION 1.3 ++ You can now change the displayed temperature between fahrenheit and celsius. Download / Update: https://goo.gl/W7FW32 Edited July 12, 2017 by MrDonutButter Quote Link to comment Share on other sites More sharing options...
LeeCley2017 Posted September 22, 2017 Report Share Posted September 22, 2017 Hello guy! I installed your module, but the following occurred, my DOV does not work after the installation via PC, but via Cellular it accesses normally! my PHPVMS is 5.5 Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 22, 2017 Author Report Share Posted September 22, 2017 4 minutes ago, LeeCley2017 said: Hello guy! I installed your module, but the following occurred, my DOV does not work after the installation via PC, but via Cellular it accesses normally! my PHPVMS is 5.5 Hi LeeCley2017, I tested it on PHPVMS Version 2.1.936 - Not in the 5.5. What do you mein with DOV? Do you cam explain your issue more precise? Regards Quote Link to comment Share on other sites More sharing options...
LeeCley2017 Posted September 22, 2017 Report Share Posted September 22, 2017 the DOV is my page of pilots, where access to everything after the login, what happens is that it does not load when I install the module, there is only a white screen in the browser! Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 22, 2017 Author Report Share Posted September 22, 2017 6 minutes ago, LeeCley2017 said: the DOV is my page of pilots, where access to everything after the login, what happens is that it does not load when I install the module, there is only a white screen in the browser! Hi, I'll Look at your issue at monday when I'm at home Quote Link to comment Share on other sites More sharing options...
LeeCley2017 Posted September 22, 2017 Report Share Posted September 22, 2017 thanks man Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 26, 2017 Author Report Share Posted September 26, 2017 (edited) On 22.9.2017 at 9:54 PM, LeeCley2017 said: Hello guy! I installed your module, but the following occurred, my DOV does not work after the installation via PC, but via Cellular it accesses normally! my PHPVMS is 5.5 Hey LeeCley2017! I tested it on my computer with the phpvms 5.5.2 and get the warnings at the top of the page: Warning: Cannot modify header information - headers already sent by [...] To solve this, you just have to cut out line 1-6 in core > modules > InstantWeather > InstantWeather.php <!--/////////////////////////////////////////////////////////////// /////InstantWeather Module v1.3 for phpvms by Philipp Dalheimer//// //////////////////////www.philippdalheimer.de////////////////////// ///+ DO NOT EDIT + FOR FREE USE + PHPVMS FORUM: MrDonutButter +//// ///////////////////////////////////////////////////////////////--> <?php class InstantWeather extends CodonModule { [...] } ?> To make it simple I've uploaded a new version of the module. So you just have to download the version 1.4 and try it again. It could be, that this causes your error with the DOV. If you've tested it out, please contact me again if it works. Thanks. Edited September 26, 2017 by MrDonutButter Quote Link to comment Share on other sites More sharing options...
LeeCley2017 Posted September 26, 2017 Report Share Posted September 26, 2017 It worked, thanks a lot, you're the guy !! Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 26, 2017 Author Report Share Posted September 26, 2017 Just now, LeeCley2017 said: It worked, thanks a lot, you're the guy !! You're welcome Can you tell me which airline you have? Quote Link to comment Share on other sites More sharing options...
LeeCley2017 Posted September 26, 2017 Report Share Posted September 26, 2017 www.copavairlines.com 1 Quote Link to comment Share on other sites More sharing options...
LeeCley2017 Posted September 26, 2017 Report Share Posted September 26, 2017 Good afternoon! I wanted to give you an idea, what would you like to include the track in use? another thing I have identified is that it takes the current landing location as the current location, but if it jumps to another location it does not identify that change and continues to mark the last landing location if it changes to the current location of the pilot at events it will register correctly, it's just a suggestion! Quote Link to comment Share on other sites More sharing options...
ncd200 Posted September 2, 2018 Report Share Posted September 2, 2018 Hello, first of all thank you for this module. I have the following problem, I want to show this tabel with decoded weather in a widget on the frontpage. How can I achieve this? is this possible with a main controller? Rick Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 3, 2018 Author Report Share Posted September 3, 2018 On 9/2/2018 at 8:04 AM, ncd200 said: Hello, first of all thank you for this module. I have the following problem, I want to show this tabel with decoded weather in a widget on the frontpage. How can I achieve this? is this possible with a main controller? Rick 3 Hey Rick, do you mean to show ONLY the complete metar info for the airport? Quote Link to comment Share on other sites More sharing options...
ncd200 Posted September 4, 2018 Report Share Posted September 4, 2018 yes, I have now the following: Quote <div class="card"> <div class="card-title"> <h4>Current weather</h4> </div> <div class="card-body"> <table style="width:100% !important;" class="table"> <tr> <td class="fat">METAR</td> <td><?php echo $metar;?></td> </tr> <tr> <td class="fat">Pressure (altimeter)</td> <td><?php echo $altim_bar . " mbar";?></td> </tr> <tr> <td class="fat">Wind</td> <td><?php echo $wind_dir_deg;?>° with <?php echo $wind_speed_kt;?> kts</td> </tr> <tr> <td class="fat">Temperature</td> <td><?php echo $temp;?> <?php echo ' '. $temp_indicator;?></td> </tr> <tr> <td class="fat">Dewpoint</td> <td><?php echo $dewpoint;?> <?php echo ' '. $temp_indicator;?></td> </tr> <tr> <td class="fat">Horizontal visibility</td> <td><?php echo $visibility_decrypt;?></td> </tr> <?php MainController::Run('InstantWeather', 'sky_condition', ''); ?> </table> Only where do I give the current location to work with for this module? Thanks allready for the help! Rick Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 4, 2018 Author Report Share Posted September 4, 2018 (edited) 9 hours ago, ncd200 said: yes, I have now the following: Only where do I give the current location to work with for this module? Thanks allready for the help! Rick Hi Rick! The module looks for the pilots last accepted pirep arrival airport. Thats the "current position airport". It took this and show it's weather. I've implemented a PHP get method that you can set the airports icao. To do this you have the url and you just add ?icao=ICAO_HERE - in my case: http://phpvms.philippdalheimer.de/index.php/instantweather?icao=eddf To do this, please update the module. There should be a update link in the module. Or just check out the news on github. Hope it solves your problem, Rick! 🙂 Edited September 4, 2018 by MrDonutButter Quote Link to comment Share on other sites More sharing options...
ncd200 Posted September 4, 2018 Report Share Posted September 4, 2018 Thanks for the answer. The module works as intended only no in a wdget from the frontpage. what i am trying to do is to view the weather module from the frontpager_main in a section special for the weather. Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 4, 2018 Author Report Share Posted September 4, 2018 (edited) Does it work with this? <?php MainController::Run('InstantWeather', 'get_metar', ''); ?> Edited September 4, 2018 by MrDonutButter Quote Link to comment Share on other sites More sharing options...
ncd200 Posted September 6, 2018 Report Share Posted September 6, 2018 negative sir. any other ideas? Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 6, 2018 Author Report Share Posted September 6, 2018 pm you Quote Link to comment Share on other sites More sharing options...
Karamellwuerfel Posted September 7, 2018 Author Report Share Posted September 7, 2018 (edited) Updated module to v1.9 ☺️✔️ How to update? Just download the module new and upload & replace it on your server. Please backup your files before updating. Edited September 7, 2018 by MrDonutButter Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted November 2, 2019 Administrators Report Share Posted November 2, 2019 2 hours ago, Larsje40 said: Hello NCD200. Which template is that wich i see on your picture? i really like it. and can i download it somewhere with explanation how to install it? THNX gr. larsje That looks like a customized version of CrewCenter. https://github.com/web541/CrewCenter Quote Link to comment Share on other sites More sharing options...
ncd200 Posted November 3, 2019 Report Share Posted November 3, 2019 Well, at this moment I have a very different template totaly customized but I thought the ws modified of the ELA2018 template. which you can doenload here: https://github.com/carlosmfreitas2409/ElaSkin-2.0 Thanks for the compliment thought;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.