|11-01-20, 02:46 AM||#1|
Join Date: May 2011
Location: Tortosa, Spain
Thanked 81 Times in 46 Posts
Setting temperature via weather feed
I may have posted about this before but anyway this is an update and it's now working...
It is now cool at night so time to run the heatpump which is connected to the under floor heating in my house.
The daytime temperatures here are still hitting 26C so the heating is only really needed at night.
I had my hp set to heat the water to 32C which gives us a nice comfortable environment but, during the day, it gets too warm in the house so it's a bit of a waste. I was resorting to reducing the temperature manually.
So it seemed sensible to use a weather feed and automatically set the temperature for the heating.
I had used openweathermap.org for a feed previously but their feed data for 5 day, 3 hour (which is what I wanted) was too big for my ESP8266 to process. I had written some code to handle parsing in chunks but the feed sometimes changed and this broke the parsing code. They seem to have updated their API now and you can select a certain number of reports. As I only wanted 3 reports this now makes it possible to process the feed with the memory constraints of the ESP8266.
So I have finally implemented my automatic temperature setting based on the feed data. I may need to modify some of the values but the basic functionality is now there.
The Water Temperature Set value is the average of the Now Temp and the Temp in 3 hours.