Visualize Your Sensor Readings from Anywhere in the World (ESP32/ESP8266 + MySQL + PHP)

Поділитися
Вставка

КОМЕНТАРІ • 70

  • @RuiSantosdotme
    @RuiSantosdotme  5 років тому +9

    You can find the complete project details (schematics + source code) on my blog ► RandomNerdTutorials.com/visualize-esp32-esp8266-sensor-readings-from-anywhere/
    For this project, you'll need a hosting account with PHP and MySQL. You can use any hosting provider. I recommend using Bluehost and you can use this link to setup a Hosting Account + Free Domain Name ► RandomNerdTutorials.com/bluehost/

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

      hi, i don‘t know if you can see my comment, but if you could answer i would really appreciate it! I have followed your steps and everything went well until step4, when i enter the page of esp-chart.php, it shows access denied for user (password yes) . so i though maybe i should start up again, then i deleted the old database etc. then it come out no matter what i write, the website didn‘t change. like even if i give a wrong username in post-data.php. and change the echo from „no data posted with http post“ into „hahaha“, the website still shows no data posted with http post. what should i do ?

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

      If I want to use Arduino Mega With Ethernet Shield, is it possible?

  • @alcanceweb
    @alcanceweb 5 років тому +1

    It worked as a charm on my local web server, using XAMPP. If we could improve this project, like, adding buttons in order to remote control it, it would be outstanding. Thank you very much and congratulations, buddy.

    • @RuiSantosdotme
      @RuiSantosdotme  5 років тому +1

      That's probably one of my next projects (control outputs) with this setup

  • @AnshumanFauzdar
    @AnshumanFauzdar 5 років тому +1

    Exactly I wanna work upon!! Keep the good work!! Thanks!!

    • @RuiSantosdotme
      @RuiSantosdotme  5 років тому +1

      Thanks for watching! I'm glad it was helpful

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

    I was looking for something very similar to work on my PhD. Excellent tutorial for beginners like me who have limited experience with programming. Thank you very much.

  • @marketingceba9055
    @marketingceba9055 5 років тому

    Excellent! Very neat description.

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

    this is a big help for me. Thank you very much

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

    Great Help and Thanks

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

    thank you dude good job

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

    Hello Rui, quick question, can you please help me to know how can i stop the automatic scale in the Y values? I appreciate your help, thank you and keep doing this amazing work.

  • @jackofalltrades1249
    @jackofalltrades1249 Місяць тому

    Is this feasible? Instead of saving the data to the MYSQL database using internet connection, How about save it on sdcard instead then use the ESP SoftAP to access the data and display it on a webpage?

  • @TheCeremoniesOfIsrael
    @TheCeremoniesOfIsrael 2 місяці тому

    Wow can you do it DHT11 sensor

  • @princemiro7241
    @princemiro7241 5 років тому

    real nice content

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

    Very nice write up and good use of MySQL to store the data. Going to try using Grafana to generate the pretty graphs as it can pull the data from MySQL. Also for the sensor can I use DHT22 since it's pretty common item?

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

      Yes you can use it just need to include dht11 libarary First in your code.

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

    rui, how to post data without refreshing the page?

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

    Hi Rui. I like your videos. Can i make this project more real time, for example every 1 seconds instead of 30 seconds. do i have to make such a this video by firebase database or is it possible with mysql

  • @megladon9113
    @megladon9113 5 років тому

    Thanks this is just what I need. Do you know if you are able to disable the wifi, Bluetooth and temporarily the gsm to conserve power? Further, in the post-data.php I would recommend using filter_input instead of the test_input function, you should also use a prepared statement just for in case to protect against SQL injection.

  • @ManuelCastillo-kq3xy
    @ManuelCastillo-kq3xy 4 роки тому

    Los grFicos she actualizan "solo", cada vex quebsebunsere un Nuevo dato MySQL?

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

    Hi, how to automatically update the webpage instead of refresh again and again?

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

    Can you do this using Flask instead of php?

  • @AsadKhan-le7qi
    @AsadKhan-le7qi 2 роки тому

    may i used node red to send my sensor data?????

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

    sir, I am using arduino pro mini, ESP8266-01, and DPS310. Can you please help me how do i make connection and program ESP8266-01 (doesn't have programmable port)

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

    Hello so nice tutorial, I was wondering if you can help me with something, I am getting this message in the serial monitor "HTTP Response code: 200" and my database did not receive the information. what does it mean?
    Thanks.

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

    i got problem when i search example.com/esp-chart.php because access denied. Please help me rui

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

      ua-cam.com/video/zssr59F0QPc/v-deo.html&ab_channel=HarithaComputers%26Technology
      this can help you

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

    hi i get a 301 error on the serial monitor and data dont reach the database.. the chart is working
    what to do?

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

    how to auto refresh chart sir?

  • @RadionicaExpress
    @RadionicaExpress 5 років тому +1

    Hey, can you provide some auto refresh code for the web page so we dont need to refresh it manual? Thanks

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

      You can do that in the html header with the meta tag

    • @sudanielectronics5112
      @sudanielectronics5112 4 роки тому +2

      Use this command in HEAD section
      30 Means number of second.

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

      @@sudanielectronics5112 thanks!

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

      use AJAX to refresh some parts of your page i.e the charts .. if you include refresh in the header of HTML as they mentioned the whole page will keep refreshing which is not neat and of a bad UX

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

      @@mibrahim4245I've been trying to do it but I still can't figure it out. can you please help me how to do it

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

    Was a great video. Can I use DHT11 sensor instead of BME280 sensor? I tried a lot but it didn't work :((. Thanks anyway

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

      Hi,
      You have to include dht11 libarary First in your code and use dht11 functions to read the temperature and humidity and then send the request.

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

      @@sudanielectronics5112 well.... In Arduino IDE every thing it work, HTTP code is 200. But nothing show on website and don't have any data post to Database :(

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

      @@sudanielectronics5112 oh, it works now. Thanks a lot. I missed a letter " in Arduino code so it didn't work :(

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

      @@thienthuluc3451 can u please send the modified code ?
      moka143@gmail.com
      thank you

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

    Hi thank you for the tutorial, I did everything according to this video but my charts php when che king online says connection failed do you leave server servername as localhost?

    • @mateszecsi9157
      @mateszecsi9157 Рік тому +1

      is this problem still up to date for you?

    • @crouchingchicken007
      @crouchingchicken007 Рік тому +1

      @@mateszecsi9157 hi, I got it working in the end. Thank you

  • @mathieusan
    @mathieusan 5 років тому

    I think you need give access to the database for everyone. My database generates access denied error, I think it's because it blocks every IP access by default. I am not sure how to open that

    • @mathieusan
      @mathieusan 5 років тому

      I found my answer here: ua-cam.com/video/zssr59F0QPc/v-deo.html

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

    is there any tutorial for local website only?

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

      You can follow this project instead (run your local web server): randomnerdtutorials.com/esp32-esp8266-plot-chart-web-server/

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

    Hi, Can we publish data from multiple ESP32 to the same Database?

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

      of course you can, as long as the esp32 have the same APIkey

  • @Gonxzxauc
    @Gonxzxauc 5 років тому

    Hello, i have a error.In the monitor "httpRequestData: api_key=xxxxxxx=20.40&value2=99.90&value3=20.40
    Error code: -1
    .
    17/5000
    how do fix this ?

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

      wrong domain, don't forget using "..../post-data.php"

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

    Can I get free domain with free plan ?
    How to get api key?

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

    bro the cheapest deal for hosting is 147 usd .

  • @saikumar-rn8hm
    @saikumar-rn8hm 5 років тому

    How to get API key

    • @RuiSantosdotme
      @RuiSantosdotme  5 років тому +1

      In order to make this project work, you need to have your own hosting account + domain name. The apiKeyValue is just a random string that you can modify. It’s used for security reasons, so only anyone that knows your API key can publish data to your database
      . More information here: randomnerdtutorials.com/visualize-esp32-esp8266-sensor-readings-from-anywhere/

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

    +1

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

    hello, and thank you for this video.
    When I change the name of the database more nothing works it gives me this as an error ->
    -> Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /volume1/web/index.php on line 33 Error: Call to a member function fetch_assoc() on bool in /volume1/web/index.php on line 33 Call Stack: 0.0004 360584 1. {main}() /volume1/web/index.php:0 ... why ???

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

    I'm using firebase, how do I set up multiuser Setup?? Wherein my android app access the data from firebase. But don't know how to setup multiple users