ESP32 | Adding Basic HTTP Authentication to your Web Server | Out of the box IoT

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ •

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

    This is incredibly good! Thank you so much!!

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

    Great, although it keeps reloading to the login window even after i enter the right credentials

  • @vlad23yt86
    @vlad23yt86 13 днів тому

    thank you so much

  • @chibingwei761
    @chibingwei761 2 роки тому +1

    bro did you have a demo video register page to continue for this project?

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

      There's isn't one, the user is defined in the code

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

      @@MishMashLabs ok thank you

  • @AMBIN-tt8wi
    @AMBIN-tt8wi Рік тому

    Is it possible to make different accounts for different purpose?

  • @poruatokin
    @poruatokin 2 роки тому +1

    Excellent!!

  • @ÉricRegnault-n2o
    @ÉricRegnault-n2o Рік тому

    hello how to create a button on the web page to decouple thank

  • @charlesdias2857
    @charlesdias2857 5 місяців тому

    Hi, friend, the content is excellent, I have a project that uses the power on of the web server using four buttons and using a push button, also four buttons, could you help me put the authentication code in my code?

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

    Any ideas on how to run your code and pull in the date and time from Internet?

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

      Here is a function you can call, also install and import the library 'time'
      #include "time.h"
      then set the server, gmt offset adn delaylight savings offset:
      const char* ntpServer = "pool.ntp.org";
      const long gmtOffset_sec = 0;
      const int daylightOffset_sec = 3600;
      configure the settings in your setup loop
      configTime(gmtOffset_sec, daylightOffset_sec, ntpServer);
      and call the function in the mail loop:
      printLocalTime()
      Heres the function to paste at the end of your code:
      void printLocalTime(){
      struct tm timeinfo;
      if(!getLocalTime(&timeinfo)){
      Serial.println("Failed to obtain time");
      return;
      }
      Serial.println(&timeinfo, "%A, %B %d %Y %H:%M:%S");
      Serial.print("Day of week: ");
      Serial.println(&timeinfo, "%A");
      Serial.print("Month: ");
      Serial.println(&timeinfo, "%B");
      Serial.print("Day of Month: ");
      Serial.println(&timeinfo, "%d");
      Serial.print("Year: ");
      Serial.println(&timeinfo, "%Y");
      Serial.print("Hour: ");
      Serial.println(&timeinfo, "%H");
      Serial.print("Hour (12 hour format): ");
      Serial.println(&timeinfo, "%I");
      Serial.print("Minute: ");
      Serial.println(&timeinfo, "%M");
      Serial.print("Second: ");
      Serial.println(&timeinfo, "%S");
      Serial.println("Time variables");
      char timeHour[3];
      strftime(timeHour,3, "%H", &timeinfo);
      Serial.println(timeHour);
      char timeWeekDay[10];
      strftime(timeWeekDay,10, "%A", &timeinfo);
      Serial.println(timeWeekDay);
      Serial.println();
      }

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

      @@MishMashLabs
      Thank you so much, I will crack on testing in the next few days.

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

      @@MishMashLabs thanks

  • @金成日-o7s
    @金成日-o7s 3 роки тому

    I need your help
    I want this encryption method
    Add to

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

    Can you type in the ON/OFF state URL and bypass the authentication?

  • @qazaq6893
    @qazaq6893 Рік тому

    This is a script belong to Rui Santos isn’t it?

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

    Before I wish you hello from Algeria and thank you very much for your sharing which will surely help a lot of people. I followed your video to the letter unfortunately at the end when I connect with my address it does not ask me for the name of the user or the password it opens directly. I look forward to your help. thank you in advance

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

    How can I trigger the logout to this one?

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

    Hi nice project and worked fine when i tested it. can you please make code how to log out the server.

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

    Are you accessing that using local area network or WAN?

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

      This project was done one LAN, but it would the same on a WAN, only problem might be network configuration, and firewalls closing ports.

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

    I mean i need 1 momentary Switch vor 1sec an than automatikly off and 1 normal switch from your Code. Please help me

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

      Yes you just need to set a turn the output high once the button is pressed and then a sleep for 1 second, before setting the output as low.

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

      @@MishMashLabs thx, can you make me the Code?

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

      @@axelwupper1438 unfortunately I'm very busy with other projects until the end of the year. Best of luck. If you try and have a small bug you can message me on Facebook for help.

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

      @@MishMashLabs ok , i have testet to make under gpio settings that when it switcht high delay switcht low but when i reload the HTML then it switcht on off and this is Not good. I havnt Facebook. Only insta and there i have write you. Have you an example for the sleep Code that i can Google it?

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

    Is it possible without hard coded ?

  • @caionggabriel607
    @caionggabriel607 Рік тому

    Code of how show temperature?

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

    Hallo, this is perfekt. I nee this for controll samthing. But i need for ohne switch an automaticel switch back to off. You know what i meen? In German it calls "Taster" can you help me please?

  • @zaqwsx28
    @zaqwsx28 4 роки тому

    How does this work in esp32 cam?

    • @MishMashLabs
      @MishMashLabs  4 роки тому

      Can you paste your code? or drop get in touch on facebook.
      facebook.com/mishmashlabs/

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

    Good

  • @kamalkamel7559
    @kamalkamel7559 4 роки тому +1

    THE CODE ITS NOT FOUND

    • @MishMashLabs
      @MishMashLabs  4 роки тому +1

      Thanks for pointing this out. The link has been fixed now!

    • @kamalkamel7559
      @kamalkamel7559 4 роки тому

      @@MishMashLabs thankyou

  • @金成日-o7s
    @金成日-o7s 3 роки тому

    Esp32 cam Is it possible

  • @Looki2000
    @Looki2000 6 місяців тому

    Password authentication on an unencrypted HTTP connection is a complete nonsense. Anyone in your network (or in the world if you port forward) can intercept the traffic and steal your password.

  • @金成日-o7s
    @金成日-o7s 3 роки тому

    Next, can I add a password to the program?

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

      Sure! Head to our Facebook page. We offer consultancy services at competive rates!

  • @金成日-o7s
    @金成日-o7s 3 роки тому

    Esp32cam Is it possible