How hard is to setup and use weather34 template? ** Closed - outdated **

Making progress: Raymond, ME Home Weather Station (wd version)

Can get temp, barometer and webcam image to work, but not seeing any wind data or local forecast, current conditions. It’s still showing demo for those. When I open the wuweatherupdate.txt file, it is blank. Do I have to use darksky for conditions and forecast?

I never had an API key from WU so I think that explains why the text file is blank. Wondering if I’ll be able to get one after Feb 15. Seems like a lot up in the air.

Is there a way to use WD to provide 5 day forcst instead of using darksky or metar? I see an option in settings if I’m using clientraw, but not sure where to get the actual frcst file info from. Is it WD?

Sent from my Pixel 2 using Tapatalk

All uploaders to WU should be able to get a NEW-API-key. But what they can retrieve and if there will be scripts to use the key is unclear.

Is there a way to use WD to provide 5 day forcst instead of using darksky or metar? I see an option in settings if I'm using clientraw, but not sure where to get the actual frcst file info from. Is it WD?
[b]The forecast[/b] can only come from DarkSky at the moment. You need a free key for that. The limits are also very generous, 1000 calls/day

The current conditions can come from DarkSky, using the same API-key
Or from METAR using another free key
Or WD can read the METAR for you and the clientraw.txt will contain that information.

Thanks wim. Do you know why wind data is not populating?

Sent from my Pixel 2 using Tapatalk

Permissions problem
jquery.js:1 GET http://weather911.net/pwsWD/wind_gust_block.php?_=1548851151654 500 (Internal Server Error)
It works OK when started with http://www.weather911.net/pwsWD/w34_module_test.php

Wim

Got it all fixed. Looks good. Just need to get the historical data working so I can see the trends. I setup mysql db on my server, but do I import the util SQL file from pwsWD? Thanks !

Couple other questions:

  1. why does dark theme not stay dark all the time? I notice in my web browser that during refresh it changes to the bright theme, then I have to back and switch it again

  2. If I make my link (http://www.weather911.net/pwsWD/?theme=dark) public, how do I remove the “Home” and “Menu” buttons at the top left?

  3. Can I use a tablet to display the above link and have it display in landscape mode, similar to desktop appearance?

Still can’t figure out how to setup historical data. Am I supposed to setup the mysql settings in WD as well as the database and table setup on my ftp server?

What historical data are you looking for? I’ve looked at your site and I’m trying to figure out what historical data you are missing…

In easyweather you define the most used theme, in your case “dark”. If a visitor changes that to light, that temporary change is stored in a cookie in his/her browser. Some users set the use of cookies in their browser to false, so the temporary setting is not kept between refreshes

2. If I make my link (http://www.weather911.net/pwsWD/?theme=dark) public, how do I remove the “Home” and “Menu” buttons at the top left?
You can not do that with a setting. Only by changing the scripts themselves. Be aware that all other links to menu items are lost then also
3. Can I use a tablet to display the above link and have it display in landscape mode, similar to desktop appearance?
It should always display exactly the same way as on a desktop when you hold the tablet in landscape mode. It can switch to “phone mode” when holding the tablet vertically. There is a minimum width for phone-type-devices, below that width only the important blocks are shown one below each other.

With “historical data.” do you mean: the graphs? They get their data either from your own WU data. Or from the data-table on your webserver.

Using the webserver to store historical data correctly, you should also run the cron-jobs: every 10 minutes plus just before and just after midnight.

Storing the information in the database-table and generating your own daily, monthly and yearly .csv files is described in:

Wim

P.S. Now your scripts seems to work, you should install the updates also.
http://wd34.weather-template.com/ ==> Downloads ==> Third row Updated scripts up to 2019-01-19

In this link http://wd34.weather-template.com/documentation/WD34-SQL-2019-01.pdf, it says to import the file w34_util_weatherstation_mysql. I don’t have that file in pwsWD. I only have w34_util_weatherstation_sql. I can see my table has been created in phpmyadmin but it is empty. In WD when I run mysql, it says “no database” selected. So I selected the database, but the List of Tables field is blank, so I can’t select “weatherstation” as the table. See pic.


@jzinckgra: Your screenshots would be easier to capture/post and a lot easier to read if you use the Windows Snipping Tool* which is included in Win 7/8/10. Also .png is usually a better format to use for graphical pages than .jpg which uses data compression optimized for real photographic images.

  • Now called Snip 'n Sketch in latest Win 10 I’m told…

just hit the prtscr key on your keyboard
then paste into good ol windows paint program
and there you can clip and save :slight_smile:

Is this better? I think my 1st pic is more readable. Anyways, any thoughts on my questions? Thanks.


No! Snipping Tool is in Windows Accessories in the list of apps.

No. It’s beause the image is shrunk down very small on a big canvas (the white area), I’m not familiar with using paint so I don’t know how that occurs :dontknow:

not sure why you are trying to use WD’s mysql program?
it wont be able to update the weather34 mysql data if that is what you are trying to do…its not intended or needed to do that

Brian,
In easyweathersetup, under historical data: “Which script will load the weather-data to your databse?” Do you know if I select “stationcron job will do database load” or “Wdapi script will do database load”

hopefully wim can answer that
you certainly do not try and use the WD mysql program
the mysql table will not be compatible at all

To load your data to the sql-table on your server you use a script which runs 24/7 at a fixed interval, say every 5 or 10 minutes.
You can choose either of the two:
If you use WDapi you can use that one. A small drawback: if you are uploading very fast, f.i. every 5 seconds, the table will grow rapidly.

If you use the 10 minute station-cron you can use that one. That is the valid choice for clientraw upload also.

Just before midnicht the second cron will calculate the high-lows of today and store a line with those totals in the Yearly and Monthly .CSV files.
To clean the daily sql-table the third cron job will delete all rows from the sql table just after midnight.

To use all, this the PC with WeatherDisplay should run 24/7 and not be restarted during 11:45 PM and 00:15 AM as some users tend to do.

Wim