Good morning, it is the first time that I am writing to you, for a short time I have activated the “pwsWD” template after configuring, it works apparently well, however in the “chartsmydata” directory I observe that the recording is done in duplicate and not I know how I can fix it, I’m using Weather Display and Weather Display API, otherwise the template seems to work fine.
I attach an image of this file,
Thank you very much
Thank you for testing the Dashboard.
Without a link to your website there is not much I can do.
The data in todays.txt is written by the 5 minute cron. Maybe the cron is started from two different jobs?
But if not, I will need to look into your version of the scripts as there were multiple different versions tested the latest months.
Please post the URL to your website
Wim
After thinking about it a lot, a little appreciation, could it be the fault of an outdated version Mr. Wim?
Do you think you should download another version?
No I do not think it is that.
It seems that the station-cron is executed twice every time.
Except when I test it using the Browser, then it adds only one line. And i tested that multiple times last hour.
Your data is updated with the WDapi every 5 minutes
The cron runs every 10 minutes.
As far as I know it is very strange that the data is added twice in the 10 minute period.
I will adapt the station-cron with some debug code, so we can better see what is happening.
I will post the updated script later today.
Wim
Thanks, I’ll be watching.
Regards
First make a copy of the current PWS_cron_stationcron.php script, and keep it in a save place.
Then unzip attached script and upload to your website replacing the current version.
Within 10 minutes we can see at what times the stationcron runs
and what data is added to the file at: http://www.meteobadalonaprogres.com/pwsWD/PWS_listfile.php?file=chartsmydata/today.txt
Wim
PWS_cron_stationcron.php.zip (3.33 KB)
Ok
Ok, done
It seems to continue, doubling.
And yes, somehow the the station-cron runs twice when started by WD
11:58,27.9,1015.7,0,0,18.5,7.4,0,22.4,0,343,14 Aug,0,
11:58,27.9,1015.7,0,0,18.5,7.4,0,22.4,0,343,14 Aug,0,
12:08,27.9,1015.7,0,0,19.3,9.3,0,22.4,0,341,14 Aug,0,,1597399896 2020-08-14T12:11:36+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
12:08,27.9,1015.7,0,0,19.3,9.3,0,22.4,0,341,14 Aug,0,,1597399896 2020-08-14T12:11:36+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
12:08,27.9,1015.7,0,0,19.3,9.3,0,22.4,0,341,14 Aug,0,,1597399958 2020-08-14T12:12:38+02:00 www.meteobadalonaprogres.com/pwsWD/_test.php?test=PWS_cron_stationcron.php
12:13,27.9,1015.6,0,0,22.6,13,0,22.4,0,335,14 Aug,0,,1597400014 2020-08-14T12:13:34+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
Two lines with data from 11:58 = old station cron started by WD
Two lines with data from 12:08 = station cron with the test code started by WD both executed in the same second at 1597399896 = 12:11:36
One line with data from 12:08 = station cron started by me in the browser at 1597399958 = 12:12:38
One line with data from 12:13 = station cron started by me in the browser (different URL) at 1597399958 = 12:13:34
We have to ask Brian if there is a possibility that the WD-API code inside WD will start the cron twice.
For now I do not immediately see another explanation.
Wim
What is the possibility of using Clientraw instead of APIWD?
and if so, can you help me make the change?
Or also, it is possible to use Cron-Job
Please, I support the dashboard for all users.
It could be a problem in WD, but it could also originates somewhere else in the chain between WD and the cron-job finishing.
So this problem should be explained and removed so that other users can benefit also, before you should switch to another upload.
And it is really not a problem as the duplicate entries do not change your graphs at all.
PLEASE use the next test-version, it should display the originating IP-address also.
Wim
P.S. QUESTION: You are running only 1 version of WD?
PWS_cron_stationcron.php.zip (3.35 KB)
Ok, I am going to explain some details, which I also think you should know, as a result of the duplication of “today”, when at night the addtote and empty cron is done, these are also duplicated, actually in the temperature graphs and pressure is imperceptible but in rainy ones it doubles the columns, it happens that I have manually eliminated the duplicates of 2020 and 2020-08 and that is why it is not noticeable.
Now I have installed the submitted file again and wish everyone could benefit from solving this problem.
Thank you
OK, the two cron-scripts ar both started from the same IP-address 62.117.247.0
13:30,27.6,1015.8,0,0,19.3,14.8,0,20.6,0,29,14 Aug,0,,62.117.247.0 1597404695 2020-08-14T13:31:35+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
13:30,27.6,1015.8,0,0,19.3,14.8,0,20.6,0,29,14 Aug,0,,62.117.247.0 1597404695 2020-08-14T13:31:35+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
13:40,27.6,1015.7,0,0,16.7,5.6,0,20.9,0,26,14 Aug,0,,62.117.247.0 1597405294 2020-08-14T13:41:34+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
13:40,27.6,1015.7,0,0,16.7,5.6,0,20.9,0,26,14 Aug,0,,62.117.247.0 1597405294 2020-08-14T13:41:34+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
14:10,28.4,1015.6,0,0,19.3,11.1,0,20.7,0,355,14 Aug,0,,62.117.247.0 1597407094 2020-08-14T14:11:34+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
14:10,28.4,1015.6,0,0,19.3,11.1,0,20.7,0,355,14 Aug,0,,62.117.247.0 1597407095 2020-08-14T14:11:35+02:00 www.meteobadalonaprogres.com/pwsWD/w34_cron_stationcron.php
That is probably the IP address of your home->provider->internet connection.
Country:Spain Region:Valencia City:Burjassot Postal Code:46100
So either WD is executing the cron twice, there is sometimes 1 second difference in the time the script runs
Or
You are running two WD programs at your home.
QUESTIONS:
Did you change anything at your setup lately such as new version of WD.
An extra version on another PC just to do some testing?
ALSO:
Please post the exact release/version of WD you are using.
Wim
I am running build 115 version of WD.
Yes, I have another WD test program installed on another PC.
The other PC is stopped, it is not running.
Country: Spain, Region: Catalonia, City: Badalona, Postal code 08912.
Do you know the WAN-internet IP address of your router? Is that indeed 62.117.247.0 ?
Is the other PC switched off and removed from power, or is it in sleep mode ?
I also updated the previous post as I found one set of double executions where there is one second difference.
Wim
Do you know the WAN-internet IP address of your router? Is that indeed 62.117.247.0 ?
I don’t know what IP you mean, that of the router?
The external IP of the router.
So not the internal one such as 192.168.0.1
But the IP address of the router on the internet.
Wim
OK
IPv4 192.168.0.11