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?
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(); }
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
@@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.
@@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?
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?
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.
This is incredibly good! Thank you so much!!
Thanks for watching
Great, although it keeps reloading to the login window even after i enter the right credentials
thank you so much
bro did you have a demo video register page to continue for this project?
There's isn't one, the user is defined in the code
@@MishMashLabs ok thank you
Is it possible to make different accounts for different purpose?
Excellent!!
hello how to create a button on the web page to decouple thank
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?
Any ideas on how to run your code and pull in the date and time from Internet?
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();
}
@@MishMashLabs
Thank you so much, I will crack on testing in the next few days.
@@MishMashLabs thanks
I need your help
I want this encryption method
Add to
Can you type in the ON/OFF state URL and bypass the authentication?
This is a script belong to Rui Santos isn’t it?
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
How can I trigger the logout to this one?
Hi nice project and worked fine when i tested it. can you please make code how to log out the server.
Are you accessing that using local area network or WAN?
This project was done one LAN, but it would the same on a WAN, only problem might be network configuration, and firewalls closing ports.
I mean i need 1 momentary Switch vor 1sec an than automatikly off and 1 normal switch from your Code. Please help me
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.
@@MishMashLabs thx, can you make me the Code?
@@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.
@@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?
Is it possible without hard coded ?
Code of how show temperature?
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?
Do you mean a momentary switch that doesn't latch?
@@MishMashLabs yes
How does this work in esp32 cam?
Can you paste your code? or drop get in touch on facebook.
facebook.com/mishmashlabs/
Good
Thanks Carlos
THE CODE ITS NOT FOUND
Thanks for pointing this out. The link has been fixed now!
@@MishMashLabs thankyou
Esp32 cam Is it possible
Sure
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.
Next, can I add a password to the program?
Sure! Head to our Facebook page. We offer consultancy services at competive rates!
Esp32cam Is it possible