Page 1 of 1
updated ecowittModules block
Posted: Sun May 09, 2021 10:13 am
by davidefa
ver 1.4b
Minor update: corrected WS80, WS68 and WS65 sensor name
ver 1.4a
I have updated the
ecowittModule block ( by raffaello Di Martino ) to include the following:
- updated the ecowitt sensor list
- match battery reports from the updated ecowitt module v2.6 or later
- added a couple of options to name the gateway and select the main wireless sensor
NOTE
To use this block you need to update the ecowitt plugin to v2.6 or later
NOTE1
The rf strength indication is 'fake', currently no rf reception level is reported by the sensors...
Re: updated ecowittModule block
Posted: Sun Oct 10, 2021 9:39 pm
by davidefa
ver 1.4c
Minor update:
- corrected wh25, wh31, ws65 low battery indication ( it was 75% )
- added sensor name redefinition

- ecowittModules.png (17.68 KiB) Viewed 32267 times
Re: updated ecowittModule block
Posted: Tue Oct 12, 2021 12:54 am
by Daali
Great work davidefa!
I have an ecowitt WN34S that shows up as TS1BAT. I haven't figured out the array yet to add it =). I can get it to the screen but with horrible batt and rf icons LOL.
Code: Select all
"WN34_1" => array("module_name" => "WN31_1", "battery_percent" => (99-$apiData['TS1BAT'] * 0.055), "set" => $apiData['TS1BAT'], "last_seen" => $apiData['U'], "data_type" => array("Temperature"), "firmware" => $firmware, "rf_status" => (117 - ($apiData['TS1BAT'] * 18)) ),
Code: Select all
{"TS1":22.89,"TS1BAT":73.4,"TS1Time":1633998551,"TS1BATTime":1633998551,"StationTime":1633998551,"FWTime":1633998551}
TS1BAT = 73.4 Ecowitt.net shows 1.42v you can see I added * 0.055 to get close, but I have no idea what I am doing.
Re: updated ecowittModule block
Posted: Sat Nov 27, 2021 3:44 pm
by davidefa
ver 1.5
- added support for wn34, wn34, wh40 and wn1900
Re: updated ecowittModule block
Posted: Mon Mar 28, 2022 3:00 am
by Bashy
Hi, can this be used if you dont have a full Ecowitt station, i only have the GW1100 hub, outdoor AQ and Lightning, ideally i would like the AQ and Lightning to work, please? I have both the plugin and this block installed but nothing doing, its in the middle, 4th block down. i fear i may have missed something simple...
https://www.brecklandweather.com/meteo/indexDesktop.php
Re: updated ecowittModule block
Posted: Mon Mar 28, 2022 5:02 pm
by davidefa
Yes, it should work.
In the ecowitt plugin set the fourth parameter ( Url of this site api.php script ) to:
Code: Select all
http://www.brecklandweather.com/meteo/api.php
As you can see in cache/ecowittLog.txt the relative path you are using fails ( Api result -> )
Code: Select all
Api url -> /home/breckland/public_html/meteo/api.php?U=1648486487&P=1018.59&TIN=18.11&HIN=55&PP1=7.0&L=0&LD=5<=1645378640&PP1BAT=5&LBAT=5&Station=GW1100A&FW=V2.1.2
Api result ->
Forward1 ecowitt format
Forward1 url -> http://www.brecklandweather.com/pwsWD2021/ecowitt/
Forward1 nfields -> 17
Forward1 result -> 1
The only problem I see is that the gw1100 T/H/P sensors will mix with the existing ones.
To avoid this you can set the 'Rename sensors' parameter to:
P1=P;Tin1=Tin;Hin1=Hin
Re: updated ecowittModule block
Posted: Thu Nov 10, 2022 3:36 am
by andyk1
Ecowittmodule ver 1.5 block stops working in php 8.0. any idea's?
Re: updated ecowittModule block
Posted: Sun Nov 05, 2023 12:11 pm
by davidefa
ver 1.6
- added support for ws90
- battery voltage expressed in volts ( for those sensors reporting volts )
P.S.
It is ( should be ) compatible with php 8.2
Re: updated ecowittModules block
Posted: Thu Nov 09, 2023 7:36 pm
by andyk1
Thank you David.
Re: updated ecowittModules block
Posted: Wed Jul 10, 2024 4:33 pm
by El_Viejo
A few days ago I have installed a station is Ecowitt Wittboy GW 2001.
It seems to me that I have successfully configured the "ecowitt" plugin (V 3.5a), because the web page appears "online". However, the block "ecowittModules" (V 1.6) is offline.
In the image is my block configuration.
What am I doing wrong?
Please, forum experts help me to discover and correct my mistakes.
After the failure with the Netatmo plugin, I have been "fighting" with the new template configuration for several days.
Thanks in advance.
Re: updated ecowittModules block
Posted: Fri Jul 12, 2024 4:13 pm
by steph
Personally, I've always stayed on 1.0 and never had a problem.
Re: updated ecowittModules block
Posted: Sat Jul 13, 2024 9:00 am
by El_Viejo
I am coming to the conclusion that my error is in the plugin configuration.
Re: updated ecowittModules block
Posted: Thu Jul 31, 2025 2:25 pm
by spd2612
Why does my signal meter stay red and at 0
All the other indicators are displaying i am using a Gw2000 with a WS90

- IMG_4804.jpeg (628.26 KiB) Viewed 9454 times
Re: updated ecowittModules block
Posted: Fri Sep 19, 2025 4:47 pm
by spd2612
I removed it to many php 8.2 errors slowed my site and the percent meter stayed red at 0