OTA Solution - Build your own OTA platform (1/2, Preparing Python Flask API Server)

Поділитися
Вставка
  • Опубліковано 28 лис 2024
  • In this project, we are going to configure the OTA environment.
    It would be nice if there is no server part, but a server is absolutely necessary for the device to always check for new information.
    So in this video, I'm gonna start with a very small and simple server that I need in an OTA environment. This server is Python-based and uses a microframework called Flask.
    I'm sure this gives you the idea to build your own OTA platform.
    [Flask]
    flask.palletsp...
    [Favicon.cc]
    www.favicon.cc...
    [Project Github]
    github.com/001...
    #OTA #Flask #Python #RESTAPI #ESP32 #ThatProject

КОМЕНТАРІ • 32

  • @ThatProject
    @ThatProject  3 роки тому +4

    That Project's Channel - ua-cam.com/users/ThatProject
    Join FB Group - facebook.com/groups/138965931539175

  • @Tony770jr
    @Tony770jr 3 роки тому +3

    Nice video. Could you zoom in on the text when writing the code as I view on my smartphone a lot. Thanks!

    • @ThatProject
      @ThatProject  3 роки тому

      Was this video not enough? I zoomed in a lot more than before......

    • @Tony770jr
      @Tony770jr 3 роки тому

      @@ThatProject Try watching on your phone. When typing in code always try to zoom in. Yes, you did zoom in some, but always when you enter code would be better on small devices. Thanks!

  • @divraj8323
    @divraj8323 3 роки тому

    Great video! Waiting for next video :)

  • @dr.hriturajrohariya
    @dr.hriturajrohariya 3 роки тому

    Hey Eric...Awesome Video...Just a Question...why Can't this Json or bin file be downloaded from Firestore

    • @ThatProject
      @ThatProject  3 роки тому +1

      Because I wanted to make a solution that works based on the server I made.

  • @meierthomas
    @meierthomas 3 роки тому

    Great project and great timing as I need an OTA server for an ESP32 based project. What do you run the OTA server on? I have a server running VirtualBox and probably would run this on a Fedora VM

    • @ThatProject
      @ThatProject  3 роки тому +2

      VM is fine. Also, you can run it on your computer. Since the server is a Python-based Flask server, it works on any OS.

    • @meierthomas
      @meierthomas 3 роки тому

      @@ThatProject As long as I have a Python environment to run it in, right? What version is needed at a minimum?

    • @ThatProject
      @ThatProject  3 роки тому +2

      @@meierthomas Yes, that's right. It works fine in Python 3.x or later.

    • @meierthomas
      @meierthomas 3 роки тому

      @@ThatProject Ok great. I'm building this server over the weekend probably. Thanks for this great tutorial

  • @refox13esimo
    @refox13esimo 2 роки тому

    hi! i found problems just at the start... :( the "python -m venv venv" command created the venv folder without the bin folder inside, than the "source venv/bin/activate" command result in error as "source command not found", what could it be?

    • @ThatProject
      @ThatProject  2 роки тому

      Are you using Windows? If so, please check this out. stackoverflow.com/a/8921211

  • @alejandrojoseurielessalced423
    @alejandrojoseurielessalced423 8 місяців тому

    buen video, 2024 todo funciona bien.

    • @ThatProject
      @ThatProject  8 місяців тому

      ¡gracias! Me alegro que haya ayudado.

    • @alejandrojoseurielessalced423
      @alejandrojoseurielessalced423 8 місяців тому

      @@ThatProject disculpa tienes alguna solución de OTA para platformIO pero con el framework de IDF? te agradecería!

    • @ThatProject
      @ThatProject  8 місяців тому +1

      @@alejandrojoseurielessalced423 There is an official OTA supported by ESP-IDF. github.com/espressif/esp-idf/tree/master/components/esp_https_ota

    • @alejandrojoseurielessalced423
      @alejandrojoseurielessalced423 8 місяців тому

      @@ThatProject esa es una librería(componente) necesito un ejemplo práctico, no he podido conseguir algo que me sirva, gracias

    • @ThatProject
      @ThatProject  8 місяців тому +1

      @@alejandrojoseurielessalced423 Check this out. github.com/espressif/esp-idf/blob/master/examples/system/ota/README.md

  • @hector2742
    @hector2742 2 роки тому

    Excelent video, Excuse me ,but i have a questión.
    Is it possible to do it in Arduino IDE?

    • @ThatProject
      @ThatProject  2 роки тому

      Sure. Everything except the server part is made in Arduino IDE 2.0.

  • @ugetridofit
    @ugetridofit 3 роки тому

    What would be even better is to have another ESP32 act as the sever.

    • @ThatProject
      @ThatProject  3 роки тому

      Yeah, I think it's possible enough.

  • @giannifed
    @giannifed 3 роки тому

    thank you sir

  • @ligteltelecom
    @ligteltelecom 8 місяців тому

    Hi Whats format bin file?

    • @ThatProject
      @ThatProject  8 місяців тому

      This is a firmware file in binary format that includes a bootloader.

    • @ligteltelecom
      @ligteltelecom 8 місяців тому

      @@ThatProject Thank you reply. I have problem firmware size. is possible change size partition Ota?

    • @ThatProject
      @ThatProject  8 місяців тому +1

      @@ligteltelecom You can check the configuration of your flash memory by looking at the partition.csv file. This OTA Update system I created is not ESP-IDF's OTA, but Arduino Framework's OTA. So, it is necessary to free up space in SPIFFS. If you use ESP-IDF's OTA, you can increase the OTA size in the partition.

  • @johnrichardson1949
    @johnrichardson1949 2 роки тому

    can I hire you for a project?

    • @ThatProject
      @ThatProject  2 роки тому

      You can find my email here, ua-cam.com/users/ThatProjectabout