psy0rz wrote: ↑14 Sep 2017, 22:46
LisaM is your code on github somewhere? I also think micropython is the way to go in the future. It solves a lot of issues and its very platform independent.
Not yet, i'm still busy with the main core outline and collecting and assembling all standard components.
Basic principle is to do as little programming as possible:
- Allow for standard modules (plugins) with an easy override, meaning that if you put (drag 'n drop in a plugin directory in the pybflash share) the same module customized in a directory it will use that module (plugin) instead of the frozen one. This enables to use a standard (frozen) core (firmware) together with customised plugins, lowering the need for baking firmwares.
- Use picoweb for webserver. Using picoweb means no longer fixed html but customizable webpages, where the standard templates are in the frozen module with an override possibility in a pybflash directory similar to that of plugins. It will support i18n, javascript, css, images and many more.
- Lan/Wlan transparency , either can be chosen depending on the hardware available (IF there's a choice, when the hardware isn't there the choice is greyed out). I have an PyBoard connected to a W5100 using Lan, while the NodeMCU is using WLan without any changes to the code.
- The ESPEasy core will be COMPLETELY rewritten, micropython already has a lot of standard modules that can be reused, but most IDEAS in the ESPEasy are used as foundation in either searching for an existing solution or as a base for writing a new module!
- Rules are written in Python in separate files called scripts in a pybflash directory, exception protected, and no longer in the ESPEasy language. There's no limit other than that what the hardware can handle, like memory constraints.
Please let me know if you have more requests to include in the core!
The performance of ESPyEasy is a little less then that of EspEasy on equal hardware (NodeMCU) but since it can also run on faster platforms like ESP32 and PyBoard which have faster SOC's the difference is no big deal anymore. The PyBoard has an enormous amount of GPIO's and other features, which makes this platform superior to that of the ESP8266. The range of platforms where ESPyEasy can run on is limited only by micropython, complex setup's will problably run on pyboard, wipy or ESP32 or equals and more simple ones on ESP8266.
My $20 (AliExpress) ESPyEasy development environment:
- IMG_3014.JPG (1.65 MiB) Viewed 62871 times
Development has become very easy, just drag 'n drop the new code in the pybflash share and run it from putty...