Skip to content

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 serv…

License

Notifications You must be signed in to change notification settings

adrianalin/bme680_nodemcu_socketio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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 serv…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published