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

100% BrianUnderdown (weather34) for the design and original scripts. I myself are your humble servant to do the support for this version

I have mine setup and working but, for some reason, I am not getting the current forecast. What could I be missing?
You have to apply for a DarkSky api key and enter it in easyweathersetup. Nearly at the bottom
Also, where are the current weather alerts supposed to come from? Right now, we have a Wind Advisory posted for our area and there is no alert in the Weather Alert box.
http://ucweather.org/pwsWD/
The weather alerts come from the weather-values in the scripts themselves. Not from an outside company as NWS or Meteoalarm.

Wim

Thanks a lot, Wim. Working great now, even got a weather alert. Should be interesting to watch the next several days as we are supposed to get a lot of wind and rain. BTW, I really like the air quality sensor feature.

Hello Wim
Great work. I see some small fixes on the installation page. How do you update the build?

Thanks
Steve

You should unzip the update.
The 10 changed scripts go into the pwsWD/ folder on your server.
There are two folders with a name "copy to "
One has the extra flag, goes into pwdWD/img/flags/ The other has the extra language files for pwdWD/languages/

Succes,
Wim

One small typo, in line 137 of W34_menu.php: ‘Select langauge’ should read ‘Select language’

(That works in my menu, but I don’t know if there are any other places I should look?)

And the words “Template by weather34.com” at bottom right overhang the main template “frame”. . .?

Ok Wim will give it a go.

Thanks
Steve

Very easy solution:
Correct all typing errors by using the language files. |'Select langauge|Select language|
That way you are sure that with a new release the error does not return.
And that visitors using another language can see the translation to their language also.
The script-editors do not catch those typing errors and English is not my native language either
This: |from text in script |to text visitor sees| is therefor used by multiple template authors.

And the words “Template by weather34.com” at bottom right overhang the main template “frame”. . .?
Can you make a small screenshot, as I do not understand what the problem is at my test site, thanks.
Wim

Thanks, Wim.

1.JPG shows my site, 2.JPG shows your test site. Legends (Data source, Hardware, etc.) not centred, either.


Hello, the page
http://www.meteotorrelavega.com/pwsWD/w34_cron_stationcron.php
Give me this:
No loading of DB neededsuccess files loaded + to day file
Y :
http://www.meteotorrelavega.com/pwsWD/w34_util_createdb.php

weather34 Error creating database: Access denied for user ‘meteotorkcmilio’ @ ‘%’ to database ‘weatherstation’
I have checked name database, use password everything is fine
I connect to phpMyAdmin right
attached images
the second is what I think by importing the sql file
any suggestions
emilio #-o 8O 8O


sshot-3.png

Win direction and avg wind direction always have some direction although they have different ones


windir.JPG

your site http://swanston.maui.co.uk/pws/ shows differently at my place with chrome and FF. I think the height has to be adjusted to fit.
Script w34_index.php line 261 reads now

        <img src="img/weather34logo.svg" width="40px" alt="https://weather34.com/homeweatherstation/" class="homeweatherstationlogo" ></a>';}

change the height to 30px so we can see if that solves it.

        <img src="img/weather34logo.svg" width="30px" alt="https://weather34.com/homeweatherstation/" class="homeweatherstationlogo" ></a>';}

Wim


logo+text.jpeg

You have to specify in the settings if the cron file should store the data + you should have a working database

Y :
http://www.meteotorrelavega.com/pwsWD/w34_util_createdb.php
Did you give the user all rights to the database? Seems not as the checkboxes are empty.
That user must be allowed to define new tables ans so on, as that is what the
And what are those strange characters '@ ‘%’ doing in the error message?
weather34 Error creating database: Access denied for user ‘meteotorkcmilio’ @ ‘%’ to database ‘weatherstation’
I have checked name database, use password everything is fine
I connect to phpMyAdmin right
attached images
the second is what I think by importing the sql file
That image is correct as the test record is inserted in the databas-table.
any suggestions
emilio #-o 8O 8O
You should now give the user all rights. And set the cron-job to do the updates,
Success, Wim

Apologies: I’m using Edge, and didn’t think to check in Chrome #-o

I think the height has to be adjusted to fit. change the height to 30px so we can see if that solves it.

Afraid not. . . see screenshots. (Chrome is better, though, as the logo doesn’t interfere with the text!)


3Edge.JPG

4Chrome.JPG

[quote author=Boce link=topic=67468.msg541882#msg541882 date=1546711030]
Win direction and avg wind direction always have some direction although they have different ones


wind_gust_block.php.zip (3.57 KB)

Sorry, do I add that to lang_extra.txt?

No to lang.en.php if you use English.
It should look like

$lang['Select langauge'] = 'Select language';

I did not redo the English file as most untranslated words are in English.
The typing errors should be added to the english file in the PHP way as in the original weather34.

sorry, Wim

The chrome screenshot looks acceptable.
And yes edge. I do not know how much more differences will show with the very complex css which is used
At least microsoft will build a new Edge using the chromium engine and then these problems will fade away.
As soon as Brians new css can be used I will start testing with edge also.

Wim

Thank you, again!

Can’t wait :slight_smile:

How hard would it be to incorporate this image onto the webpage? WD is already creating the files, and I don’t care if it links to anything, but I would like to display the watches and warnings box to show visitors there is an active watch or warning for our area.


wxwarn.png

I am new to trying this template, so please bear with my new user questions. I have gone through the various instruction sheets (thank you for the details for WD setup) and have a couple questions.

#1–I have registered for the Dark Sky key and inserted it. I see from there site that a 1000 queries per month are free. How many does this program request? One/hour? Is there a frequency to select so I don’t get billed?

#2–I have in the upper right corner a “Current Conditions” Block the third over. Right now it is linked to Brussels, and yet I have entered as my nearest airport the KEAU which I not only got from other sources and knew was accurate, but also was the one presented when I searched the link for the nearest airport designation.

Is there some way to update that block so it doesn’t reflect what the conditions are at Brussels?

#3–One of the users of this template directed me to investigate this template when I asked in the Weather-Watch forum if there were a command string for custom text output from Weather Display to include the sun elevation and azimuth, among the numerous other data points Brian Hamilton provides through that program. He said as of now, there isn’t a command to output those values, and a user said that Weather34 does indicate the real time elevation and azimuth for the sun.

Indeed it does, and I assume the program generates those values based on my latitude, longitude and time. But seeing them on the screen and getting those numbers to use in other things that I want to do are two different things. Is there an ‘output’ available from Weather34 to read those numbers for use in other programs? Is there a matrix or database that can be read by other software to extract those numbers, or does the template just generate and display them in that block?

Thank you and it is a very fun and solid program to deal with, even with my inexperience.
Dale