cloudy cloudy

Author Topic: 'Idesign Simplicity' Template by Brian Underdown  (Read 68032 times)

0 Members and 1 Guest are viewing this topic.

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • Mac OS X 10.12.3
  • Safari 10.0.3
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #630 on: April 15, 2017, 08:19:58 PM »
I noticed that an update added a scroll bar to the Earthquake Data popup page when viewing it in IE 11.

hello

i cant test it but just out of curisity go into eqfolder and edit eqlist.php change this line

<img src="eqscale.svg" width="200px" height="26px" alt="homeweatherstation earthquake scale"/>

if that fails I seem to recall IE needing specific scaling for SVG

try

<img src="eqscale.png" width="200px" height="26px" alt="homeweatherstation earthquake scale"/>

blainec ive never released any files with the code i just keep a working development version for trying out different things , i also have a accuweather script but you need a minimum paid subscription to use. the problem I see xuapi is it is not much different from any other forecast source you tend to end up with airport data which is fine if you live near one like me I'm literally line of sight of 5km from Istanbul Ataturk airport and at same sea level so its generally ok but for many others its not the case .I have no problem with doing one off custom scripts for anyone however being that there custom made it is up to the individuals to maintain it going forward ..
your issue with WU can you not just use a nearby location??? not familiar with region unfortunately..

anyway I'm off the internet radar for a few days it could be a rather chaotic period here in turkey for the next few days only time will tell. 

take care ...brian


Offline blainec

  • Global Moderator
  • Posts: 316
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Calgary Alberta
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #631 on: April 15, 2017, 09:40:26 PM »
hello

blainec ive never released any files with the code i just keep a working development version for trying out different things , i also have a accuweather script but you need a minimum paid subscription to use. the problem I see xuapi is it is not much different from any other forecast source you tend to end up with airport data which is fine if you live near one like me I'm literally line of sight of 5km from Istanbul Ataturk airport and at same sea level so its generally ok but for many others its not the case .I have no problem with doing one off custom scripts for anyone however being that there custom made it is up to the individuals to maintain it going forward ..
your issue with WU can you not just use a nearby location??? not familiar with region unfortunately..

anyway I'm off the internet radar for a few days it could be a rather chaotic period here in turkey for the next few days only time will tell. 



take care ...brian
Using a metar is not a problem for me. I am 3KM line of site from the metar. All I need to use is the sky conditions from the metar.  The rest of the data from WU is OK
« Last Edit: April 16, 2017, 04:57:24 AM by blainec »

Offline Forever

  • Posts: 431
  • Santa Cruz, CA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • WeatherCat
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #632 on: April 15, 2017, 10:04:01 PM »

Thanks Brian, using the following worked.
<img src="eqscale.svg" width="200px" height="26px" alt="homeweatherstation earthquake scale"/>

Offline bdtripps

  • Posts: 179
  • Youngtown, AZ
  • OS/Browser:
  • Mac OS X 10.12.4
  • Chrome 57.0.2987.133
    • Agua Fria Ranch Youngtown, AZ
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #633 on: April 16, 2017, 02:51:35 AM »
Brian the gradient temperature and color theme looks great. :) http://southwestweather.com/pws/KAZYOUNG2.php?theme=color

Thanks again
BTrip
B.Trip
DavisVP2/ Envoy Wireless, 2011 Mac Mini Server
El-Capitan 10.11.6, 2.3ghz Quad-Core Intel Core i7 16GB Ram
Arizona

Offline pwilman

  • Posts: 552
  • Bath Spa, United Kingdom
  • OS/Browser:
  • iOS 10.3.1
  • Safari 10.0
    • Bath Spa Weather
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #634 on: April 17, 2017, 06:40:51 AM »
Brian,

Really like the temperature gradients. Are you able to do it for the light theme as well? Think it would look good on that one too.

Paul
paulwilman73@gmail.com
http://www.paulwilman.com

Davis vantage pro2 with dFARS, solar sensor, USB logger
W10 Lenovo ultra book 8Gb RAM

Offline pricey

  • Posts: 161
  • Llanelli Wales United Kingdom
  • OS/Browser:
  • Android 5.1.1
  • Chrome 38.0.2125.102
    • Llanelli Weather
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #635 on: April 17, 2017, 12:19:00 PM »
Yes i second that , it would be a nice addition. As Brian said though turbulent times in Turkey. Be safe Brian.

Steve.

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • iOS 10.3.1
  • Safari 10.0
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #636 on: April 18, 2017, 02:28:19 PM »
Yes i second that , it would be a nice addition. As Brian said though turbulent times in Turkey. Be safe Brian.

Steve.

Hi unfortunately it will have to wait till the weekend my internet is only in range when near land currently and at best 2g speeds so nigh on impossible to add any changes or upload but I will add on the gradients to light theme when I get home and fix the below zero not reflecting gradient output Blainec...

Brian

Offline blainec

  • Global Moderator
  • Posts: 316
  • Calgary, Ab.
  • OS/Browser:
  • Android 6.0
  • Chrome 57.0.2987.132
    • Calgary Alberta
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #637 on: April 18, 2017, 03:14:20 PM »
Thank you.
I can wait until you return from vacation

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • Mac OS X 10.12.3
  • Safari 10.0.3
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #638 on: April 19, 2017, 02:57:45 PM »
Thank you.
I can wait until you return from vacation

updated download or you can use simple fix attached

1.fix below zero gradient now also includes gradient temperatures for light theme
2.just update the three css files in the zip attached
3.replace existing temperature.php with one in zip attached

brian


Offline pwilman

  • Posts: 552
  • Bath Spa, United Kingdom
  • OS/Browser:
  • iOS 10.3
  • Safari 10.0
    • Bath Spa Weather
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #639 on: April 19, 2017, 10:33:20 PM »
Brian,

Thanks so much for doing this, especially as it sounds like you are away. The temperature trend chevron is showing up as blue, so doesn't stand out very much. It's the code from line 120 to 130 in temperature.php

I overwrote the new code with the code from the previous temperature.php and temp trend chevron is now back to being white.

Thanks again.

Paul
paulwilman73@gmail.com
http://www.paulwilman.com

Davis vantage pro2 with dFARS, solar sensor, USB logger
W10 Lenovo ultra book 8Gb RAM

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • Mac OS X 10.12.3
  • Safari 10.0.3
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #640 on: April 21, 2017, 03:43:18 PM »
Good evening

all 3 themes now include gradient temperatures

Fixes (21 APRIL 2017)
  - Adressed all minor isuues with with temperature.php gradients and solar.php color issues . css files updated, temperature.php and all solar(1 and 2).php updated

Fix /Update/gradient (19 APRIL 2017)
  - Fix below zero gradient output, added gradient temperature colors to light theme.fixed Portuguese flag option in common.php

https://www.weather34.com/homeweatherstation/index.html

brian



Offline Forever

  • Posts: 431
  • Santa Cruz, CA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • WeatherCat
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #641 on: April 22, 2017, 08:50:43 PM »
The update today made the Forecast Summary icons small again for IE 11.

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • Mac OS X 10.12.3
  • Safari 10.0.3
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #642 on: April 23, 2017, 07:51:54 AM »
The update today made the Forecast Summary icons small again for IE 11.

good morning

IE11 what a suprise :-) ok i have completely re wrote the script for the outlook.php please find attached and if you can let me know you can check the demo prior to using it
at http://boutiquehotelitaly.com/devpws/  just click the forecast summary .

basically simplified the whole script

<?php // 23 april 2017 new summary outlook using WU for weather34 homeweatherstation template //
$weather34wuurl = file_get_contents("../jsondata/wuweatherupdate.txt");
$parsed_weather34wujson = (json_decode($weather34wuurl));
$forecastday = $parsed_weather34wujson->{'forecast'}->{'txt_forecast'}->{'forecastday'};
$count = count($forecastday);
for($i = 0; $i < $count; $i++)
  {
    $period = $forecastday[$i];
    if($period->{'period'} == 1 || $period->{'period'} == 3 || $period->{'period'} == 2)
     {
    $icon=$parsed_weather34wujson->{'forecast'}->{'txt_forecast'}->{'forecastday'}[$i]->{'icon'};   
    $forecast = $parsed_weather34wujson->{'forecast'}->{'txt_forecast'}->{'forecastday'}[$i]->{'fcttext'};
    $forecastm = $parsed_weather34wujson->{'forecast'}->{'txt_forecast'}->{'forecastday'}[$i]->{'fcttext_metric'};
    $rain = $parsed_weather34wujson->{'forecast'}->{'txt_forecast'}->{'forecastday'}[$i]->{'pop'};
    $dayofweek = $period->{'title'}; echo "<span class='icon'>" ; echo "<img class='icon' rel='prefetch' src='../css/icons/".$icon.".svg '></span>";
    echo "<span class='day'>" ;    echo $dayofweek; echo "</span> " ;    echo "<span class='forecast'>" ; if ($tempunit=='C')echo $forecastm;
    else echo $forecast; echo "<br></span>";}}
  //end summary outlook using WU for weather34 homeweatherstation template
?>


« Last Edit: April 23, 2017, 02:00:36 PM by weatherist34 »

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • Mac OS X 10.12.3
  • Safari 10.0.3
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #643 on: April 23, 2017, 08:46:40 AM »
looks like it ok just managed to get my IE laptop working

https://www.weather34.com/homeweatherstation/index.html

IE11 Fix(23 APRIL 2017)
  - outlook.php fixed not rendering SVG icons correctly in IE11 re-wrote script from scratch only need to update outlook.php in the forecast folder.

Fix/Update Forecast (22 APRIL 2017)
  - All forecast scripts using SVG icons. Fixed minor earthquake css error.

Fixes (21 APRIL 2017)
  - Adressed all minor isuues with with temperature.php gradients and solar.php color issues . css files updated, temperature.php and all solar(1 and 2).php updated

Fix /Update/gradient (19 APRIL 2017)
  - Fix below zero gradient output, added gradient temperature colors to light theme.fixed Portuguese flag option in common.php

Offline weatherist34

  • Posts: 315
  • OS/Browser:
  • Mac OS X 10.12.3
  • Safari 10.0.3
Re: 'Idesign Simplicity' Template by Brian Underdown
« Reply #644 on: April 23, 2017, 02:02:55 PM »
if you just want the outlook.php zip you can just use the one attached .

place this in the forecast folder replacing existing. it has been verified ok for IE11 :-)

« Last Edit: April 23, 2017, 02:15:38 PM by weatherist34 »

 

cumulus