# How to switch off/on a plug at certain times based on wind direction

**URL:** <https://community.homey.app/t/how-to-switch-off-on-a-plug-at-certain-times-based-on-wind-direction/100399>\
**Category:** Questions & Help\
**Created:** [January 7, 2024, 9:45pm UTC](https://community.homey.app/t/how-to-switch-off-on-a-plug-at-certain-times-based-on-wind-direction/100399 "2024-01-07T21:45:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gregory/32/81824_2.png) [@Gregory](https://community.homey.app/u/Gregory)\
**Post date:** [January 7, 2024, 9:45pm UTC](https://community.homey.app/t/how-to-switch-off-on-a-plug-at-certain-times-based-on-wind-direction/100399/1 "2024-01-07T21:45:49Z")

</div>

Hello,

My neighbor makes a wood fire every day in the winter, and I can smell the smoke in my house through the ventilation when the wind blows from west to east. My goal is to switch off my ventilation system (using a connected plug) from 7 pm to 9 pm if the wind direction is from west to east (or, more specifically, between 70 and 110 degrees). Note: I don’t own a weather station, so I’ll need to rely on public data.

How would you achieve that if that’s even possible?

Many thanks!

Gregory

---

<div class="post-metadata">

**Author:** ![HenriDO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrido/32/84845_2.png) [@HenriDO](https://community.homey.app/u/HenriDO)\
**Post date:** [January 7, 2024, 10:19pm UTC](https://community.homey.app/t/how-to-switch-off-on-a-plug-at-certain-times-based-on-wind-direction/100399/2 "2024-01-07T22:19:35Z")

</div>

This app gives you some information on wind : [Weather by Open-Meteo App for Homey | Homey](https://homey.app/en-us/app/com.spkes.openMeteo/Weather-by-Open-Meteo/)

I’m using a Netatmo hardware which provides the direction of the wind. All works well with Homey…

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 7, 2024, 10:28pm UTC](https://community.homey.app/t/how-to-switch-off-on-a-plug-at-certain-times-based-on-wind-direction/100399/3 "2024-01-07T22:28:49Z")

</div>

This should do it. I used [Openweather app](https://community.homey.app/t/app-pro-openweather/61482), but any preferred weather app _should_ have similar triggercards and wind direction variables

 ![Screenshot from 2024-01-07 23-31-35](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/545daacf6e4ee1c803861406e4b85a1a4b0cdb89.png)

---

<div class="post-metadata">

**Author:** ![Gregory](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gregory/32/81824_2.png) [@Gregory](https://community.homey.app/u/Gregory)\
**Post date:** [January 8, 2024, 11:08am UTC](https://community.homey.app/t/how-to-switch-off-on-a-plug-at-certain-times-based-on-wind-direction/100399/4 "2024-01-08T11:08:44Z")

</div>

Great, thanks a lot 👌🏻
