Errors in testUpdate.php

Post Reply
User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Errors in testUpdate.php

Post by amonphi » Thu Oct 14, 2021 9:31 am

Hi, can anyone tell me why I get these errors in testUpdate.php?
IMG_20211014_112447.jpg
IMG_20211014_112447.jpg (414.67 KiB) Viewed 10196 times
IMG_20211014_112539.jpg
IMG_20211014_112539.jpg (151.1 KiB) Viewed 10196 times
IMG_20211014_112607.jpg
IMG_20211014_112607.jpg (344.83 KiB) Viewed 10196 times
I entered the sensor ranges based on the Ecowitt sensor datasheets and so I reported them on the main page of the template installation. Are the minimum ranges too low?

Thanks in advance
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Thu Oct 14, 2021 9:38 am

As for the date error, the only thing that comes to my mind is the first row on this screen in the Altervista "alldata" table. I don't know how it was generated ... should I delete it?
IMG_20211014_113512.jpg
IMG_20211014_113512.jpg (100.97 KiB) Viewed 10194 times
Image

User avatar
Daali
Advisor
Advisor
Posts: 56
Joined: Mon Jul 26, 2021 8:06 pm
Location: Georgia, US
Station model: Ecowitt GW1002
Software: Meteobridge, FOSHKplugin
Contact:

Re: Errors in testUpdate.php

Post by Daali » Thu Oct 14, 2021 11:36 am

you can safely delete that initial row of NULL values through phpadmin
https://www.jeffersonweather.com
GW1000 gateway
WS68 Anemometer
WH40 Rain Gauge
WH32 Temp/Hum
WH57 Lightning
WH41 PM2.5 Air Quality
WH45 PM2.5/10/Co2 Air Quality
WN34S Soil temperature
WH31SM Soil Moisture

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Thu Oct 14, 2021 6:32 pm

Daali wrote: Thu Oct 14, 2021 11:36 am you can safely delete that initial row of NULL values through phpadmin
I canceled that row in the "alldate" table of Altervista but, the result is always the same unfortunately.
testUpdate.jpg
testUpdate.jpg (233.55 KiB) Viewed 10183 times
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Errors in testUpdate.php

Post by davidefa » Fri Oct 15, 2021 7:32 am

What are your settings for the 'Database Update Setup' page ( and if using a data file, include a sample file )
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Fri Oct 15, 2021 7:53 am

davidefa wrote: Fri Oct 15, 2021 7:32 am What are your settings for the 'Database Update Setup' page ( and if using a data file, include a sample file )
Hi, now I have inserted API as a method but, the mistakes appeared even when I had Weather Underground.
Does a "custom file" created? If it were I hope it's not complicated

But now that I remember, since I have a GW1000 of Ecowitt and I use the Ecowitt Plugin to upload the data, I don't need to assume, also because you have already made me disable the CronJob. So I don't understand from what it depends
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Errors in testUpdate.php

Post by davidefa » Fri Oct 15, 2021 1:56 pm

As you use the 'api method' ( via the ecowitt plugin ) you don't need to mess with the 'Database Update Setup' page.
This is only needed when using the other methods.
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Fri Oct 15, 2021 3:24 pm

davidefa wrote: Fri Oct 15, 2021 1:56 pm As you use the 'api method' ( via the ecowitt plugin ) you don't need to mess with the 'Database Update Setup' page.
This is only needed when using the other methods.
Ok in fact I had the doubt ... only that now in Update Setup database I can no longer remove API from the selection.
Do I have to go and edit the "updateSetup.php" file in the update folder? If so which line?

Or just the delete the "updateSettings.php" file is created?

Thanks
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Errors in testUpdate.php

Post by davidefa » Fri Oct 15, 2021 3:52 pm

In your case the update/updateSettings.php file is not used ( a small file, less than 1Kb ).
If you want, you can safely delete it.
But do not delete the update/updateSetup.php ( larger file 46Kb )
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Fri Oct 15, 2021 4:29 pm

davidefa wrote: Fri Oct 15, 2021 3:52 pm In your case the update/updateSettings.php file is not used ( a small file, less than 1Kb ).
If you want, you can safely delete it.
But do not delete the update/updateSetup.php ( larger file 46Kb )
OK perfect, thanks for confirmation, in the meantime I made further tests:

I tried to change the min and max ranges on the main installation page and most errors have disappeared, more than anything else they were the minimum limits the problem.

Only that for the temperature if I imposed 0°C everything is ok, while it gives me error if I go down under 0°C; What to me problematic because in winter it often happens and from the error that comes out, even "Dew Point" is not calculated and "apparent temperatures".
The phrase highlighted in red "temperature value will be ignored!" Honestly it worries me.

In addition to this I am investigating with the date, I still don't come to the head.
testUpdate (temp a 0°C).jpg
testUpdate (temp a 0°C).jpg (215.27 KiB) Viewed 10158 times
testUpdate (temp sotto i 0°C).jpg
testUpdate (temp sotto i 0°C).jpg (218.68 KiB) Viewed 10158 times
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Fri Oct 15, 2021 4:36 pm

Surely the date problem is here but, I thought I could select in my pleasure ... what should I change, go for trials?
Formats.jpg
Formats.jpg (106.08 KiB) Viewed 10158 times
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Errors in testUpdate.php

Post by davidefa » Fri Oct 15, 2021 5:16 pm

Scusami, ma non puoi richiamare lo script update/testUpdate.php direttamente.
In questo modo non stai facendo nessun test ( perchè non gli stai passando nessun argomento da testare ).
Quello script è richiamato solo da update/updateSetup.php ( quando selezioni 'cumulus' 'wu' o 'custom file' )
Il test che stai facendo non ha nessun senso.

Se vuoi verificare la 'correttezza' dei dati memorizzati nel database ( potrebbero esserci dei valori errati per qualsiasi motivo, come la prima riga del database che hai cancellato ) puoi usare il plugin 'Data Quality Control' chè ti permette di analizzare i tuoi dati in diversi modi evidenziando le incongruenze
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Errors in testUpdate.php

Post by davidefa » Fri Oct 15, 2021 5:23 pm

Riguardo i limiti li puoi impostare nella sezione Limits ( del setup iniziale ).
Verifica che siano compatibili con le tue condizioni.
Qualche settimana fa un utente svedese aveva dovuto alzare il limite massimo della pioggia a 400mm
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Errors in testUpdate.php

Post by amonphi » Fri Oct 15, 2021 5:55 pm

davidefa wrote: Fri Oct 15, 2021 5:16 pm Scusami, ma non puoi richiamare lo script update/testUpdate.php direttamente.
In questo modo non stai facendo nessun test ( perchè non gli stai passando nessun argomento da testare ).
Quello script è richiamato solo da update/updateSetup.php ( quando selezioni 'cumulus' 'wu' o 'custom file' )
Il test che stai facendo non ha nessun senso.

Se vuoi verificare la 'correttezza' dei dati memorizzati nel database ( potrebbero esserci dei valori errati per qualsiasi motivo, come la prima riga del database che hai cancellato ) puoi usare il plugin 'Data Quality Control' chè ti permette di analizzare i tuoi dati in diversi modi evidenziando le incongruenze
Accidenti a me :) , come ho fatto a non arrivarci, hai pienamente ragione, un test inutile giustamente. Chiedo immensamente perdono!
Verificherò bene i limiti e proverò il plugin che mi hai consigliato.

Grazie ancora per come ci supporti
Image

Post Reply