You can install https://github.com/weewx/weewx/wiki/mqtt and subscribe to 
e.g. weather/loop (or whatever your topic is) and extract windSpeed. You 
will receive windSpeed every time your hardware send loop data to weewx. 
With my WS-2810 this would be about every 3 seconds, my weatherflow tempest 
provides windSpeed every 3 seconds. Your switching device need to be mqtt 
enabled, you need a broker as well.
Other than that there are several other ways to let weewx do something when 
specific loop data arrives.
[email protected] schrieb am Donnerstag, 4. Februar 2021 um 17:35:31 
UTC+1:

> Hi,
> I want that in a certain weather condition, e.g. wind > 50 km/h I switch a 
> relais to turn something on or off. To write the code for switching the 
> realais, I have everything I need. But this code needs as an input the wind 
> speed. Can my program somehow subscribe to Weewx and get the wind data 
> constantly?
> Thanks, Rainer
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/731b7cb6-cd65-41b1-8af0-02bb0914f77cn%40googlegroups.com.

Reply via email to