Simple InstantWeather Module

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)

it works for .tpl version?

16 minutes ago, joooseb said:

it works for .tpl version?

Yes I think so.

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.

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

Fixed some display issues (°C) in version 1.2

Can you reupload the module?

On ‎21‎.‎06‎.‎2017 at 2:36 PM, RafaelLetras said:

Can you reupload the module?

Should work: https://goo.gl/W7FW32

++ UPDATED TO VERSION 1.3 ++

You can now change the displayed temperature between fahrenheit and celsius.

Download / Update: https://goo.gl/W7FW32

 

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

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

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!

 

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 

thanks man

 

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.

It worked, thanks a lot, you're the guy !!

Just now, LeeCley2017 said:

It worked, thanks a lot, you’re the guy !!

You’re welcome  Can you tell me which airline you have?

www.copavairlines.com

 

1 Like

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!

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