Skip to content

🧠 SuperGreenOS home farming automation software for esp32, all in one package, and controllable from your smartphone, pc, mac, linux, toaster, plumbus, whatnot...

License

Notifications You must be signed in to change notification settings

mariusrugan/SuperGreenOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

485 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs

https://nodejs.org/en/download/

https://nodejs.org/dist/v22.19.0/node-v22.19.0-linux-x64.tar.xz

node -v
v22.19.0

ejs-cli

https://github.com/jaywcjlove/ejs-cli

npm install --global ejs-cli
./ejs-cli --version
2.2.3

Templates

./update_templates.sh config.controller.json

For a generic esp32 board:

./update_templates.sh config.esp32.json

output:

Processing main/core/mqtt/mqtt.h.template: Done
Processing main/core/mqtt/mqtt.c.template: Done
Processing main/core/i2c/i2c.c.template: Done
Processing main/core/kv/kv_arrays.h.template: Done
Processing main/core/kv/kv.c.template: Done
Processing main/core/kv/kv_arrays.c.template: Done
Processing main/core/kv/kv_helpers_internal.h.template: Done
Processing main/core/kv/kv_helpers.c.template: Done
Processing main/core/kv/kv_mapping.c.template: Done
Processing main/core/kv/keys.h.template: Done
Processing main/core/kv/kv.h.template: Done
Processing main/core/kv/kv_helpers_internal.c.template: Done
Processing main/core/modules.h.template: Done
Processing main/core/stat_dump/stat_dump.c.template: Done
Processing main/core/include_modules.h.template: Done
Processing main/init.c.template: Done
Processing main/component.mk.template: Done
Processing main/Kconfig.projbuild.template: Done
./update_htmlapp.sh config.controller.json

For a generic esp32 board:

./update_htmlapp.sh config.esp32.json

output:

~/esp/SuperGreenOS/html_app ~/esp/SuperGreenOS ~/esp/SuperGreenOS

Compile

export IDF_PATH=$HOME/esp/esp-idf_release_3.3.1
source $IDF_PATH/export.sh

output:

Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
/home/mr/esp/esp-idf_release_3.3.1/tools/check_python_dependencies.py:22: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
Python requirements from /home/mr/esp/esp-idf_release_3.3.1/requirements.txt are satisfied.
Added the following directories to PATH:
  /home/mr/esp/esp-idf_release_3.3.1/components/esptool_py/esptool
  /home/mr/esp/esp-idf_release_3.3.1/components/espcoredump
  /home/mr/esp/esp-idf_release_3.3.1/components/partition_table/
  /home/mr/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a-5.2.0/xtensa-esp32-elf/bin
  /home/mr/.espressif/tools/esp32ulp-elf/2.28.51.20170517/esp32ulp-elf-binutils/bin
  /home/mr/.espressif/tools/openocd-esp32/v0.10.0-esp32-20190313/openocd-esp32/bin
  /home/mr/.espressif/python_env/idf3.3_py3.9_env/bin
  /home/mr/esp/esp-idf_release_3.3.1/tools
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build
make clean
make flash monitor

Flash the web-app:

./update_htmlapp.sh config.esp32.json
./write_spiffs.sh

TBD

[ ] esp32 compile flow

About

🧠 SuperGreenOS home farming automation software for esp32, all in one package, and controllable from your smartphone, pc, mac, linux, toaster, plumbus, whatnot...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 84.3%
  • CUE 5.2%
  • Python 3.1%
  • HTML 3.1%
  • Shell 2.2%
  • JavaScript 1.7%
  • Other 0.4%