Page 1 of 1

Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 10:20 am
by wifi75
hello everyone I have weewx 4.10.1 installed, which via api sends data to meteotemplate.
the only data that I don't see are those of the rain. in fact the sensor is at zero.
Obviously in weewx the rain data is there.

what can I do?

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 10:32 am
by davidefa
Please post a link to your site so we can take a look.
If weewx sends data to meteotemplate calling api.php you can take a look at cache/apiLog.txt ( it logs and decodes the last call to api.php script )
Take a look at the rain data passed in:
apilog02.png
apilog02.png (51.74 KiB) Viewed 59343 times

and the rain data as parsed:
apilog03.png
apilog03.png (59.87 KiB) Viewed 59343 times
I see you have a gw1000, in this case you can also use the ecowitt plugin to receive data directly from the gateway

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 10:53 am
by wifi75
davidefa wrote: Mon Feb 06, 2023 10:32 am Please post a link to your site so we can take a look.
If weewx sends data to meteotemplate calling api.php you can take a look at cache/apiLog.txt ( it logs and decodes the last call to api.php script )
Take a look at the rain data passed in:

apilog02.png


and the rain data as parsed:

apilog03.png

I see you have a gw1000, in this case you can also use the ecowitt plugin to receive data directly from the gateway

here is my link and log in attachment
https://meteo.iu3cyv.eu/template

here link to weewxc with data rain:
https://meteo.iu3cyv.eu/weewx/year.html

I can't use the plugin in meteotemplate because ecowit is set to send data to Home assistant. so I must necessarily get them from Weewx.

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 11:29 am
by davidefa
Ok, your rain ( R field ) and rain rate ( RR field ) are present but 0 ( so weewx is sending, in this moment, 0 as rain and rain rate )
Is your station reporting a total daily rain > 0?
In this case, my first guess, is there is something wrong in the weewx 'sending configuration'
Is there a weewx log of the data sent to meteotemplate?

apilog04.png
apilog04.png (66.21 KiB) Viewed 59328 times

I noticed also that last rain recorded by your station is on april 2022, did you change anything after that date?
rain08.png
rain08.png (505.09 KiB) Viewed 59328 times

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 11:34 am
by wifi75
davidefa wrote: Mon Feb 06, 2023 11:29 am Ok, your rain ( R field ) and rain rate ( RR field ) are present but 0 ( so weewx is sending, in this moment, 0 as rain and rain rate )
Is your station reporting a total daily rain > 0?
In this case, my first guess, is there is something wrong in the weewx 'sending configuration'
Is there a weewx log of the data sent to meteotemplate?


apilog04.png


I noticed also that last rain recorded by your station is on april 2022, did you change anything after that date?
rain08.png
I don't know if there is a log... what can I check?
it worked in 2022, then after an update it didn't work anymore... how can I alter the weewx data by simulating rain?
Do you have any ideas on how to figure out where the problem is?

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 11:56 am
by davidefa
I'd say, make a manual click of the rain sensor ( pouring a small amount of water in the rain sensor funnel for example ).
Check on the wsview that the rain is recorded.
Recheck the cache/apiLog.txt if the rain is reported correctly to meteotemplate in the R field.
If not a misconfiguration in weewx is the more likely candidate.
Post also the configuration files you use in weewx.

P.S.
I'm not a 'weewx man', never used it

P.P.S. How do you 'feed' your station data to weewx? Are you using this weewx driver?
Are you using the custom upload of the gw1000?
If not you could use the custom upload to send data to meteotemplate ( and the problem will be automatically solved )

P.P.P.S.
Weewx should log on the system log: /var/log/syslog

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 12:41 pm
by wifi75
davidefa wrote: Mon Feb 06, 2023 11:56 am I'd say, make a manual click of the rain sensor ( pouring a small amount of water in the rain sensor funnel for example ).
Check on the wsview that the rain is recorded.
Recheck the cache/apiLog.txt if the rain is reported correctly to meteotemplate in the R field.
If not a misconfiguration in weewx is the more likely candidate.
Post also the configuration files you use in weewx.

P.S.
I'm not a 'weewx man', never used it

P.P.S. How do you 'feed' your station data to weewx? Are you using this weewx driver?
Are you using the custom upload of the gw1000?
If not you could use the custom upload to send data to meteotemplate ( and the problem will be automatically solved )

this is my driver on weewx:
https://github.com/gjr80/weewx-gw1000
then weewx sends the data via api to meteotemplate

how do you mean custom upload to send dato to meteotemplate?

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 12:44 pm
by davidefa
In the wsview app go to the online services setup configuration, and check the last service 'custom upload' if it is enabled.
If it is disabled you can use it to send data to your meteotemplate.


custom_upload.jpg
custom_upload.jpg (44.55 KiB) Viewed 59314 times

Re: Rain data weewx-> meteotemplate

Posted: Mon Feb 06, 2023 12:49 pm
by wifi75
I can't send data from gateway to meteotemplate, because gateway is configured to send data to home assistant.