Modify the GK WIND value without decimal

Easy to use and free Joomla module to display weather with forecast from Yahoo.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Feb 23, 2015 5:43 pm
Hello,

I would like to modify the GKWIND value for using on my website a whole number value, is it possible? how can i access to this value?

Thank you in advance for your precious help. :D
User avatar
Fresh Boarder

GK User
Mon Feb 23, 2015 5:50 pm
Hi. GK Weather is using Yahoo Weatcher API.
some useful code you will find here: modules\mod_weather_gk4\tmpl\yahooView.php
User avatar
Platinum Boarder

GK User
Tue Feb 24, 2015 10:22 am
I try to modify the line 32
Code: Select all
<?php if($this->config['showWind'] == 1) : ?><p class="gkwWind"><?php echo $this->parsedData['current_wind']; ?></p><?php endif; ?>


Maybe i can add round () ? Maybe have you another tips ?
Thx for your help.
User avatar
Fresh Boarder

GK User
Tue Feb 24, 2015 10:28 am
sorry but I'm not certificated php developer to help you, besides php tips are not part of GK support.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.