Author Topic: Meteotemplate - new free website template  (Read 630765 times)

0 Members and 2 Guests are viewing this topic.

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6975 on: May 22, 2017, 03:19:26 AM »
Morning Jachym

Just activated the UV dial on the SS block using, all are show except for the UV dial
T,A,H,P,W,B,WindRose,R,UV,S

http://www.suffolkweather.info/template/indexDesktop.php
« Last Edit: May 22, 2017, 03:29:09 AM by Bashy »
Kind regards
Bashy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6976 on: May 22, 2017, 06:46:11 AM »
Do you have UV enabled in the SteelSeries plugin? Because this particular block depends on it.

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6977 on: May 22, 2017, 07:01:44 AM »
Ah yes, I see now, thanks

Back to the menu closing when scrolling, I found this, does it make any sense to you?

I had the same issue when working on a responsive site of my own. I was unable to discover the root cause of the issue but I developed a work-around. The anchor which I use to display the menu had a "open" toggle class added to it. I essentially used the "window.onscroll" call to check whether or not the menu should be shown each time the user scrolls the page, "showing" the menu again after each scroll.

Code: [Select]

window.onscroll = function (e) { 
    var sidebar = $('#sidebar')
    var menu = $('#sidebar > ul');
    if(sidebar.hasClass('open'))
        {
            menu.show();
        }
    }
Kind regards
Bashy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6978 on: May 22, 2017, 07:07:27 AM »
This has to do with opening and closing the submenus

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6979 on: May 22, 2017, 07:09:02 AM »
Yes that's right, when I open the menu, it's not all showing so I have to scroll down to see the rest, when I do that, the menu closes, the code is meant to be a fix / workaround for it
Kind regards
Bashy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - New Block – Wind Rose
« Reply #6980 on: May 22, 2017, 07:37:57 AM »
New Block – Wind Rose

Hi guys,

name of this new block is pretty much self-explanatory, more info about it:
http://meteotemplate.com/blog/?p=2615

DEMO: http://www.meteotemplate.com/template/indexBlockDemoNarrow.php?block=windRose

Enjoy

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 562
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Meteotemplate - new free website template
« Reply #6981 on: May 22, 2017, 07:43:30 AM »
Yes that's right, when I open the menu, it's not all showing so I have to scroll down to see the rest, when I do that, the menu closes, the code is meant to be a fix / workaround for it
Same thing on my site ;)

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6982 on: May 22, 2017, 01:18:04 PM »
Yes that's right, when I open the menu, it's not all showing so I have to scroll down to see the rest, when I do that, the menu closes, the code is meant to be a fix / workaround for it
Same thing on my site ;)

Phew, glad im  not the only one :)

Hi Jachym, regarding the Partner stations block, is there a way to include a METAR from WU? i am failing at present..
« Last Edit: May 22, 2017, 02:17:37 PM by Bashy »
Kind regards
Bashy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6983 on: May 22, 2017, 02:22:20 PM »
Metar from WU? Not sure I understand

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6984 on: May 22, 2017, 02:30:28 PM »
I beleive the block is based on WU stations, that's why I said METAR from Wu
Kind regards
Bashy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6985 on: May 22, 2017, 02:41:52 PM »
OK I see, unfortunately this will not work because the METAR stations are treated differently by WU and the data is in different format

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6986 on: May 22, 2017, 02:42:43 PM »
Thats what I though, thanks
Kind regards
Bashy

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Meteotemplate - new free website template
« Reply #6987 on: May 23, 2017, 02:32:58 AM »
Morning, just tested the paypal button and i get this error at paypal,  email addy is correct, triple checked it.
http://suffolkweather.info

PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.

Also, as mentioned a few days back, the reports/extremes is broken
« Last Edit: May 23, 2017, 06:15:13 AM by Bashy »
Kind regards
Bashy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - New Plugin – Climate – Custom
« Reply #6988 on: May 23, 2017, 12:50:55 PM »
New Plugin – Climate – Custom

http://meteotemplate.com/blog/?p=2617

Enjoy

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Meteotemplate - new free website template
« Reply #6989 on: May 23, 2017, 02:11:21 PM »
Jachym,

Is there a way to change the parameters of the colors on the thermometer block?  I would like to not see red all the time.  I live in a warmer climate and 90 degrees f is not very hot.

Jay
« Last Edit: May 23, 2017, 02:17:53 PM by jay_hoehn »
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6990 on: May 23, 2017, 02:20:25 PM »
Jachym,

Is there a way to change the parameters of the colors on the thermometer block?  I would like to not see red all the time.  I live in a warmer climate and 90 degrees f is not very hot.

Jay

Hi Jay,

in thermometerBlock, replace this:
Code: [Select]
function getGaugeColor($offset){
if($offset<=0.1){
return array("#0C00F5","#3C33F7");
}
else if($offset>0.1 && $offset<=0.2){
return array("#3C33F7","#6D66F9");
}
else if($offset>0.2 && $offset<=0.3){
return array("#6D66F9","#9D99FB");
}
else if($offset>0.3 && $offset<=0.4){
return array("#9D99FB","#CECCFD");
}
else if($offset>0.4 && $offset<=0.5){
return array("#CECCFD","#edecfc");
}
else if($offset>0.5 && $offset<=0.6){
return array("#E6BFBF","#edd8d8");
}
else if($offset>0.6 && $offset<=0.7){
return array("#CE7F7F","#E6BFBF");
}
else if($offset>0.7 && $offset<=0.8){
return array("#B63F3F","#CE7F7F");
}
else if($offset>0.8 && $offset<=0.9){
return array("#9E0000","#B63F3F");
}
else{
return array("#620000","#9E0000");
}
}

with:
Code: [Select]
function getGaugeColor($offset){

return array("#620000","#9E0000");
}

and the same in the thermoUpdater.php

Hopefully that will do it.

P.S. Im glad I dont live anywhere close to you :D That would be the end of me :D


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6991 on: May 23, 2017, 02:21:19 PM »
Oh and you might also want to delete this in thermometerBlock.php
Code: [Select]
highlights: [
{
from: <?php echo $thermometerMinimum?>,
to: <?php echo $thermometerMinimum 0.15*$gaugeInterval?>,
color: "#002994"
},
{
from: <?php echo $thermometerMinimum 0.15*$gaugeInterval?>,
to: <?php echo $thermometerMinimum 0.3*$gaugeInterval?>,
color: "#476dd0"
},
{
from: <?php echo $thermometerMinimum 0.7*$gaugeInterval?>,
to: <?php echo $thermometerMinimum 0.85*$gaugeInterval?>,
color: "#e22424"
},
{
from: <?php echo $thermometerMinimum 0.85*$gaugeInterval?>,
to: <?php echo $thermometerMaximum?>,
color: "#8f0000"
}
],

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Meteotemplate - new free website template
« Reply #6992 on: May 23, 2017, 02:52:27 PM »
Jachym,

Thanks!  I changed the colors of the thermometer from what you suggested and decided I would still keep the color scale. Looks good.

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6993 on: May 23, 2017, 05:41:13 PM »
Morning, just tested the paypal button and i get this error at paypal,  email addy is correct, triple checked it.
http://suffolkweather.info

PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.

Also, as mentioned a few days back, the reports/extremes is broken

Hi, yes I know about this problem, I fixed it long time ago and it will be ok in v15

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - Block Update – Wind Rose 1.1
« Reply #6994 on: May 23, 2017, 07:59:20 PM »
Block Update – Wind Rose 1.1

- minor bug fixes

Enjoy

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6995 on: May 23, 2017, 08:43:57 PM »
So who's going to be the quarter milionth viewer of this thread? :D

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Meteotemplate - new free website template
« Reply #6996 on: May 23, 2017, 09:18:40 PM »
I win!

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #6997 on: May 23, 2017, 10:37:44 PM »
Lol

Offline jeffm5690

  • Forecaster
  • *****
  • Posts: 310
    • Long Island New York Weather
Re: Meteotemplate - New Block – Wind Rose
« Reply #6998 on: May 23, 2017, 10:41:35 PM »
New Block – Wind Rose

Hi guys,

name of this new block is pretty much self-explanatory, more info about it:
http://meteotemplate.com/blog/?p=2615

DEMO: http://www.meteotemplate.com/template/indexBlockDemoNarrow.php?block=windRose

Enjoy

Thanks Jachym - this is great!

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - network is back
« Reply #6999 on: May 24, 2017, 08:25:44 AM »
Hi guys,
 
I have some great news for you :-)

http://meteotemplate.com/blog/?p=2621

Enjoy

 

anything