Send DHT11 data to PHP MySQL Server using NodeMCU ESP8266

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024

Комментарии • 108

  • @Lovely-bx8se
    @Lovely-bx8se 9 месяцев назад +1

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

  • @ry0usama511
    @ry0usama511 2 месяца назад

    Very simple and understandable guide. Thanks!

  • @AhmadMehraGohar
    @AhmadMehraGohar 2 года назад

    very nice and professional best product

  • @TechnicalidEas07
    @TechnicalidEas07 2 года назад +2

    Arduino or NodeMCU will have a push switch attached. When I press in that switch, the location will go to our mobile

  • @tamapra57
    @tamapra57 2 года назад +1

    If you could explain each PHP file that'd be great since im a beginner. Thanks!

  • @tariq4846
    @tariq4846 2 года назад +1

    How to display multiple sensors data on same page?

  • @abdiqadirmohamednor6101
    @abdiqadirmohamednor6101 2 года назад

    Thank you so much you helped me deeply

  • @shakerileiwat4341
    @shakerileiwat4341 2 года назад

    Great project
    Thank you

  • @user-gm4lh9cl8t
    @user-gm4lh9cl8t Год назад

    thank you. so helpful vid

  • @Lovely-bx8se
    @Lovely-bx8se 4 месяца назад

    Bonjour, J'ai essaye d'adapter votre code pour un capteur DS18B20 mais les valeurs ne change pas elle m'indique 24 et 77.

  • @rampage_xdit
    @rampage_xdit 2 года назад

    You are the best

  • @kamalkamel7559
    @kamalkamel7559 2 года назад

    very great project, how control devices, example relay and display temperature!!

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      It is possible. but it required some research.

  • @ahmedtaher4015
    @ahmedtaher4015 2 года назад

    Verry nice

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

  • @EasyOne
    @EasyOne 2 года назад

    nice

  • @TechTrendsShameer
    @TechTrendsShameer Год назад

    Hi Bro, How to change the maximum value in the gauge from 100 to any other higher value? Please help me.

  • @AITwo_co
    @AITwo_co 2 года назад

    please make a video on going live with jazzcash payment gateway...

  • @rodiasgohoue6014
    @rodiasgohoue6014 2 года назад

    thanks for this tuto

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      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

  • @nonel7215
    @nonel7215 2 года назад +1

    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 года назад +1

      install the esp8266 core version 2.6.0 or lower

    • @nonel7215
      @nonel7215 2 года назад

      @@AhmadLogs thank you so much!

    • @kucingawak
      @kucingawak 11 месяцев назад

      @@AhmadLogs I also get the same error but my esp board is currently version 2.4.0 how to fix it?

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

  • @user-om1sv1df1r
    @user-om1sv1df1r Год назад

    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

  • @amirtelecom6898
    @amirtelecom6898 2 года назад

    Verry Nice ...
    Can this be used with SIM800l ?

    • @AhmadLogs
      @AhmadLogs  2 года назад

      yes, it might be used

  • @SAURABHKUMAR-py9or
    @SAURABHKUMAR-py9or 2 года назад +1

    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 года назад +1

      @@SAURABHKUMAR-py9or which web server you have used awardspace or any other

  • @user-oy1kq4ck8y
    @user-oy1kq4ck8y Год назад

    my serial monitor is not displaying anything

  • @bektinurwanto
    @bektinurwanto Год назад

    If using localhost, can i use api key?

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

  • @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 года назад +1

      then lot of changes are required. both in the sketch as well as php myql code

    • @DiyintheGhetto
      @DiyintheGhetto 2 года назад

      @@AhmadLogs got you thank you.

  • @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 года назад +1

      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 года назад +1

      @@TechTrendsShameer so nice of 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.

  • @syaduinotech3681
    @syaduinotech3681 Год назад

    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.

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

  • @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.

  • @mbinacedric3566
    @mbinacedric3566 Год назад

    Hi, i have a video topic for you!!!

  • @rodiladriangaryck6488
    @rodiladriangaryck6488 Год назад

    Can I use this code for esp32 as well?

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

  • @katkatia9255
    @katkatia9255 2 года назад

    What can i modify if i use xamp ?

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      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

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

  • @ahsanejaz1743
    @ahsanejaz1743 2 года назад

    i will wait for your response

  • @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?

  • @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 📲

  • @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)

  • @emojiit362
    @emojiit362 2 года назад

    We need to talk Can you check your email?

  • @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.