Hi All,
I have been working with HE for about a year. Mostly simple lighting automations. Recently I setup a zigbee plug for outdoor humming bird feeder heater to come on to keep feeder warm when the temp drops below 1.5C. I am using the OpenWeatherMap API along with my own external temperature monitor in HE to determine when to turn on and off via the Rules 5.0 machine.
Recently I want to look at calculating the "feels like" wind chill temperature based on the current wind speed from the OpenWeatherMap attributes, since this feeder is quite out in the open.
The formula for wind chill is found on wikipedia: Wind chill - Wikipedia
specifically for metric I would like to use this formula:
In trying to determine this using the Rules Engine (5.0) I wasn't able to figure out how to do the X to power of 0.16 in the formula.
Is there something I am missing? or does anyone know of a MATH app or another way to provide the calculation via Rules engine?
"Wind chill is a perceived air temperature, not a physical quantity. ... Water will not freeze with the temperature air at or above 33 degrees , regardless of how far the wind chill is below freezing. Wind chill has no effect on inanimate objects, and they cannot be cooled below the ambient air temperature"
You can create a simple Groovy app that does the calculation. Iām not sure how an app can pass a value into RM but it can store the result in a hub variable that RM can then access.
You can call the app directly from RM or have it run periodically to keep the variable updated.
The heater is a simple container that clamps to the bottom of a hummingbird feeder to warm the bottom (it has a 7W incandescent bulb in this plastic container) and yes it does work to keep it the sugar water from freezing (which freezes at -1.5C. It has kept it warm enough to stay liquid when the ambient temp drops below freezing (lowest is has gone here is -5C so far this year). @oldcomputerwiz - Thank you for quoting AskTom (without a reference) https://www.chicagotribune.com/weather/ct-wea-asktom-0202-20180201-column.html
I am not debating whether wind chill would freeze the water or not above freezing, however the article does state "An object will lose heat in calm conditions, but wind will remove it more quickly"
The questions was how can this calculation be done in the rules engine and if not, what other apps/tools could provide this?
I want to calculate this for the information tracking and the dashboard.
You don't really need to reproduce the exact formula to achieve your goal.
A simplified approximation will get you close enough for practical purposes.
The accuracy of your instruments for measuring wind and temperature will probably be +/- 5% or more, so an approximation that's within a degree or two will be good enough.
Here's the formula for silly American units:
WCF = 35.74 + 0.6215T ā 35.75 (V^0.16) + 0.4275T (V^0.16)
where T = degrees Fahrenheit and V = wind velocity in miles per hour.
And here's a simpler approximation that will produce results within a degree or two of the more complex formula.
Approx WCF = -12 + 1.2T -V/3 +VT/200
Remember that the formula you're looking at is specifically designed for figuring out how much heat a human body will lose under certain conditions. It's useful for figuring out how warmly you should dress to avoid frostbite, but it doesn't have any effect on inanimate objects, and would not work for birds either, as they have different metabolisms.
The wind will determine how QUICKLY the bird feeder cools off, but won't affect the final temperature it ends up at.
Having said all this, I understand the appeal of wanting to solve the original problem, and I'd like to have the ability to do exponents in rules.
With respect to "freezing temperatures", you're right. But a chilling wind, or rather airflow, has been shown to be a significant accelerator of water pipe freezing once temps do get low enough (which, by the way...is lower than most people realize...i.e. well below 32F)
Disregarding Wind Chill per se, OP might be able to use some of the data from this study to use a combined temp threshold AND wind SPEED to invoke his actions on actual measurements vs calculations. My application is out of the wind ...but my heat source is set to kick in at 28F; enough of a safety margin/lead time to avert a problem.
What I'm really wondering about is what the hell those hummingbirds are doing still around once it's getting anywhere close to 1.5C ! The ones I'm familiar with are long gone South by then
I was thinking the exact same thing. I live in NC and the humming birds have been gone since ~October, long before temperatures ever get close to freezing.
Yes, that's what I said previously. It's not about the final temperature, it's about how quickly that temperature is reached. Your pipes will never get colder than the ambient temperature, no matter how strong the wind is. But a strong wind will make them freeze sooner, because the heat is lost more quickly. It actually makes perfect sense if you think about it. How quickly heat transfers by conduction is proportional to the difference in temperature. Cold air takes on heat from the warmer pipes, which become cooler. But as the air gets warmer, the cooling rate slows down. However if the wind is constantly blowing the warmer air away, then the cooling rate never slows down, and the pipes reach the minimum temperature more quickly.
@kellross, here's a quick and dirty hack of a wind chill calculator. I don't have anything to monitor windspeed so you can see I set it to a value of 10 just for testing. You should be able to add any wind speed sensor you are using. It will run every five minutes and update a hub variable you setup in the config.
Thank you for the suggestion.
I didnāt know about WebCoRE. Seems I am learning more every day about capabilities and community apps available for the HE. Iāll look into WebCoRE as a way to calculate this.
I believe this is a description of heat loss by convection, which does apply to a bowl of sugar water sitting out on a calm vs. windy day.
Something like this seems āclose enoughā for this application. The wind chill calculation is, as far as I can tell, needlessly complex if the goal is to prevent a bowl of sugar water from freezing.
I love this heater idea. Did you make or buy it? Of course I am thinking about this AFTER it is freezing here, not before, and this would save me having to rotate the feeders all day. Already figuring out who I would do itā¦..
Man oh man this is a bigger deal than I ever imagined. Don't tell the mid-Continent hummers about this, I'm fine with them actually MIGRATING outta here for a few months!