***closed*** weather34 for WeatherDisplay (clientraw and WDapi)

Thanks, Wim.

I suppose “rain last hour” lags behind WD because we have to wait for all the fields (100-109) to be refreshed in clientraw?

And I get -2.9 mm rain last hour at midnight reset - see clientrawrain2. (That may be my fault - I just edited my existing w34_livedata.php file to swap CR[100] and CR[109], I didn’t upload the new file. . .)

P.S. There is no "rain last hour" in WDapi yet, needs a lot of extra fields to be added.

There’s something like it: see APIrain2. That comes from API[43] “raintotal60”.


APIrain2.JPG

clientrawrain2.JPG

After creating database using w34_util_createdb.php and using phpmyadmin to browse the db I get these errors:

Warning in ./libraries/sql.lib.php#613
count(): Parameter must be an array or an object that implements Countable

Backtrace

./libraries/sql.lib.php#2128: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#2062: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string ‘weatherstation’,
string ‘weatherstation’,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string ‘’,
string ‘./themes/pmahomme/img/’,
NULL,
NULL,
NULL,
string ‘SELECT * FROM weatherstation’,
NULL,
NULL,
)
./sql.php#221: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string ‘weatherstation’,
string ‘weatherstation’,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string ‘’,
string ‘./themes/pmahomme/img/’,
NULL,
NULL,
NULL,
string ‘SELECT * FROM weatherstation’,
NULL,
NULL,

Hi
In temp block trend, it appears 1.0 which should be 0.1

I use clientraw.txt on my site. Take a look here http://regnskvett.com/pwsWD/index.php?lang=en

Mvh Torjan

Thank you, attached a new version of w34_livedata.php to solve this one.
The used clientraw.txt [143] is a logic field, it does not contain a value.
Wim


w34_livedata.php.zip (5.46 KB)

Screenshot taken at 1745, before moonrise at 1818, but moon block is showing “tomorrow” moonrise and not “today”.

(An hour later, after moonrise, moon block was showing “today’s” 1818 correctly!)


Screenshot at 0940 (just before moonset) shows today’s day/date twice so text overflows box. After moonset it was perfectly OK!


moon7.JPG

Thanks for testing. Attached the latest versions of yesterday and today.
When you find a problem, check with Leuven Home Weather Station (wf version) as I am testing also.
That demo-site runs most of the time for Edinburgh to make it “easier” for us to test both.
Wim


moon.zip (9.84 KB)

Thanks, Wim.

When you find a problem, check with http://wd34.weather-template.com/pwsWD/ as I am testing also.

I usually run them side-by-side but didn’t think to check first #-o

Now it looks good.

Wow! This is really neat. It took maybe 20 minutes to download, install and configure. And works flawlessly.

Kudos to you all.

Re moon popup beta: seems a little odd to show “Sun rose at 08:18” but not “Sun set at 16:30”. Screenshot after sunset, at 1938.


popup2.JPG

Yes, one line missing.
Will check tomorrow.
Wim

Attached new version moon-popup, ready for production :wink:
Also another sun block with orange hours around the dial, also works correctly in Edge and IE


moon_popup.php.zip (5.78 KB)

sun_block.php.zip (2.96 KB)

Thanks, Wim. Looking good. . . :slight_smile:

Which file do I modify to add/change for the ‘EXTRAS’? I’d like to add links to my other web sites.

Thanks

w34_frames.php
There are already two examples which do show in your menu.

Could you also check if the sr.png flag did arrive at the correct place.
That flag is missing from the menu. It should have been in the update zip you installed.

Wim

sr.png flag is now in the correct place.

The websites may be too big to show in the frame. I’m playing with the length but it’ll need more width. And the Leuven template shows the Saratoga website for some reason:

$frame                  = 'website2';
$frm_ttls[$frame]       = 'M82A1 Leuven site';  // name in menu
$frm_src[$frame]        = 'http://www.m82a1.us/weather28/index.php?p=wsStartPage&lang=en';
$frm_hgth[$frame]       =  2800;         //height

http://www.m82a1.us/pwsWD/index.php

It was not designed to put a large big site inside a one page only site. The original idea 4 or 5 years ago was to have a site which fits on an iPad nicely. With all weather-station information on one page.

The menu entries for extra pages are included as sometimes another page is needed for extra information which is not supported in the HWS-template. Example: a soil-sensors page. Or a specialised forecast.

If you have one or two pages from your other websites, lets say, the start page of Leuven, you should try to fit them. In the Leuven-Template it is done with the option &ipad. You should change the link to
$frm_src[$frame] = ‘http://www.m82a1.us/weather28/?lang=en&ipad’;
or for the forecast
$frm_src[$frame] = ‘http://www.m82a1.us/weather28/?p=noaa_full_page&lang=en&ipad’;

It should be eaasy and fun to adapt, but if it will not fit, no solution.
Wim

Just noticed that all my WU Jan graphs show values to Sunday 26 Jan. . . but it’s Saturday 26 Jan today!


Hi Wim,

That ipad switch made all the difference. Looks great now. The icons above the NOAA graph are a bit weird though.

I had to remove the Saratoga page. It just won’t fit well. Then again it wasn’t meant to be squeezed up.

Thanks for your help.