gwizz wrote:Awesome work, thanks for sharing!! Even to my inexperienced eyes your code looks very clean, smells good too!
I'm sure Peter Scargill will be interested in this as well, he is very concerned with timekeeping with his projects.
If you can share any other details of your project I'd like to read about it?
Keep on hacking
Thanks for your kind words! I'm a developer by trade so clean code is something I pride myself on .
It's really something just to get my feet wet with the ESP8266.
My fiancee and I are planning to get a hedgehog as a pet. They need to be kept above 72°F and need 12 hours of dedicated light a day.
So my project controls 2 relays, one to power an infrared heat emitter, and the other a standard light bulb. The heater is controlled by the temp read from a DS18b20, and the light is controlled by the time from a DS3231. A web interface will allow me to see and change the temp and adjust the hours the light is active (as well as forcefully turn the heater or light on).
The hardware is done and 90% of the code is done (web interface part is really all that's left). The biggest issue I'm facing at the moment is running out of heap. If I try to add too much into the web interface code I end up randomly running out of heap when I try to load the web page and the module reboots. I've stripped the unneeded LUA modules and I'm trying to slim down the code as much as possible.
When I get it all working and finished up I'll do a full write up of both the hardware and code