logo elektroda
logo elektroda
X
logo elektroda

Tasmota on ESP8266: Compilation of distribution for OLED display, BH1750 and BMP280 sensors and IR

Nargo 1242 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20637469
    Nargo
    Level 22  
    I am trying to make on a single Wemos chip (ESP8266) and Tasmota, a module for a room, which will display on an OLED-I2C display the data from the sensors plugged in (BH1750 and BMP280) in the room and the control of the air conditioning with an IR diode.

    For the display I need the distribution "DISPLAY".
    For the sensors "SENSORS".
    For the air-conditioning "IR".

    Is it possible to compile one distribution containing all these packages?

    How to do it in a different way.
  • ADVERTISEMENT
  • #2 20638171
    xury
    Automation specialist
    It is possible.
    I usually compile myself online on gitpod.
    It is true that the developers do not recommend, but the easiest way is just to select the appropriate options in my_user_config.h
    Otherwise move everything as they recommend to the file user_config_override.h
    I do not recommend combining all three distributions. It's better to select only what you are interested in.
    Attached is my example file.
  • ADVERTISEMENT
  • #3 20639469
    Nargo
    Level 22  
    I am trying to compile with such a file user_config_override.h
    However, I cannot add support for the air conditioner.

    I am using the platformio run -e tasmot command
  • ADVERTISEMENT
  • Helpful post
    #4 20639546
    xury
    Automation specialist
    What kind of an air conditioner is it?

    I don't know if you understand the principle of adding and excluding options:
    e.g. if you want it not to compile a certain module you do

    Code: C / C++
    Log in, to see the code


    and now if you want DHT support to be compiled:

    Code: C / C++
    Log in, to see the code



    And e.g.. to paste support for all IR codes we add:

    Code: C / C++
    Log in, to see the code


    and if we don't want any of the codes then underneath we add e.g.:

    Code: C / C++
    Log in, to see the code


    itd.

    For example, I turned on everything and then turned off everything I didn't need:

    Code: C / C++
    Log in, to see the code
    .
ADVERTISEMENT