Giter Site home page Giter Site logo

autoconf's Introduction

autoconf

Tasmota autoconf device configurations storage

Why autoconf?

ESP32 based devices get more sophisticated than ESP8266 and require increased post-configuration by users.

Autoconf allows to download autoconf files directly from an online repository to configure a device in 1-click.

If your device is not connected to the Internet, you can still download autoconf files and upload them on the file-system of the device

How does it work?

At boot, the Tasmota engine checks of an autoconf file is present in the file system and applies it.

An autoconf file is a ZIP file which contains scripts and configuration sub-files. To be detected, an autoconf file must end with .autoconf.

Note: only one autoconf file is allowed. If multiple files are present, none is applied and an error is returned.

Step 1. first time configuration - init.bat

The sub-file init.bat contains Tasmota commands that need to be applied only once; like Template commands.

All commands in init.bat are applied in sequence and a restart is triggered.

At this point, an empty hidden file .autoconf is created to stop from applying init.bat multiple times. You can click on the Reapply button to remove this hidden file and reapply the autoconf file.

Step 2. preinit.be

During driver initialization (PRE_INIT), preinit.be file is loaded if present.

This is typically the place to put Berry drivers like AXP192.

Step 3. display.ini

During driver initilization (PRE_INIT), if GPIO OptionA - 3 is enabled and display.ini is present in the autoconf file, the Universal Display Driver is started.

Note: if a file display.ini is also present at the root of the file-system, this step is skipped.

Step 4. autoexec.bat

During initialization phase (INIT), autoexec.bat is applied if present.

Note: if autoexec.bat is also present at the root of the file-system, it is executed AFTER the autoconf.

Step 5. autoexec.be

During initialization phase (INIT), autoexec.be is loaded if present.

Note: if autoexec.be is also present at the root of the file-system, it is executed AFTER the autoconf.

Structure of the ZIP file

The ZIP file must contain only UNCOMPRESSED files and no subdirectory structure (i.e. with options -0 and -j)

  • init.bat: Tasmota commands to be applied once
  • preinit.be: Berry code loaded at PRE_INIT phase to load Berry drivers
  • display.ini: Universal Display Driver configuration if GPIO OptionA - 3 is enabled
  • autoexec.bat: Tasmota commands applied at startup
  • autoexec.be: Berry code loaded at startup

How to add or change autoconf files

ZIP files and manifests are automatically generated by gen.py scripts.

Autoconf definitions should be added as directories in raw with uncompressed files.

autoconf's People

Contributors

arendst avatar beormund avatar blakadder avatar darkxst avatar github-actions[bot] avatar hallard avatar jason2866 avatar jziolkowski avatar markusdd avatar s-hadinger avatar sfromis avatar staars avatar stefxx avatar stl1988 avatar tbrasser avatar ziofabry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

autoconf's Issues

Some fixes needed for Shelly Mini Gen3

We're pretty close though!

Getting this in the console when trying to migrate:

17:11:32.444 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:12:19.564 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:12:24.640 UPL: Step 1 Done
17:12:24.645 UPL: Starting step 2
17:12:24.726 UPL: flashing `safeboot` from http://ota.tasmota.com/tasmota32/release/tasmota32c3-safeboot.bin 712kB
17:12:24.727 UPL: error (internal_error) `app0` offset is not 0x10000
17:14:59.556 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:15:32.380 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:15:34.262 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}

01Space_ESP32-C3-RGB : LED config broken

The WS2812 / onboard LED doesn't work with GPIO8 as configured by "01Space_ESP32-C3-RGB"

image

Using GPIO7 instead as shown by the screenshot let the onboard LED working.

pins for sonoff bridge pro seem to be wrong

Tried to use pin 14 and 13 to drive relay. Figured out it actually controls the green led. Then after some more looking, realised the pins in the "configure module" and on the board don't match. On the board I see DIO8, 11 and 14 while in the module config I see GPIO 13,14 and 33.

Please advise if and how I can use custom pin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.