esp32-cam-webserver
esp32-cam-webserver copied to clipboard
Solution for "Add sensor or other dynamic data to HTML or stream #114"
add a quick solution for add sensordata into the webpage by using ajax. I reloads the data inline without refresh the whole webpage. It is deactivate in the code. To test it you have the define HAS_BME280 in esp32-cam-webserver and in app_httpd.cpp.
Hi! Great job :+1: I'm sorry I didn't respond immediately, busy with lots of things.
I've got a spare BME280 at home (and use another BME280 in my 'Pi OverWatch' project, so I'm familiar with them. I haven't done more than quick scanned your code, I'll try and sit down over the next week and do a more thorough job, hook up the BME to my test cam for a test, and look at how this could be extended to all pages seamlessly. Should be do-able via JS. Ideally I'd like to embed the data in the image but that is beyond the scope of this.