Ecowitt WH57 + lightning_station_small.php

Hello Weather Watch community.

Before you reprimand me that I should first use the search function in the forum, ummm, I tried, unfortunately my English isn’t that great. Of course I searched the forum as far as possible and tried to find the right information. But I was unsuccessful. Please be kind and considerate. thanks

I have two Ecowitt GW1100 with a WN31A, a WN32A sensor and a WH57 lightning detector. The data is sent from a GW1100 to CumulusMX via “Customised”. Except for the values from the WN32A, all values are received and also displayed under Extra Sensors.
The second GW1100 sends the data to my PWS Dashboard weather page via “Custom”. The “ecco_lcl.arr” file was created in the Ecowitt folder. If I understand the system correctly, all sensor values from PWSD are received correctly, therefore also the WH57 lightning sensor data.
Now I wanted to feed the small block “Lightning detector from your station” with the data from Ecowitt, since they are also sent by my GW1100. So I opened “lightning_station_small.php”, but couldn’t find any hint how I could feed the PHP file with data. Actually, I thought that since the Ecowitt lightning detector was activated in the Easyweathersetup under Devices and the location of the “ecco_lcl.arr” also had to be defined, the PWSD would assign the sensor values itself. That doesn’t seem to be the case.
CumulusMX creates an “extra_sensor.txt” for me, which also contains data about the lightning sensor, but I set this file in Easyweather under “Data” “Separate upload of the extra sensors”, after saving the changes my website does not start and never again, until I call up Easyweathersetup by hand and remove the extra_sensor file again.

I would be very pleased for a comprehensible guide to display the flash sensor.

Greetings from Leipzig, Germany
pWS_Sun_Dancer

@ALL Seeing all those problems one can have with pwsWD, I wonder if it is better to check-out another template. In this case for a Cumulus user one of those alternatives could be better suited to ones needs:
Cumulus developers support a nice template and also support a HWS dashboard
HomeWeatherStationTemplate - Cumulus Wiki
The by far most widely used weather-station template
Saratoga-Weather.org - Website Templates - AJAX/PHP also supports Cumulus.
A more extensive template and my favorite one
Meteotemplate - free weather website template also supports Cumulus.


Hi Sun_Dancer,

Thanks for testing the PWS_Dashboard.

When having problems while testing PWS_Dashboard:

If you have a blank screen after making an adjustment, please use _test.php not index.php
This displays all PHP messages which normally helps you locate a problem, for instance
→ a typo such as a missing “.” in a file location “/ecowitt/ecco_lcl.arr”

Warning : file_exists() [function.file-exists]: open_basedir restriction in effect. File(/ecowitt/ecco_lcl.arr) is not within the allowed path(s): (/users/sundancer/:/users/_temp/sundancer) in /users/sundancer/www/PWS_livedata.php on line 1883

If there are no errors visible on your main page, please use the debug console.
Select the block/module there and after clicking the button “Test-it” you find the unformatted results in the bottom part.
For the lightning_station_small.php the results are

Warning : file_exists() [function.file-exists]: open_basedir restriction in effect. File(/ecowitt/ecco_lcl.arr) is not within the allowed path(s): (/users/sundancer/:/users/_temp/sundancer) in /users/sundancer/www/PWS_livedata.php on line 1883
No lightning data found for this station (yet)


Sometimes it is an extra space after an API setting, sometimes a missing “.” in a file-location such as “./ecowitt/ecco_lcl.arr”
When that first “.” is not entered you try to access the root “/” of your part of the folders on your webserver. And that is really not allowed by any professional “shared” hosting company.

Succes and have fun while testing
Wim

Hello Wim,

thank you very much for your hints and help. As soon as you do it right everything works. I hope I haven’t wasted too much time on you.

PS: I had been using CU-HWS as a template since 2019, I moved many months ago, the weather station was gathering dust in the basement.
A few weeks ago I got them out and set them up. In the meantime, my account with the web hoster has been deleted. By chance I came across the CU-HWS template again and somewhere I let the operator only spontaneously or not at all take care of the support with the recommendation to use the PWS dashboard. So I ended up here without looking right and left outside the box to see if there are other templates. In the meantime I had a look, but I stayed with PWSD, I hope that’s okay with you, even if there may be questions from time to time that are simple for you because you’re stuck in the system.

Greetings, Andre
pWS_Sun_Dancer