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

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

WD is IMHO not creating the files behind that message. Those are server side scripts from @Curly maintained by Ken True for the Saratoga template. And they are suitable for the US only. And maybe they need to be changed with the upcoming NWS cutover.

Canada and Europe use totally different sources for the data as do some other larger countries.

In all cases, if there is a “WeatherDsiplay”-tag in the WD-taglist is is relative easy to use it.
Writing extra scripts and then adding them to the moving target “weather34” is a daunting task.
But I will put in on the " list with wishes " for the next releases.

Wim

How Dark Sky users can use the Apple Weather app - Apple Support : The allowed free calls with DarkSky are 1,000 API calls for free each day. All external information loaded in this template is cached, in this case in pwsWD/jsondata/ It is refreshed when needed. For Darksky the allowed age is 24 minutes when using a cronjob. Total calls / day even with multiple languages will be far below the allowed maximum.

#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
. . . . shortened . . . Is there some way to update that block so it doesn’t reflect what the conditions are at Brussels?
You should also apply for a “CheckWX Metar API KEY you need to sign up” nearly at the bottom of easyweather
#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,
. . . shortened . . .
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?
That is a mix of PHP and javascripts, some very old. All data is generated on the fly. Even touching them is not advised.
Thank you and it is a very fun and solid program to deal with, even with my inexperience.
Dale

good morning

*important please note weather34 does not offer any support for this weather display version so please no more emails .Much of the code/structure has been completely re-written by Wim van der Kuil and this structure of code is not something Im familiar with and none of the code resembles any versions from Meteobridge or Cumulus so therefore it is important you raise your issues , ideas to Wim van der Kuil not weather34 to get a positive outcome . Wim van der Kuil has done a remarkeable re-write of the template to be used with weather display in a very short time and remember other versions like meteobridge and cumulus were designed and coded to be developed alongside each other continuously to make it easy to maintain and implement ideas across those versions where possible.Many of the current features,display seen in the meteobridge ,cumulus versions are not fully compatible with this version they require a lot of re-writing due to the differences in code structure. The weather display version I last worked on was in Novemebr 2017 since then it recieved no significant updates or major improvements so I think where Wim has got it today in such a short period is an achievement itself and I encourage you all to work with him constructively and collaborate.

sometime in the future I will try and liase with Wim to add similar features as seen in the current meteobridge version if required if not i still think where he has got it today is a great platform for further enhancements .but thats something for the future and choose a suitable period thats suits both of us right now too many other things going on .

screenshot of meteobridge version as of today…

brian

Shortly after I did that the DarkSky, CheckWX and WU uploads stopped working. Apparently w34_load_files.php needs a line added to make it use the proxy server in my setup. . . now I know that, I can watch out for any more updates to that script and make the necessary addition!

Fair enough.

The tag is - $NOAAEvent = ‘%NOAAEvent%’ ; // NOAA Watch/Warning/Advisory

Do you have real life content of that tag? It seems to be only a string? This is the description I found in taglist.txt

%NOAAEvent%.................if you have setup the Noaa warning system (if no warning, then it will be NO CURRENT ADVISORIES)

Wim

Hi there,

Great work with the Weather34 for WD with API!

Is there a Danish translation underway or should i give it a try?

BR
Stephan

Well maybe another Danish person is doing it, but I do not know of it. It is not a lot of work but after the first batch, new untranslated words will pop-up. Some weather-descriptions come from outside sources and all possibile words are not known yet.

So give it a try, maybe other Danish users can help?

Wim