Rain data weewx-> meteotemplate

Post Reply
wifi75
Observer
Observer
Posts: 22
Joined: Thu Apr 09, 2020 4:58 pm
Station model: GW1000

Rain data weewx-> meteotemplate

Post by wifi75 » Mon Feb 06, 2023 10:20 am

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?

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

Re: Rain data weewx-> meteotemplate

Post by davidefa » 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
apilog02.png (51.74 KiB) Viewed 6062 times

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

wifi75
Observer
Observer
Posts: 22
Joined: Thu Apr 09, 2020 4:58 pm
Station model: GW1000

Re: Rain data weewx-> meteotemplate

Post by wifi75 » Mon Feb 06, 2023 10:53 am

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.
Attachments
api.zip
(1.71 KiB) Downloaded 43 times

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

Re: Rain data weewx-> meteotemplate

Post by davidefa » 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
apilog04.png (66.21 KiB) Viewed 6047 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 6047 times
Image

wifi75
Observer
Observer
Posts: 22
Joined: Thu Apr 09, 2020 4:58 pm
Station model: GW1000

Re: Rain data weewx-> meteotemplate

Post by wifi75 » Mon Feb 06, 2023 11:34 am

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?

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

Re: Rain data weewx-> meteotemplate

Post by davidefa » 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 )

P.P.P.S.
Weewx should log on the system log: /var/log/syslog
Last edited by davidefa on Mon Feb 06, 2023 12:41 pm, edited 1 time in total.
Image

wifi75
Observer
Observer
Posts: 22
Joined: Thu Apr 09, 2020 4:58 pm
Station model: GW1000

Re: Rain data weewx-> meteotemplate

Post by wifi75 » Mon Feb 06, 2023 12:41 pm

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?

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

Re: Rain data weewx-> meteotemplate

Post by davidefa » Mon Feb 06, 2023 12:44 pm

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 6033 times
Image

wifi75
Observer
Observer
Posts: 22
Joined: Thu Apr 09, 2020 4:58 pm
Station model: GW1000

Re: Rain data weewx-> meteotemplate

Post by wifi75 » Mon Feb 06, 2023 12:49 pm

I can't send data from gateway to meteotemplate, because gateway is configured to send data to home assistant.

Post Reply