Тёмный

Send DHT11 data to PHP MySQL Server using NodeMCU ESP8266 

Ahmad Logs
Подписаться 20 тыс.
Просмотров 15 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 109   
@Lovely-bx8se
@Lovely-bx8se 9 месяцев назад
Bonjour, Tous d'abord un grand merci pour ce tuto très complet précis accompagné en plus de l'ensemble des elements.Pour ce qui cherche, ne cherchez plus vous avez trouvé. J'avoue ne pas être un grand spécialiste et grâce a ce tuto j'ai put appliquer l'ensemble du projet ( avec un serveur LAMP ) sur un Raspberry. Merci !!!
@ipflodhuri
@ipflodhuri 12 дней назад
My question is that when esp send data update, whether existing data will be updated or will add new line in mysql. ?
@TechnicalidEas07
@TechnicalidEas07 2 года назад
Arduino or NodeMCU will have a push switch attached. When I press in that switch, the location will go to our mobile
@AhmadLogs
@AhmadLogs 2 года назад
ok
@Lovely-bx8se
@Lovely-bx8se 9 месяцев назад
Je me permets de revenir vers vous pour une question,peut on rajouter la fonction MQTT a ce projet?Merci de votre reponse
@AhmadMehraGohar
@AhmadMehraGohar 2 года назад
very nice and professional best product
@AhmadLogs
@AhmadLogs 2 года назад
Thanks
@shakerileiwat4341
@shakerileiwat4341 2 года назад
Great project Thank you
@AhmadLogs
@AhmadLogs 2 года назад
Glad you like it!
@SAURABHKUMAR-py9or
@SAURABHKUMAR-py9or 2 года назад
Hi bro I did everything like u said. Database is getting data if we try to add fake data through post_data_test.php and nodemcu is also sending data successfully as it's showing http code 400 on serial monitor but it is not saving in database of the website if we check in database. Can you tell me the reason?plz
@AhmadLogs
@AhmadLogs 2 года назад
http code 400 means the data is not sending successfully to the database. please post your full serial monitor output here.
@SAURABHKUMAR-py9or
@SAURABHKUMAR-py9or 2 года назад
@@AhmadLogs Connecting...........Connected to WiFi network with IP Address: ***********Temperature: 31.30Humidity: 39.20--------------------------temperature_data: api_key=hello world&temperature=31.30&humidity=39.20HTTP Response code: 400
@AhmadLogs
@AhmadLogs 2 года назад
@@SAURABHKUMAR-py9or which web server you have used awardspace or any other
@SUMALESHKA
@SUMALESHKA Год назад
my serial monitor is not displaying anything
@virenrao82
@virenrao82 2 года назад
monitor in showing http 200 code at nodemcu side, but data not available on php page. I am using infinity web hosting
@AhmadLogs
@AhmadLogs 2 года назад
there are just two free web hostings that work with the project. 000webhost, and AwardSpace
@TechTrendsShameer
@TechTrendsShameer 2 года назад
Hi bro. How to change the color of the gauge in the output. I tried in the script, but the color goes to blank
@AhmadLogs
@AhmadLogs 2 года назад
I have used Google Gauge in this project. and the Google Gauge have limited colors only 3 red, green and blue. try this on line number 115 of index.php redColor: "rgba(198, 0, 0, 0.67)",
@TechTrendsShameer
@TechTrendsShameer 2 года назад
@@AhmadLogs Ok bro. Thank you
@AhmadLogs
@AhmadLogs 2 года назад
@@TechTrendsShameer so nice of you
@kamalkamel7559
@kamalkamel7559 2 года назад
very great project, how control devices, example relay and display temperature!!
@AhmadLogs
@AhmadLogs 2 года назад
It is possible. but it required some research.
@rodiladriangaryck6488
@rodiladriangaryck6488 Год назад
Can I use this code for esp32 as well?
@AhmadLogs
@AhmadLogs Год назад
not
@jeromebla5835
@jeromebla5835 Год назад
You have to modify it. I run it on a esp32 with DHT20
@amirtelecom6898
@amirtelecom6898 2 года назад
Verry Nice ... Can this be used with SIM800l ?
@AhmadLogs
@AhmadLogs 2 года назад
yes, it might be used
@annoorkhan4219
@annoorkhan4219 2 года назад
Nice ,I tested your projects and it worked perfect but now I need to control few LED from web page, so what I have to do ?do I have to use mqtt broker?
@AhmadLogs
@AhmadLogs 2 года назад
I pefer to suggest mqtt broker
@mbinacedric3566
@mbinacedric3566 Год назад
Hi, i have a video topic for you!!!
@bektinurwanto
@bektinurwanto Год назад
If using localhost, can i use api key?
@AhmadLogs
@AhmadLogs Год назад
yes you can
@katkatia9255
@katkatia9255 2 года назад
What can i modify if i use xamp ?
@AhmadLogs
@AhmadLogs 2 года назад
I think you just need to change the URL. I mean change the website url to your locallhost project url. like localhost/your_project_name
@syaduinotech3681
@syaduinotech3681 2 года назад
Thanks for sharing. I try already but fail to get the function. I am using personal website.. its so hard many creator using free..huhu. can you share video about own personal website. I try using randomnerdtutorial get the http code 300. Mind to help. Using the personal website. I did not know the host name.
@TechTrendsShameer
@TechTrendsShameer 2 года назад
Good one bro. Shall I use your code for my videos? Any problem ?
@AhmadLogs
@AhmadLogs 2 года назад
no problem. you might use. the code is free for all
@TechTrendsShameer
@TechTrendsShameer 2 года назад
@@AhmadLogs thanks bro.
@AhmadLogs
@AhmadLogs 2 года назад
@@TechTrendsShameer you are welcome
@EasyOne
@EasyOne 2 года назад
nice
@AhmadLogs
@AhmadLogs 2 года назад
Thanks
@yashagrawal3539
@yashagrawal3539 2 года назад
why am i getting the http 301 error? i have followed all the steps
@AhmadLogs
@AhmadLogs 2 года назад
which hosting service you are using?
@yashagrawal3539
@yashagrawal3539 Год назад
@@AhmadLogs thank you for the reply. i have my site on the hostinger platform
@l3nnyraw901
@l3nnyraw901 Год назад
Im getting the same HTTP code (301). It means that you have a wrong link or so. I host my project too with hostinger. but there is already a wordpress Webpage in my files. So I had to rename the index.php file (wehre the html code is in) to index2.php. So maybe this causes the HTTP Code 301. But I cant find the place in the project files wehre i can link to the index2.php file. /// The "post_data_test.php" makes an entry in the DataBase and works fine but the esp8266 creates no entries. so I cant find the issue.
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
thanks for this tuto
@AhmadLogs
@AhmadLogs 2 года назад
so nice of you
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
@@AhmadLogs i really like this tuto .Actually im working on how to send data to laravel mysql. Have you an idea to how display data through gauge
@AhmadLogs
@AhmadLogs 2 года назад
@Rodias Gohoue laravel is a php framework. you need to convert all the php code to laravel. To work with laravel you need to learn basics of this framework for 1. inserting data in the database 2. displaying it on the web page in a nice format. I have used Google Gauge in the tutorial. and you can use the same with laravel. the same code will work for laravel that I have used at the end of the index.php file. there is a tag. and all the code for gauge in available within the tag. this is a java script code and you can use JavaScript with any web based programming language and framework.
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
@@AhmadLogs thanks . Im working on it
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
it's work now thanks a lot
@POTTIVENKATASAICHARANBEC
@POTTIVENKATASAICHARANBEC 2 года назад
website is not working can u check it thanking you
@AhmadLogs
@AhmadLogs 2 года назад
I have tested it and it is working fine.
@joroxanborata3102
@joroxanborata3102 Год назад
sir is this working for hostinger cause my http code: -1
@AhmadLogs
@AhmadLogs Год назад
it must work
@persephone1571
@persephone1571 Год назад
@@AhmadLogs same but there are no changes on the index page
@persephone1571
@persephone1571 Год назад
@@AhmadLogs also can you help me send an email using php?
@ahsanejaz1743
@ahsanejaz1743 2 года назад
i will wait for your response
@AhmadLogs
@AhmadLogs 2 года назад
for what?
@kiritochanel2351
@kiritochanel2351 2 года назад
How to fix? : HTTP Response code: -1
@AhmadLogs
@AhmadLogs 2 года назад
this is the issue with the free web-hosting. but this is not more frequent issue if occurs time to time. if you buy a hosting plan then the issue will solved forever.
@nattanon_mixx3657
@nattanon_mixx3657 2 года назад
i use localhost?
@AhmadLogs
@AhmadLogs 2 года назад
@@nattanon_mixx3657 but I did not test it on local host. try http:localhost/yourproject http:127.0.0.1/yourproject. make sure not use https. (I am just talking about 's' in the https string)
@Lovely-bx8se
@Lovely-bx8se 5 месяцев назад
Bonjour, J'ai essaye d'adapter votre code pour un capteur DS18B20 mais les valeurs ne change pas elle m'indique 24 et 77.
@tariq4846
@tariq4846 2 года назад
How to display multiple sensors data on same page?
@nonel7215
@nonel7215 2 года назад
Thank you so much for this. I'm having issues with http.begin(client, SERVER_NAME); It gives error Compilation error: no matching function for call to 'HTTPClient::begin(WiFiClient&, const char*&)' I would appreciate if you can help
@AhmadLogs
@AhmadLogs 2 года назад
install the esp8266 core version 2.6.0 or lower
@nonel7215
@nonel7215 2 года назад
@@AhmadLogs thank you so much!
@kucingawak
@kucingawak Год назад
@@AhmadLogs I also get the same error but my esp board is currently version 2.4.0 how to fix it?
@DomjohnPerez
@DomjohnPerez Год назад
how to fix bad requests. response code 400. the file sensordata.php cant find HTTP request, btw im using hostinger as webhost
@AhmadLogs
@AhmadLogs Год назад
I thinks you did not upload the sensordata.php file at the correct location
@tamapra57
@tamapra57 2 года назад
If you could explain each PHP file that'd be great since im a beginner. Thanks!
@AhmadLogs
@AhmadLogs 2 года назад
Noted!
@TechTrendsShameer
@TechTrendsShameer 2 года назад
Hi Bro, How to change the maximum value in the gauge from 100 to any other higher value? Please help me.
@ry0usama511
@ry0usama511 3 месяца назад
Very simple and understandable guide. Thanks!
@emojiit362
@emojiit362 2 года назад
We need to talk Can you check your email?
@AITwo_co
@AITwo_co 2 года назад
please make a video on going live with jazzcash payment gateway...
@AhmadLogs
@AhmadLogs 2 года назад
NOT POSSIBLE
@DiyintheGhetto
@DiyintheGhetto 2 года назад
Hello, What happens if you have multiple sensors on multiple esp866. How can I do that within mysql to store and display them?
@AhmadLogs
@AhmadLogs 2 года назад
then lot of changes are required. both in the sketch as well as php myql code
@DiyintheGhetto
@DiyintheGhetto 2 года назад
@@AhmadLogs got you thank you.
@fakhriaidil3774
@fakhriaidil3774 Год назад
why when it try to run the post_data_test.php ....it come out with error 404 page...i follow all the instruction
@AhmadLogs
@AhmadLogs Год назад
If you are getting a 404 error when trying to run the post_data_test.php script, it means that the server is not able to locate the script at the specified location. Make sure that the file is located in the correct directory on the server.
@rikinurfalakhi8943
@rikinurfalakhi8943 Год назад
i have followed your video and i found the https respone code is 400 not 200, what should i fix?
@AhmadLogs
@AhmadLogs Год назад
it means the page you are requesting is not found. just make sure you have properly uploaded the php file on the webserver
@TechnicalidEas07
@TechnicalidEas07 2 года назад
Make GPS project GPS and push switch
@AhmadLogs
@AhmadLogs 2 года назад
give me some details
@TechnicalidEas07
@TechnicalidEas07 2 года назад
Arduino or NodeMCU will have a push switch attached. When I press in that switch, the location will go to our Mobile 📲
@mailtorameshhr
@mailtorameshhr 2 года назад
very nice project thank you and why it is giving error like #1226 - User '4071374_tempdb' has exceeded the 'max_connections_per_hour' resource (current value: 1500)
@AhmadLogs
@AhmadLogs 2 года назад
this is because you are using free web hosting. you can send 1500 request in an hour using this hosting. for getting more you need to buy a web hosting plan
@mailtorameshhr
@mailtorameshhr 2 года назад
@@AhmadLogs thank you
@markludwig5805
@markludwig5805 2 года назад
Great video...good stuff. I had the same problem. Awardspace shut down my free account due to abuse. Problem appears to be config.php line 18 according to awardspace. Is there a way to fix or reduce the number of connections/hr????
@AhmadLogs
@AhmadLogs 2 года назад
@@markludwig5805 you just need to buy premium plan.
@JuddSalvacion
@JuddSalvacion Год назад
thank you. so helpful vid
@AhmadLogs
@AhmadLogs Год назад
thanks
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
Ahmad logs plz help me. Im in trouble each time i tried to compile my code on esp8266 this error appear double free or corruption (out) signal: aborted Erreur de compilation pour la carte NodeMCU 0.9 (ESP-12 Module) do you know what this means?
@AhmadLogs
@AhmadLogs 2 года назад
you just flash your esp device
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
@@AhmadLogs oki thanks i'll try it Can you give me mail . i'll chat there if need . Thanks
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
hello @@AhmadLogs
@rodiasgohoue6014
@rodiasgohoue6014 2 года назад
@@AhmadLogs I need your help Did you ever use esp8266-01 ?I want ti know how connect it to php server
@AhmadLogs
@AhmadLogs 2 года назад
@@rodiasgohoue6014 Sorry I never used it before. there is a video on electronoobs channel in which he uses esp8266 for the same purpose
@rampage_xdit
@rampage_xdit 2 года назад
You are the best
@AhmadLogs
@AhmadLogs 2 года назад
thanks
@abdiqadirmohamednor6101
@abdiqadirmohamednor6101 2 года назад
Thank you so much you helped me deeply
@AhmadLogs
@AhmadLogs 2 года назад
thanks
@ahmedtaher4015
@ahmedtaher4015 2 года назад
Verry nice
@AhmadLogs
@AhmadLogs 2 года назад
Thanks
Далее
Трудности СГОРЕВШЕЙ BMW M4!
49:41
Просмотров 1,3 млн
КОТЯТА В ОПАСНОСТИ?#cat
00:36
Просмотров 491 тыс.
The cloud is over-engineered and overpriced (no music)
14:39
ESP32 DHT Web Server Project
5:53
Просмотров 113 тыс.
How to upload DHT11 data to Thingspeak using ESP8266
5:19
Running Website on NodeMCU Server | ESP8266
7:28
Просмотров 59 тыс.
Трудности СГОРЕВШЕЙ BMW M4!
49:41
Просмотров 1,3 млн