I’ve obtained one of these intending to use it with the Lightning Detector which is still in transit. In the mean time I’m trying to use the Temp/Humidity sensors in the GW.
I’ve followed the How to use the CustomUpload document, made the changed to .htaccess to look after the http/https issue and seem to be getting uploads to my ecowitt directory but I’m seeing the following in the ecco_stats.txt file every 120 sec.
Fri, 24 Jan 2025 18:21:42 +0000 = Ecowitt data received:
- Problem-92: Missing item in upload: tempf*
- Problem-109: Invalid data:*
- [stationtype] => GW1100B_V2.3.7*
- [runtime] => 3008*
- [heap] => 22652*
- [dateutc] => 2025-01-24 18:21:42*
- [tempinf] => 69.62*
- [humidityin] => 35*
- [baromrelin] => 28.724*
- [baromabsin] => 28.724*
- [freq] => 915M*
- [model] => GW1100B*
- [interval] => 120*
I’m at a loss as to what to do next
Any help appreciated
Bill
For “normal” users:
The custom upload has to reject invalid uploads either from hackers (PASSKEY check) or from a malfunctioning weather-station (missing outside temp).
Your ecowitt station:
You are not using a full ecowitt station, there is no outside unit, only the GW1100 with it built-in sensors for indoor and pressure. That data is incomplete and rejected.
Solutuion:
Change the sensor-name tempf in the Custom_Upload receiving script pwsWD/ecowitt/index.php line 4 which reads now
$always_exists = 'tempf'; # this field should always be in the data !
to an always existing sensor name baromrelin
$always_exists = 'baromrelin'; # this field should always be in the data !
As soon as your Lightning Detector arrives you should change baromrelin to a lightning item name.
If the lightning sensors fails no invalid data is processed as the upload is rejected.
Succes,
Wim
There seems to be a typo in your adeption on ecowitt/index.php
Fatal error: Uncaught Error:
Undefined constant "‘baromabsin‘" in /home/sanfordw/public_html/pwsWD/ecowitt/index.php:4
Stack trace:
#0 {main}
thrown in /home/sanfordw/public_html/pwsWD/ecowitt/index.php on line 4
Those are curly qoutes ’ introduced by the forum software
Use straight quotes '
I adapted my previous post.
Wim
Thanks for the update Wim, however I now have a new problem, it seems the gateway is not uploading to my site!
Will spend some time tomorrow to see what is going on.
Bill
There still is the “curly” quote error in the ecowitt/index.php
Fatal error: Uncaught Error: Undefined constant "‘baromrelin‘" in
/home/sanfordw/public_html/pwsWD/ecowitt/index.php:4
Wim