Send Data to Google Spread Sheet using ESP32 | IoT Projects | IoT Training | JLCPCB

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024
  • $2 for PCB Prototype & Free SMT assembly : jlcpcb.com
    This Project is to Post the data using ESP32 to google spread sheet. This will involve google script which will be manage to write the google spread sheet column and row. So, No need to use any third party server to update the google spread like IFTTT.
    Here, we are updating the temperature value to google spreadsheet. Likewise we can use any sensors like Soil moisture, LDR, HC-SR04 etc. connected to ESP32.
    Code and Connection Diagram:
    github.com/ste...
    www.buymeacoff...
    Links to get the parts,
    Nodemcu - www.banggood.i...
    ESP32 - www.banggood.i...
    Read Google Spreadsheet using ESP32
    • Read Google Spread She...
    Google spreadsheet using esp8266
    • [IOT Projects #1] How ...
    Tutorial on How to post data to Google Firebase using ESP8266
    • [IOT Projects #3] How ...
    Tutorial on How to post data to Thingspeak using ESP8266
    • [IOT Projects #4] How ...
    How to Get Gmail Notification on ESP8266 & OLED
    • [IOT Projects #2] How ...
    Support My Channel:
    buymeacoffee : www.buymeacoff...
    Patreon : / stechiez
    #esp32
    #google
    #spreadsheet

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

  • @markschuurman4000
    @markschuurman4000 3 года назад +8

    Thanks a lot! Very clear and accessible description.
    I had to find out what the in the Arduino IDE had to be; it turned out to be the ID of the deployed app and not simply the spreadsheet's ID.

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

    Thank you so much!!!!!!! I was scared of working with IoT but you made it easy. You're the best! Subscribed

  • @Alex_MaRod
    @Alex_MaRod 3 года назад +4

    Hi sr, I have doubts about the Root_ca, no information is sent to Google Spread and seeing the link that the ESP32 accesses and copying it to the browser tells me that I do not have permissions to access the requested file.
    Do you have any idea how to grant it the necessary permissions?

  • @SuperGhust
    @SuperGhust 2 года назад +3

    how about change to DHT11 go to Google sheet with ESP32 ... I can't send temp & humi to google sheet .. Just send 4-5 time after that
    "Humidity: 37.00 % Temperature: 28.00 *C 82.40 *F Heat index: 27.47 *C
    ==========
    connecting to script.google.com
    connection failed
    "
    How to fix it ? Thank you

    • @Kelebihanmod
      @Kelebihanmod Год назад +1

      Try to add , client.setInsecure(); on your loop and client.stop(); on your last loop

  • @mohammadalmathhagi1306
    @mohammadalmathhagi1306 3 года назад +2

    Thank you for the video. I cannot get the serial no for IC , LDR sensors and Resistors

    • @StechiezDIY
      @StechiezDIY  3 года назад +2

      module is esp32 module
      you can use any LDR sensor
      Resistor : 10K

  • @Red_7813
    @Red_7813 2 месяца назад +1

    Great video!

  • @1nestorjavier
    @1nestorjavier 3 года назад +3

    Nestor R
    What is the root certification?

  • @abhishekl6094
    @abhishekl6094 3 года назад +2

    can you make a video on how to send any gas senor data from nodemcu to spreadsheet .
    please share both spread sheet code and nodemcu code

    • @StechiezDIY
      @StechiezDIY  3 года назад +1

      You just have to replace the code in the place of sensor i have used.

  • @juanrivera4938
    @juanrivera4938 3 года назад +2

    incredible tutorial, works great!
    I'm having an issue where the sendData process takes too long and I can send around 6-8 readings per minute even with the sendInterva at 0 but i need more
    I've been trying to store the info a flash or something so I can then dump data every minute of 30-40 readings (every 2 secs or 3) but i cant find any tutorial or anything similar
    How would you do this? can you help me with some pointers? any ideas? thanks!

    • @StechiezDIY
      @StechiezDIY  3 года назад

      Yes there is issue with that ..it takes long time to send. If you want to achive good speed then i think IFTTT based approach is faster..

  • @avishkamalan7251
    @avishkamalan7251 3 года назад +1

    hello i make this by mlx90614 sensor. but serial monitor and spread sheet always show 1037c only. not change temperature. plz healp me

    • @StechiezDIY
      @StechiezDIY  3 года назад

      can you please post your code here.

  • @janarthanandayalan
    @janarthanandayalan 5 месяцев назад

    Is the same can be done with esp32 camera with a IP address generate by it to store a data????

  • @wademartin8822
    @wademartin8822 3 года назад +1

    Incredible! Thanks so much

  • @draglorde
    @draglorde 4 года назад +2

    thank you for the video. I cannot get my code to work. In the serial monitor I see that it makes the requests (start and end certificate) but ti does not seem to display "done" from the last line (Serial.println(": done "+httpCode);).
    I am not sure of what I am doing wring

    • @StechiezDIY
      @StechiezDIY  4 года назад

      did you replace the google sheet ID and are you using same script as me.
      Please make sure you have followed all the steps as me.

    • @draglorde
      @draglorde 4 года назад

      @@StechiezDIY yes

    • @lunsfordppg8395
      @lunsfordppg8395 3 года назад

      Did you ever figure this out? I am seeing a similar result. I see making a request in the serial monitor and then it jumps part way into the certificate and I never see a done or anything else.

    • @draglorde
      @draglorde 3 года назад

      @@lunsfordppg8395 no, i broke my head for hours (I am a beginner) and could not figure it out. I found another video and following that video worked "ESP32: Sending data directly to Google Sheets, sending alarm emails" by anyboards. I hope this helps you

  • @bhanusurajkurella1796
    @bhanusurajkurella1796 3 года назад +1

    very clearly explained, thank you so much for sharing your knowledge 🔥👌

  • @lunsfordppg8395
    @lunsfordppg8395 3 года назад +2

    This worked for several days and stopped working. Now I do not see the Root CA after the "making request" in the serial monitoring. Got any suggestions?

    • @StechiezDIY
      @StechiezDIY  3 года назад

      Yes this was working previously but now Google has changed the request API.

    • @lunsfordppg8395
      @lunsfordppg8395 3 года назад +1

      @@StechiezDIY Thanks. Is there another way other than a 3rd party app (ie LFTTT)? And also, how was this working for the last three days?

    • @StechiezDIY
      @StechiezDIY  3 года назад

      You will just have to change the API in the code. I think url request is redirecting nowadays. And again deploy the app.

    • @lunsfordppg8395
      @lunsfordppg8395 3 года назад

      @@StechiezDIY Do you plan on making a video of how to do this now that Google has changed the API? And if you do make another video of how to directly send data to Google Sheets from ESP32, could you use a BME280 sensor with the project? Thanks.

  • @carlosalbertovizcainogarci3379
    @carlosalbertovizcainogarci3379 3 года назад +2

    Thanks, very good

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

    I tried this a 100 times, each time there is an error of connection failed

  • @dydhcyshdj
    @dydhcyshdj Год назад +1

    Great video, too bad Google changed it all up and this does not work anymore.... 😞

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

      @@androidtv5254 too much for a RUclips comment, I'm afraid... I tried to follow this but the step where you turn the code into a Web API is pretty different now. With much more options, no doubt, but 1.000x more complicated. You need all kinds of registrations and setups before you can publish an API now. I'm not 100% sure but it seems to be aimed at corporate use primarily. I stopped my attempt, it WAY too much.

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

      I agree. Google keep on the changing the interfaces and their softwares. This can not be long term solution.

  • @markcapillo3318
    @markcapillo3318 8 месяцев назад +1

    you does not explain what is the root certification and how to have it

    • @StechiezDIY
      @StechiezDIY  7 месяцев назад

      Intend of the project was limited 😊.

  • @zvikaraviv
    @zvikaraviv 3 года назад +2

    how do you synchronise the root certification? I copied yours but I believe I have to change it

    • @StechiezDIY
      @StechiezDIY  3 года назад +1

      AFAIK you don't have to change the root_ca certificate. This will work with you as well.

    • @zvikaraviv
      @zvikaraviv 3 года назад +1

      @@StechiezDIY Thank you for your reply. I am facing a weird issue. I get no error. The esp32 shows success on the connection, but no data is added to the spread sheet

    • @StechiezDIY
      @StechiezDIY  3 года назад

      you can put the logs in gscript and tried to give the HTTP request on your browser. You will get the response..

    • @zvikaraviv
      @zvikaraviv 3 года назад

      Which logs are you referring to?

    • @StechiezDIY
      @StechiezDIY  3 года назад

      for log, you can customize the response with following call
      return ContentService.createTextOutput("Wrote:
      tag: " + tag + "
      value: " + value);

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

    I also doing the similar project.. Is this can be use for rfid attendance system.. I want to send the data of rfid card to google sheet

  • @mahooanamlahleki1841
    @mahooanamlahleki1841 3 года назад +2

    Can you please assist me, i am using an arduino uno wifi rev2 and i want to send data to the spreadsheet

    • @StechiezDIY
      @StechiezDIY  3 года назад

      sure. you can post the problem here. I have not used the board you mentioned but i will try to help you. :)

    • @mahooanamlahleki1841
      @mahooanamlahleki1841 3 года назад

      @@StechiezDIY I have been following your video step by step but i noticed i had to make some changes with the board not using the HTTP but did take HttpClient.h NOW the problem is with the last part In function 'void sendData(String): accessing the client an establishing the request. Http.begin is not declared and seem to be an error also with int httpCode = http.GET();

    • @mahooanamlahleki1841
      @mahooanamlahleki1841 3 года назад

      Please assist in the request to client, I am new at this but i am also doing a research should i go right with it i will also post here the solution but please do assist me in the meantime thank you

    • @StechiezDIY
      @StechiezDIY  3 года назад

      you can refer my example for esp8266 for that i was using library. If i face any problem then i used to put the serial prints and check the behavior and data.
      github.com/stechiez/iot_projects/tree/master/PostDataToGoogleSheet

    • @mahooanamlahleki1841
      @mahooanamlahleki1841 3 года назад +1

      @@StechiezDIY thank you i will refer to it, i'll comment on the update

  • @bharathkalyaan3855
    @bharathkalyaan3855 3 года назад +2

    sir do you have the same code but with vl53l0x sensor

  • @tsrinivasparthasarathy915
    @tsrinivasparthasarathy915 3 года назад +1

    Hey dude, I am doing a similar Project in which face recognition attendance by using ESP32 cam and Google spreadsheet .We couldn't find an exact source for it.Could you give suggestions and source codes for it

    • @StechiezDIY
      @StechiezDIY  3 года назад

      I don't have source code ready. But you can take this project as a reference.

    • @StechiezDIY
      @StechiezDIY  3 года назад

      I don't have source code ready. But you can take this project as a reference.

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

    @StechiezDIY how do we get the root ca certificate ??

  • @roadsandtransportation2517
    @roadsandtransportation2517 3 года назад +2

    Can we send Google sheets data to esp8266

  • @esmithgomes7198
    @esmithgomes7198 3 года назад +1

    HOW to get root ca ???

  • @alaminmandal2939
    @alaminmandal2939 3 года назад +1

    Hello sir I want to make a device
    Can you make a device for me..?

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

    Sir, how to get HTTPClient.h header file?

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

      If you already dowloaded ESP32 at your IDE, prob you already have it

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

    The background music makes me sleep.. please dont use such sleepy music

  • @Glass_Of_Tea
    @Glass_Of_Tea 3 года назад +2

    You have a good video but you talk too fast and I can't understand you.

    • @StechiezDIY
      @StechiezDIY  3 года назад

      sorry about that. I will make a note of it. :)

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

    your code returns HTTP CODE -1