enesbcs / mpyeasy

mPyEasy - Easy MultiSensor device based on ESP32 & MicroPython
GNU Affero General Public License v3.0
12 stars 0 forks source link
domoticz esp32 espeasy gateway home-autom internet-of-things iot micropython mpyeasy mqtt smarthome

[Release downloads]() [Code size]() [Last commit]()

To support the development you can:

mPyEasy

Easy MultiSensor device based on ESP32 & MicroPython

Based on MicroPython and ESP32 this project tries to mimic the magnificent ESPEasy project functions. Python code is backported from RPIEasy. Main goal is to create a multisensor device, that can be install and setup quickly.

Tested with ESP32 WROVER and WROOM modules with 4MB flash.

:warning:THIS IS A BETA TEST VERSION!:warning:

Expect major changes in later versions that may cause incompatibility with earlier versions!

Installation

1/ Recommended method to write the firmware binary to the flash directly. It will run on either WROOM or WROVER variants.

Download image from: https://github.com/enesbcs/mpyeasy/releases/

2/ MicroPython source code from the src directory can be copied to the flash onto a WROVER module with 4MB PSRAM! Without PSRAM it will run out of memory, i warned you!

https://github.com/enesbcs/mpyeasy/tree/main/src

Setup

(LAN module can be enabled at the Hardware page, then configure it on the Config page, if settings are correct it will work after reboot.)

Update

1/ If using the recommended firmware binary, the OTA function is available in the webGUI. OTA will only work with MicroPython images where APP partition starts on 0xF000. Release files in this repository looks like this. If used in OTA, the program will automatically skip the first 0xF000 bytes and upload only the APP partition from the binary, to the next free OTA partition of the ESP32 flash. This is the reason why the flashable FACTORY release and the OTA version is the same.

2/ In case the source py files written to the Flash of the device, OTA will not work, source files needs to be updated manually. (Either by REPL or manual FTP)

Compiling

To create firmware image from python sources, follow instructions for compiling standard MicroPython and add mPyEasy source to micropython/ports/esp32/modules subdirectory before "make" command.

https://github.com/micropython/micropython/tree/master/ports/esp32

https://blog.horan.hk/micropythonesp32.html