Page 1 of 1

Errors in testUpdate.php

Posted: Thu Oct 14, 2021 9:31 am
by amonphi
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 10185 times
IMG_20211014_112539.jpg
IMG_20211014_112539.jpg (151.1 KiB) Viewed 10185 times
IMG_20211014_112607.jpg
IMG_20211014_112607.jpg (344.83 KiB) Viewed 10185 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

Re: Errors in testUpdate.php

Posted: Thu Oct 14, 2021 9:38 am
by amonphi
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 10183 times

Re: Errors in testUpdate.php

Posted: Thu Oct 14, 2021 11:36 am
by Daali
you can safely delete that initial row of NULL values through phpadmin

Re: Errors in testUpdate.php

Posted: Thu Oct 14, 2021 6:32 pm
by amonphi
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 10172 times

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 7:32 am
by davidefa
What are your settings for the 'Database Update Setup' page ( and if using a data file, include a sample file )

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 7:53 am
by amonphi
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

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 1:56 pm
by davidefa
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.

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 3:24 pm
by amonphi
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

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 3:52 pm
by davidefa
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 )

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 4:29 pm
by amonphi
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 10147 times
testUpdate (temp sotto i 0°C).jpg
testUpdate (temp sotto i 0°C).jpg (218.68 KiB) Viewed 10147 times

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 4:36 pm
by amonphi
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 10147 times

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 5:16 pm
by davidefa
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

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 5:23 pm
by davidefa
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

Re: Errors in testUpdate.php

Posted: Fri Oct 15, 2021 5:55 pm
by amonphi
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