Sorry @ ALL
These zero / missing values should not have been a problem for a long time.
Line 95 in . . /pwsWD/ecowitt/index.php now reads
elseif ($filter_value == false)
but should be with 3 =
elseif ($filter_value === false)
Then the zero value is considered an empty upload and that single upload is skipped.
For one reason or another (stupidity) I used âequalâ and not âidenticalâ for testing and forgot to correct it.
== Operator:
This operator is used to check the given values are equal or not.
If yes, it returns true, otherwise it returns false.
=== Operator: This operator is used to check the given values and its data type are equal or not. If yes, then it returns true, otherwise it returns false.
I will update the script and put it in the updates next week.
@ ALL users of ecowitt custom upload.
If you want to check another multiple fields , f.i. outside temp and pressure change line 4 see example on line 7,
$always_exists = array(âtempfâ,âbaromabsinâ)
The upload is rejected
if either âtempfâ or âbaromabsinâ is missing from the custom upload
or if either âtempfâ or âbaromabsinâ contents is exactly zero.
If the value is 0.1 or -0.1 the values are used.
Wim