3in1 updated

Hi guys and gals!

Updated the 3in1 zip :slight_smile:

  • New “readydefined sets” for showing on webpage; topforecast, graph and tabs
  • New 1 hour table for next 48 hours and renamed “Detailed” to “Overview”
  • New graph with buttons to choose what set of values are shown
  • New tooltips on each data (tables, graph & topforecast)
  • Heavy looptrought of the code
  • New wind-direction icons with 360 different direction where available in data + some other icons (also dotvoid-frc.png are new) :wink:
  • New javascripts with more functions but also updated jQuery
  • Shows also “Next Update”
  • Cuztomized jQueryUI-css in use for the new look of the tabs :wink:
  • Graph can be set visible or not in the tabs
  • No need for Ken’s plaintext-parser.php anymore (lang-files still needed)
  • HTML5 valid → NOTE! At least one thing are incomaptible with HTML4 validation*

Demo: http://www.nordicweather.net/test/wxsim/sivu2.php

Topforecast in action: Weatherstation Salo, Pertteli
Graph and tabs in action: 25 day Weatherforecast [NordicComb]

Download: http://www.nordicweather.net/downloads/?2

Henkka

  • In HTML5 are used for javascript while HTML4 needs

Hi Henkka, thanks ever so much, i love the update…

Not sure its working 100% for me though, in the top forecast theres sun and cloud but in the detailed forecasts its showing sunny all the time, also it appeasr that i have broken the metogram tab lol http://www.northantsweather.com/wxwxsimmulti.php

Bashy, you need to choose Sky Cover in WRET (+ Visibility for new 48h table), see the wret.png in the zip.

Graph…
Stand-alone graph and graph in tab can’t be used on same page, you have to choose one or the other :wink:

Henkka

Hi Henkka, I just had to remove it for now, my dashboard disapeared, not sure why yet :frowning:

Hi Henkka,

Thanks a lot for all your hard work. It`s great!
http://www.weerstation-marsdijk.nl/assen.php

Some tips for other users without Saratoga templat

Thanks Henkka, very nice update :smiley:

I have it working (I think) and waiting for a new forecast with adjusted wret.

I am using Saratoga temp. and would like to adjust the following :

Meteogram : How do I reduce the font of the “buttons” to make them fit better to the page with?
48-hr : The detailed 48-hr seems to be wider then overvie and detailed. Is it possible to reduce the width?

Testpage :

http://www.mavahome.com/wxall3in1.php

rgs

* All images must be in Img folder. (place UV2 images also in that folder. (Not img/UV2/ but also UV2 images in Img folder)
They should be in img/uv2/-folder
* Translation: I use this link with ?lang=nl at the end. Example : /sivu2?lang=nl
Yes, for testing are that end needed, in "normal use" are $lang variable needed for translaition
48-hr : The detailed 48-hr seems to be wider then overvie and detailed. Is it possible to reduce the width?
Problem you see are that the headers in the table do the table too wide, table itself are same wide as the rest. You have to shorten the names and/or remove some row(s).
Meteogram : How do I reduce the font of the "buttons" to make them fit better to the page with?
css-file, .button-class

henkka

Hi Henkka,

About the img folder; The UV images where in a different or seperate folder in the img folder.
I had to copy them from the UV folder in the img folder. Then it was working.
Hope you understand what I mean.

Oebel

Henkka,

I don`t see thunder icons. There is thunder in my forecast. Text is there, but no thunder icons. (only rain icon)
http://www.weerstation-marsdijk.nl/assen.php

EDIT:thunder is now gone in forecast.
I missed in the icons at the top the thunder icon and also in the graph section.
Only in detailed forecast there were thunder icons.

Oebel

Fix for thundericon in topsection/overview-table:

wxall.functions.php, line 100 are this:
$iconcheck = wanewicon($prcond,0,$fogcond ,$pltscd,$cover,$btot);
change it to this:
$iconcheck = wanewicon($prcond,$fogcond,$pltscd,$cover,$btot);

Henkka

Henkka,

Beautiful job as usual. I have mine working pretty well http://jcweather.us/wxsim3in1-2.php in imperial units by modifying the new wxall.css with the temp stuff from the old US version. That’s attached if you want to check it over and place it in the distribution.

I wonder, do we need one more $uoms array item for visibility on the Detailed 48 hrs tab?

Thanks for all the hard work. - Jim

Updated the attachment 10/12/11


wxall.css.txt (34.3 KB)

Jim,

Thanks, will take a look.
What uoms are you missing? That km → mi for visibility?

Henkka

Henkka,

Yes, that’s the only one that I noticed.

  • Jim

Jim,

Ok, should not be difficult to add. Btw, do WRET print the value in miles too or do we need an conversation there?

Henkka

Hi,

Thanks for your help Henkka. Got everything working now exept for the wind scale in the meteogram.
Rigth now the scale stops at 25 kmh and the forecast is more then 35 kmh. Is it possible to adjust this?

Great update =D>

http://www.mavahome.com/wxall3in1.php

rgs

Thanks Henkka for your fine script.
Have got some things to work but not all…
If you see on my page www.sm6kiw.se/weather/sivu2.php I’m missing all the icons above the graph and the Wind and also the Hour-by-Hour, Detaild 48hrs Meteogram and Grass & Soil.

Probably have i got some of the path wrong or something else.
Any suggestions to test ?

/Bo

Rigth now the scale stops at 25 kmh and the forecast is more then 35 kmh. Is it possible to adjust this?
Humm...It *should* autoscale but seems not to do that (35 are default max for kmh), will do some tests there...
Probably have i got some of the path wrong or something else. Any suggestions to test ?

That was strange…

  • For missing 2 days in topforecast, add 1 more day to wxsim to create forecast
  • It gets lastret.txt OK as graph has data so it is not a pathproblem at least there. But i see it miss the rain and wind-data so check the ticks in wret. (compare with wret.png in the zip) What do it also strange are that tables don’t have any data. What happens if you disable graph in tabs? ($showgraph = false;)

Henkka

Autoscale of the graph fixed now :slight_smile:
Changed file wxall.lastret.php

Also unit for visibility added in settings-file ($uoms-array), note tought, it do not calculate it so it shows visibility “as is” in lastret.txt.
When get any confirmation about if coneversation are needed for miles i will add it.

Henkka

Henkka,
Is the new wxall.lastret.php updatet in the download link on page 1 ?
I can’t see any change. Same scale, max 25.

rgs

- For missing 2 days in topforecast, add 1 more day to wxsim to create forecast - It gets lastret.txt OK as graph has data so it is not a pathproblem at least there. But i see it miss the rain and wind-data so check the ticks in wret. (compare with wret.png in the zip) What do it also strange are that tables don't have any data. What happens if you disable graph in tabs? ($showgraph = false;)

Added 1 more day to the forecast, compared with your wret.png and can’t find anything that differ.
Tested with $showgraph = false and $showgraph = true and can’t see any difference :frowning:

/Bo