I have implemented an intelligent underfloor heating control on a Raspberry Pi. The idea is that it controls using outside temperature retrieved from the internet and then switching valves on GPIO using PHP and Python today.
I am really curious if this could be ported to an ESP8266. Anyways there are some challenges ahead:
- Webserver: I have seen that something is existing already; but it looks like beeing able to provide static html.
- Dynamic web page creation: Today I am using PHP to process the user input and give feedback. It seems to me as if I would need to specifically extend an existing webserver implementation. At least I did not find a generic micropython solution to create dynamic web
- XML parsing: I am using a public weather API from the internet to get temperature, wind etc. and use it for calculation in my control. Seems like this parsing would require some manual solution as well
- Configuration file: Today I use a file (xml of course;-) to store this and read during program run.
- Separation of WebUI and heating control: In order not to make the control of the heating directly depend on the webserver reply, there is a separate service running as cron job in the background that does the control. The communicate via a file in ramdisk today.
- For interpolation of a characteristic I am using numpy today: I know that it would not require huge code to implement this routine. But best case of course would be to use something existing.
My overall target is, to prevent coding too many solution specific things for those "generic problems". Feel free to suggest alternative solutions for the bullet points if easy ports are not available.
Cheers Armin
Hoping to find some quiet days now for coding between the years