First time user: Post your problems here

One thing that is not working is max-min temp. It’s only showing the temps for the time of observation, not the max-min temps



It will be helpful if you include the link to your website in your forum profile.
it will be visible either in your avatar => it is the small globe you see by others in the information to the left of a post
Or in an extra signature line below each of your posts.

=== No high-Lows

Your weather-program does not has any high-lows.
So we have to calculate those ourselves, if we want those.
https://pwsdashboard.com/ => Documentation => https://pwsdashboard.com/documentation2012/11_cron.pdf

If your cron script is executed every 5 minutes, the high-lows are calculated, the history is updated and all "nearly to old files’ are reloaded.

Wim

P.S. your weatherflow / tempest also has lightning-data.
I think you should at least remove the small temp block and use lightning data there.

As far as I know I have Weather Underground turned on for the data



Yes, you have, your graphs data is coming in. Graphs data is not real-time data. It lags hours behind.

The only open point I think, is your High-Low data of today, yesterday, this month, this year.
Normally a “weather-program” will calculate and upload those values.

You are using WeatherFlow for real-time data.
That has no high-low data, as most weather-nets do not supply those calculated values.

So we need to run a small script every 5 minutes, that script will compare a set of high-low values to the most current realtime-data and adjust the high-lows.
It will also do the end-of-day roll-over to generate yesterdays data, update month and year history data.
We store that in a history file. Check “Current sky” block, first pop-up labelled “history” => they are all zero.

Your hosting-provider probably has a cron-server for you, check your cPanel.
Or you can use any of the free-cron servers. you only need 1 cron-job every 5 minutes.

Wim

I have set up the following



I do not think that is correct. Normally when using an provider - PHP cron the internal path is used.
=> /home/apexstar/twinfirs.co.uk/PWS_cron_stationcron.php
A “provider WGET” cron uses the full internet URL such as http:/www.twinfirs.co.uk/PWS_cron_stationcron.php

When using an external cron-provider you always use the internet URL

Seems your example uses the wrong notation.
You can check if it worked http://www.twinfirs.co.uk/history_popup.php
Probably there is a cron-error-log or cron-email you can switch on also.

Wim

I am using Weatherflow Tempest as my live data but the data only updates every 5 minutes, is this correct.?

Refresh is set to 5 minutes (with a cron 4 minutes) , same for all weather-rpograms / weather-nets.
The average age of the data will be 2.5 minutes

One can reset that, but

  1. check the WeatherFlow API documentation
  2. Is is worth the (small) extra load as only the wind is a fast changing value

To reset change the 300 seconds in line 92 in pwsWD/PWS_load_files.php to a value you want to use.

        $cron_min_time  = 300;

The PWS_Dashboard is not a “local” console only showing the realtime sensor values.
When a dashboard is displayed in a browser, the age of the files is checked every 90 seconds when using Weatherflow devices.

Wim

Wim,

Presently as trial running PWS_Dashboard (template setup version PWSD_2009) for all my 3 PWSes: Nexus, WS7000 and Tempest.
Nexus and WS7000 using WU as source for live data, Tempest taking data from Weatherflow.
All running more than month.
Tempest-window can be seen at Hengelo(Ov) / NL Home Weather Station (wf version)
Perhaps corrected in later version, but observations, with request for explanation/remedy:

  • all 3 setups have an identical problem with display of historic rain-values (see screenshot)
  • when calling graph-display at the Tempest-window (no matter which graph), then display of error-message referring tot PHP-script. (see screenshot)

MVG, Anton


screenshot_rain_2021.01.19-11_08_48.png

Are you running the stationcron job?

- when calling graph-display at the Tempest-window (no matter which graph), then display of error-message referring tot PHP-script. (see screenshot)

See First time user: Post your problems here - #19 by pwsdashboard - PWS Dashboard 2012 - Weather-Watch Forum - no WU key?

This topic is meant for first-time users installation questions.
To find errors use the debug console (PWS_module_test.php) , that will display better readable messages.
I only support “in between” releases of real “production” websites.
All LTS releases are supported at least until the end of the agreed period.

Anyone which is testing (“trial”) and not using for production, should use the latest stable version.
In this case 2012_lts , which was released in November 2020 and is supported until at least December 2022

Wim

For solutions see first the answer from @bitsostring one post back.

Rain:
When your weather-program has no historical data, run a cron-job every 5 minutes to generate the data
Your tempest, nor your 2 WU sites (IOVERIJS101 IHENGE37) use a weather-program, so (nearly) no history.
When it would have had rain history it should be displayed.
Check the debug-console PWS_module_test.php there is a button (bottom left) to display the station-data.
Also on the dashboard there is a link to the history pop-up (“Huidige situatie” block)
Shows only current data, all other values are n/a, see attached screenshot

Graphs:
The error messages are two parts: first a “user” message that there is no valid file found.
Then, “less” but still readable, the log, the graph script tries to read a file “no_keyYMD.txt”: there is no WU-key.
And you selected “use WU for graphs” so it tries to read a file.
If you select “use own data” you need the cron-job. https://pwsdashboard.com/documentation2012/11_cron.pdf

All explained in https://pwsdashboard.com => documentation => “Some questions of easyweathersetup that need more explanation”
Which leads to a pdf https://pwsdashboard.com/documentation2012/06_questions.pdf

The scripts use the new WU_API to collect your historical data for the graphs. If you do not upload to WU, you can select to store the data on the webserver. You need to run the station-cron then also.

Posting here vs my own thread as I am just getting the PWSDashboard up and running. I have a WeatherFlow Tempest and have been feeding WeatherUnderground since the end of December. I’ve noticed 2 things with PWSDashboard and they are:

  1. I’m not seeing much historic info at http://levinecentral.com/pwsWD/ . The WU site is https://www.wunderground.com/dashboard/pws/KNJWALDW1 . On the PWSDashboard page, there is no rain info for the year being displayed. On the PWSDashboard page I can see a day or two of graphs but when I select last 30 days the graph is blank. I’ve confirmed in PWS_easyweathersetup.php on the Api&Keys page that for WU my API key is correct and my station Id is correct and in the correct form fields. What’s the best way to troubleshoot what might be the WU API calls, if I read other threads on what the source would be? I don’t have SSH access into the particular host running the site. Site is running on a shared Windows hosting, soon to move to linux hosting when I can re-write a few remaining ASP apps.

  2. In PWS_easyweathersetup.php I have set to suppress (Do not use this) the option of showing email address in the contact pop-up but it’s still showing there. If you visit http://levinecentral.com/pwsWD/ and click the very bottom right, the contact pop-up shows mailto:[email protected] . Is the suppression option I’m looking at in the easyweathersetup.py page not that display?

Thanks - David

As there is not much history yet. http://levinecentral.com/pwsWD/history_popup.php?lang=en-uk&script=sky_block.php
WU has no high-lows, we use the cron-jobs for that.
But your site is less then 1 day old.

The data from WU is only used for graphs. Still to much bad memories of problems in the last years.
As it is only 1 month, you can easily find your high-lows for this year on the WU website.

you can update the history with pwsWD/PWS_hist_update.php?pw=12345
replace 12345 with your easyweathersetup password.

The WU site is https://www.wunderground.com/dashboard/pws/KNJWALDW1 . On the PWSDashboard page, there is no rain info for the year being displayed. On the PWSDashboard page I can see a day or two of graphs but when I select last 30 days the graph is blank. I've confirmed in PWS_easyweathersetup.php on the Api&Keys page that for WU my API key is correct and my station Id is correct and in the correct form fields. What's the best way to troubleshoot what might be the WU API calls, if I read other threads on what the source would be? I don't have SSH access into the particular host running the site. Site is running on a shared Windows hosting, soon to move to linux hosting when I can re-write a few remaining ASP apps.
What startdate did you use in your setup?

It seems that there is a problem loading the data from WU for a period of multiple days.
I will inspect tomorrow if i can find anything.

2) In PWS_easyweathersetup.php I have set to suppress (Do not use this) the option of showing email address in the contact pop-up but it's still showing there. If you visit http://levinecentral.com/pwsWD/ and click the very bottom right, the contact pop-up shows mailto:[email protected] . Is the suppression option I'm looking at in the easyweathersetup.py page not that display?
Checked other websites. Confirmed to be a problem, will look into this tomorrow when it is daytime here.
Thanks - David
Thanks for testing the PWS_Dashboard.

Wim

Thanks for the detailed reply. I set the WU start date as 2021-01-01 in PWS_easyweathersetup.php . If there is a broader situation with getting WU data, I’ll wait to see if that can get rectified before I adjust manually with PWS_hist_update.php .

I also have the cron job running every 5 mins if that matters. I thought I had that included out in my initial message.

Many thanks in advance.
David
http://levinecentral.com/pwsWD/

Response to Reply#29 and #30

To quote1
Calling it ‘Trial’ is perhaps confusing.
Meaning that the set of PWS_Dashboards is running unchanged since it’s installation in November, while I am learning how to properly setup.
In that context still a novice.
Apparently misunderstood the setting “Historical data: use WU or your webserver”.
Set to ‘We will use WU data’, then expect that WU will provide the history, and running for more than a month, expecting data for the last month other than nil.

To quote2
For my Tempest-station linking for Live Data to Weatherflow not made the mental connection that WU is needed for historic graphs.
Means that for Tempest historic info you need to have a WU-account for that Tempest-station [?]
Fortunately had directly related WULink under IHENGE39: that issue now solved.

That was not an easy find.
Maybe we need to clear some caches, but i think it should work now as advertised.
Could you test attached version of a script?
Wim


PWS_DailyHistory.php.zip (8.05 KB)

The setting in easyweathersetup is “only” to remove the complete bio-popup from the menu

The email will not be shown if it contains the default text: ‘[email protected]’ .

In one of the last year releases there was the request to get the legal information “always” displayed.
The PWS_Dashboard uses also scripts and images from other authors. Plus some “legal” texts.
Therefor there is the legal link, which should not be removed in the footer.

Could you test this version, the email should not be shown if there is not an email address entered in the setup.

Wim


bio_popup.php.zip (6.56 KB)

I placed this updated PHP file and it no longer surfaces the default email address in the pop-up which can be seen at http://levinecentral.com/pwsWD/ . Looks good to me.

Thanks!

I replaced the attached PHP but I’m not seeing differences right after replacing the file. I’m not sure if I need to execute another script or wait for some nightly cron work.

I’m not seeing the rain for the month showing on the PWS Dashboard rain chart though WU has that info. There’s no rain today but there is for the month.
http://levinecentral.com/pwsWD/

If I pick a chart link wind and go to graphs, I can see the current day and if I change the day in January to an earlier day, even before PWS Dashboard was installed, I see the graph for the day. If I select last 30 days and select January, I don’t see any chart. This might be expected and I am misunderstanding or it will work eventually (after midnight with the updated module), etc. If there’s anything to delete on my host that might be cached and deleting will trigger a regeneration, please let me know.

Thanks again

If you select “Any month” and click “Do it” it will show the grpah for the month january.
Tomorrow it should show all periods as the 30 day and 360 day files are cached for some hours.

Just check PWS_module_test.php => click button “Load files”

PWS_load_files.php (364) WU-today-CSV__: File not old enough (758/1800 seconds) http://levinecentral.com/pwsWD/PWS_DailyHistory.php?ID=KNJWALDW1&graphspan=day&day&month&year&format=1
PWS_load_files.php (364) WU-month-CSV__: File not old enough (3460/14400 seconds) http://levinecentral.com/pwsWD/PWS_DailyHistory.php?ID=KNJWALDW1&graphspan=custom&year=2020&month=12&day=20&yearend=2021&monthend=01&dayend=20&format=1
PWS_load_files.php (364) WU-year-CSV___: File not old enough (32557/43200 seconds) http://levinecentral.com/pwsWD/PWS_DailyHistory.php?ID=KNJWALDW1&graphspan=custom&year=2020&month=01&day=20&yearend=2021&monthend=01&dayend=20&format=1

We cache the loaded data.

  1. as we do not want to replace already valid data with the same valid data
  2. because we do not want to eat our WU access allowance to fast.

Wim