Updated ecowitt/ambient weather plugin

User avatar
steph
Observer
Observer
Posts: 37
Joined: Fri May 12, 2023 10:26 am
Station model: Ecowitt
Software: Ecowitt gw1100/Raspberry
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by steph » Fri Oct 27, 2023 9:21 pm

davidefa wrote: Sun Oct 08, 2023 4:29 pm ver 3.4
- added daily min/max calculation option ( for realtime.txt )

P.S.
I want only to stress that enabling this option you will make a query to the database to calculate daily min/max values every time you update the database.
Merci pour la mise à jour ;)

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Fri Nov 03, 2023 7:23 am

I have a problem with my new GW2001 station and WS90 sensors. Rain data is not reported to me. On the "Extra sensor" page the "Rain rate" and "Daily Rain" are "Not available". I think it's the fault of the WS90 which is piezoelectric. However, the data appears in the Excel file, but I cannot make it appear on the Meteotemplate web page. @davidefa can you help me? I installed plugin 3.4
In the csv file the rain data is reported as "erain_piezo" "wrain_piezo" ... etc. etc.
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Fri Nov 03, 2023 11:36 am

Yes, I have been a little bit lazy and did not include the new ws90 fields in the plugin ( planned an ecowitt2 plugin but never finished it... well never started it : - ( this plugin should permit everyone to add any fields/conversion/sensor as needed, even for those sensors not already available.
Should add in the next days.
In the meantime you can use the remapping ( and probably the math ) feature of the plugin:
1) in the 'Remap sensors - meteotemplate format' text box ( 1 in below image ) insert the following

Code: Select all

R=piezo_rain;RR=piezo_rainrate
( substitute 'piezo_rain' and 'piezo_rainrate' with the appropriate ecowitt fields for daily rain and rain rate )
2) if the above fields are expressed in mm ( I think that your database settings are save rain in mm, I have to correct the previous statement: as api.php scripts expects rain in mm ) you are done
3) if the above fields are expressed in inches ( as for my ws65 ) the following step is required too
4) in the 'Math with sensors' text box ( 2 in image below ) insert the following

Code: Select all

piezo_rain=#piezo_rain#*25.4;piezo_rainrate=#piezo_rainrate#*25.4
( substitute 'piezo_rain' and 'piezo_rainrate' with the same fields used in point 1 )
Now you ( should ; - ) have your R and RR field reporting correctly your ws90 rain data

NOTE
The math feature is quite powerful but quite easy to mistakenly insert wrong expressions ( which in turn block the plugin execution ).
So if the plugin stops working ( the cache/ecowittLog.txt not updating ) the first suspect ( after the butler ; - )
is the math feature.


P.S.
But I already have the name of the new plugin: ecowitt2 - the revenge!

P.P.S.
Please post ( or pm me ) your cache/ecowittLog.txt file ( I need only the first part those lines beginning with 'post' ).
Have to remove the PASSKEY line from the log ( as it is a private data, no need to log it ).
Attachments
ecowitt_remap_sensor_01.png
ecowitt_remap_sensor_01.png (158.3 KiB) Viewed 55390 times
Last edited by davidefa on Fri Nov 03, 2023 2:11 pm, edited 1 time in total.
Image

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Fri Nov 03, 2023 1:39 pm

Thanks @davidefa! I only have to insert steps 1 if I use mm, right?
Last edited by djpoppy on Fri Nov 03, 2023 5:11 pm, edited 1 time in total.
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Fri Nov 03, 2023 2:35 pm

I have corrected step 2) in my previous post.

- if the 'piezo rain' and 'piezo rainrate' you are importing from your ws90 are expressed in mm, you only need step 1)
- if the 'piezo rain' and 'piezo rainrate' you are importing from your ws90 are expressed in inches, you need step 1) and 4)

P.S.
As I don't remember the fields ( nor the unit of measure ) 'spit out' by the ws90 sensor I would appreciate if you could post the log of the ecowitt plugin ( cache/ecowittLog.txt ) containing the ws90 data
Image

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Fri Nov 03, 2023 2:53 pm

I'm at work now. After dinner, if I can, I will insert everything and also publish the Ecowittlog.txt ;-)
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Sat Nov 04, 2023 11:07 am

@djpoppy

Ok, you can set the following:

1) in the 'Remap sensors - meteotemplate format' text box

Code: Select all

R=drain_piezo;RR=rrain_piezo
2) in the 'Math with sensors' text box

Code: Select all

drain_piezo=#drain_piezo#*25.4;rrain_piezo=#rrain_piezo#*25.4
Image

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Sat Nov 04, 2023 3:28 pm

It does not work. When I enter the formula the plugin freezes and no longer receives anything. If I do not enter the formula, the rain data is incorrect because it is not converted.
I tried to insert also:
R=#R#*25.4;RR=#RR#*25.4
instead of:
drain_piezo=#drain_piezo#*25.4;rrain_piezo=#rrain_piezo#*25.4
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Sat Nov 04, 2023 9:44 pm

@djpoppy

Yes, my mistake, it won't work as math is done before remapping ( so, in this case, math is done on uninitialized variables )... not considering that I suggested you the wrong syntax : - (

Updated ecowitt plugin ver 3.5:
- added support for WS90 sensor
- improved 'math' syntax ( you can mix meteotemplate fields and ecowitt fields, for example T8=(#tempf#-32)*5/9-#T1# ), so can be used for remapping too
- removed ecowitt remapping
Attachments
ecowitt_3.5a.zip
(26.69 KiB) Downloaded 931 times
Image

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Sat Nov 04, 2023 10:43 pm

Now it works like a charm. Thanks @davidefa you're great! ;)
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Sun Nov 05, 2023 12:13 pm

Updated also the ecowittModules block to also support ws90
Image

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Sun Nov 05, 2023 3:29 pm

davidefa wrote: Sat Nov 04, 2023 11:07 am @djpoppy

Ok, you can set the following:

1) in the 'Remap sensors - meteotemplate format' text box

Code: Select all

R=drain_piezo;RR=rrain_piezo
2) in the 'Math with sensors' text box

Code: Select all

drain_piezo=#drain_piezo#*25.4;rrain_piezo=#rrain_piezo#*25.4
ok, I understand but does the remap and conversion change in 3.5a compared to what you wrote to me here?
I think: " R=#drain_piezo#*25.4;RR=#rrain_piezo#*25.4 " It's right?
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Sun Nov 05, 2023 5:49 pm

Yes, your formula is correct:

Code: Select all

R=#drain_piezo#*25.4;RR=#rrain_piezo#*25.4
The only change in v3.5a is that in that formula you can mix 'meteotemplate fields' ( #T# for example, for the main outdoor T sensor ) and 'ecowitt fields' ( #tempf# for example, for the main outdoor T sensor )
( but the above formula is not needed in v3.5a as is already included in the 'known sensors' conversions )
Image

djpoppy
Observer
Observer
Posts: 18
Joined: Mon Oct 30, 2023 6:22 pm
Location: Diano Marina - Italy
Station model: GW2000 - WS90
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by djpoppy » Sun Nov 05, 2023 5:57 pm

So do I have to use the above formula that I wrote correctly, to get data converted correctly? Or since 3.5a being "Known Sensors" I don't have to enter anything?
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Sun Nov 05, 2023 8:03 pm

No, you don't have to enter the formula, rain data are already imported from ws90 sensor.
Check your cache/apiLog.txt the first part shows the received sensors data, you should have a line beginning with 'Update R:' and another with 'Update RR:' ( containing the rain data converted in mm )
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by amonphi » Wed Nov 15, 2023 11:47 am

davidefa wrote: Sat Nov 04, 2023 9:44 pm @djpoppy

Yes, my mistake, it won't work as math is done before remapping ( so, in this case, math is done on uninitialized variables )... not considering that I suggested you the wrong syntax : - (

Updated ecowitt plugin ver 3.5:
- added support for WS90 sensor
- improved 'math' syntax ( you can mix meteotemplate fields and ecowitt fields, for example T8=(#tempf#-32)*5/9-#T1# ), so can be used for remapping too
- removed ecowitt remapping
Hi @davidefa ,
a few days ago I also updated the ecowitt plugin but I didn't realize that the Forward to server 2 towards https://www.pwsweather.com/pwsupdate/pwsupdate.php no longer sends data and I didn't understand why.

The only test I did was to change https and http but nothing.

Opening the php page gives this message "ERROR: Missing required parameter dateutc", while if I open the link of my station on the page https://www.pwsweather.com/station/pws/meteopaparano it indicates the PWS active but without data and clicking on the map icon it gives "OBS-CURRENT-AWXJS-SHAPE-OBS-CURRENT-0-42.4545981_12.1589017 could not be found."

What could it depend on?

Thank you
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by amonphi » Sun May 05, 2024 11:02 am

Hi @davidefa,
some possible solution to my problem to send data to http://www.pwsweather.com/pwsupdate/pwsupdate.php via the command forwarding to server 2 of the Ecowtt plugin?
001.jpg
001.jpg (104.98 KiB) Viewed 54911 times
I also tried to contact the support of PWSWeather to understand if it depended on them but, this was answered:
"PWSWeather and WeatherUnderground are not related in Any Way. As Such, We do not share or transfer any data with WeatherUnderground. You can find more information about this on our FAQ.
FAQ.JPG
FAQ.JPG (39.07 KiB) Viewed 54911 times
This Connection has to be done through Through Either Ambient Weather, or another of the support services or Third-party Software. Please refer to this list to determine Potential options for uploading your station's data to PWSweather."
FAQ_2.JPG
FAQ_2.JPG (36.38 KiB) Viewed 54911 times
Image

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Updated ecowitt/ambient weather plugin

Post by El_Viejo » Sun Jul 07, 2024 4:05 pm

I just installed an Ecowitt Wittboy GW 2001, after spending a lot of time trying to "resurrect" the Netatmo plugin.
This is my configuration.

Meteotemplate/Papaya hosted on a LAMP server installed on Raspberry Pi 5, only accessible from my local area network (LAN) at: http://galerna/template/indexDesktop.php
API (V3.5). I access with http://galerna/template/api.php?PASS=12345 and the result is "Succes".
Plugin "ecowitt" (V 3.5a) and block "ecowittModules" (V 1.6), installed and configured.

I have corrected some initial errors, but meteotemplate is still offline, as you can see in the two images I attach.
In the next post I include images of the plugin configuration and the "Customized" section of Ecowitt, with my doubts.
Thank you very much.
Attachments
Offline_02.png
Offline_02.png (24.22 KiB) Viewed 53176 times
Offline_01.png
Offline_01.png (10.11 KiB) Viewed 53176 times

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Updated ecowitt/ambient weather plugin

Post by El_Viejo » Sun Jul 07, 2024 4:08 pm

Here are the images of my configuration and my doubts.
In call "api.php" using... I used Yes, but I don't know if it is the most appropriate option.
Being used to the Netatmo plugin, I don't know the need to save data in CSV and JSON formats.
The same goes for generating "realtime.txt".
I understand that, if I succeed to connect to Ecowitt, the reading data from my station sensors are recorded in my SQL database, So, what are these three parameters for?
"Advanced settings". Corrected. I did use user and password.
Rename / Remapping. I have not made any changes, because I have no idea what to do.
Ecowitt- Customized. In addition to the image configuration, I have used
IP = galerna
Path = /template/plugins/ecowitt/report/index.php?PASS=12345
Neither of the two alternatives has worked.
I have spent many hours searching for information on this on this forum and other sites on the Internet. But, my knowledge is very limited and I can't find the solution.
Can anyone help me?
Thanks in advance.
Note: I have edited this message because I have made several mistakes. Today has not been my best day. Please accept my apologies.
Attachments
ecw_plugi_advanced_02.png
ecw_plugi_advanced_02.png (71.29 KiB) Viewed 53168 times
ecw_conf_custom_02.png
ecw_conf_custom_02.png (20.51 KiB) Viewed 53176 times
ecw_plugin_basic_02.png
ecw_plugin_basic_02.png (120.9 KiB) Viewed 53176 times

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Updated ecowitt/ambient weather plugin

Post by El_Viejo » Fri Jul 19, 2024 6:39 pm

After many hours of work I have not been able to configure this plugin for use with my Ecowitt WittBoy station.

However, using the “ecowittNet” plugin, I have been successful and, now, my template works correctly.
See the thread http://www.meteotemplate.com/forum/viewtopic.php?t=2290

Thanks Davide for your help.

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Updated ecowitt/ambient weather plugin

Post by davidefa » Thu Jan 02, 2025 5:43 pm

Minor updates to the plugin, for those who use the csv log files.
The format of the csv file may vary due to remote sensors not being received ( due to low batteries, interferences or bad weather for example ).
I've added an option to always save csv data in 'fixed' format, in this case you have to supply the list of sensors to save ( using the ecowitt field definition )

ver 3.6 2025/01/02
- the 'Record data in CSV format' has a new 'fixed' option
- added the 'CSV fixed format' option to specify the fields to save in the csv file
- added a maximum of 10 forwarders


ecowitt_fixed_csv_01.png
ecowitt_fixed_csv_01.png (272.49 KiB) Viewed 48647 times
Attachments
ecowitt_3.6a.zip
(26.95 KiB) Downloaded 668 times
Image

Post Reply