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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2021
  • 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.palletsprojects.com/en/...
    [Favicon.cc]
    www.favicon.cc/?action=icon&f...
    [Project Github]
    github.com/0015/ThatProject/t...
    #OTA #Flask #Python #RESTAPI #ESP32 #ThatProject
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 32

  • @ThatProject
    @ThatProject  2 ปีที่แล้ว +4

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

  • @divraj8323
    @divraj8323 2 ปีที่แล้ว

    Great video! Waiting for next video :)

  • @giannifed
    @giannifed 2 ปีที่แล้ว

    thank you sir

  • @Tony770jr
    @Tony770jr 2 ปีที่แล้ว +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  2 ปีที่แล้ว

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

    • @Tony770jr
      @Tony770jr 2 ปีที่แล้ว

      @@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!

  • @meierthomas
    @meierthomas 2 ปีที่แล้ว

    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  2 ปีที่แล้ว +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 2 ปีที่แล้ว

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

    • @ThatProject
      @ThatProject  2 ปีที่แล้ว +2

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

    • @meierthomas
      @meierthomas 2 ปีที่แล้ว

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

  • @dr.hriturajrohariya
    @dr.hriturajrohariya 2 ปีที่แล้ว

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

    • @ThatProject
      @ThatProject  2 ปีที่แล้ว +1

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

  • @alejandrojoseurielessalced423
    @alejandrojoseurielessalced423 3 หลายเดือนก่อน

    buen video, 2024 todo funciona bien.

    • @ThatProject
      @ThatProject  3 หลายเดือนก่อน

      ¡gracias! Me alegro que haya ayudado.

    • @alejandrojoseurielessalced423
      @alejandrojoseurielessalced423 3 หลายเดือนก่อน

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

    • @ThatProject
      @ThatProject  3 หลายเดือนก่อน +1

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

    • @alejandrojoseurielessalced423
      @alejandrojoseurielessalced423 3 หลายเดือนก่อน

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

    • @ThatProject
      @ThatProject  3 หลายเดือนก่อน +1

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

  • @refox13esimo
    @refox13esimo ปีที่แล้ว

    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  ปีที่แล้ว

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

  • @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 2 ปีที่แล้ว

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

    • @ThatProject
      @ThatProject  2 ปีที่แล้ว

      Yeah, I think it's possible enough.

  • @ligteltelecom
    @ligteltelecom 3 หลายเดือนก่อน

    Hi Whats format bin file?

    • @ThatProject
      @ThatProject  3 หลายเดือนก่อน

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

    • @ligteltelecom
      @ligteltelecom 3 หลายเดือนก่อน

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

    • @ThatProject
      @ThatProject  3 หลายเดือนก่อน +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 ปีที่แล้ว

    can I hire you for a project?

    • @ThatProject
      @ThatProject  ปีที่แล้ว

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