/bme680_nodemcu_socketio

This application comprises multiple components: - NodeMCU client: runs MicroPython, reads air tempeature, pressure, humidity from BME680 and sends the readings via SocketIO to Flask server - Browser client: connects to Flask server, and receives the real time measurement data to be plotted in browser using Chart.js and Google charts - Flask server: uses Flask-SocketIO for receiving data from NodeMCU and sends data to conected browser clients

Primary LanguagePythonMIT LicenseMIT

NodeMCU read measurements from BME680 and send to flask SocketIO using MicroPython

  1. BME680 sensor readings using https://github.com/robmarkcole/bme680-mqtt-micropython
  2. SocketIO communication with Flask web server using https://github.com/danni/uwebsockets, with small changes needed for NodeMCU.

Don't forget to set your SSID credentials in boot.py. You also need to use mpy-cross in order to compile the *.py files (otherwise you get MemoryError: memory allocation failed).

I also wrote a more detailed blog post https://www.popsblog.me/post/23.