Comments on: ESP8266 NodeMCU Data Logging to Firebase Realtime Database https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 02 Jul 2025 10:42:21 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Hansie https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-893216 Wed, 21 Feb 2024 17:45:28 +0000 https://randomnerdtutorials.com/?p=109333#comment-893216 Everything works great but what if I have one user with different esp modules posting different sensor data and another user that also hase more than one esp posting data.How do I add a ID for the esp so that each user will only be able to read the data that was stored by his different ESPs

]]>
By: Hansie https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-892842 Tue, 20 Feb 2024 12:54:08 +0000 https://randomnerdtutorials.com/?p=109333#comment-892842 Is there a way to just update everytime and not create a new entry everytime?I want to use the data in an android aplication and just need it to update the values from sensors each time?

]]>
By: MrNams https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-880717 Fri, 29 Dec 2023 04:33:46 +0000 https://randomnerdtutorials.com/?p=109333#comment-880717 In reply to Sara Santos.

For me Firebase stops working after certain time, when i see usage in firebase dashboard it shows all requests in denies, my question is how to know exact reason for denies?

]]>
By: Henry Dennig https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-847009 Thu, 13 Jul 2023 01:29:09 +0000 https://randomnerdtutorials.com/?p=109333#comment-847009 Hello Sara,
I am trying to understand how you are storing the data.
If the sensor has a float value for temperature, humidity and pressure, why does the JSON.SET command use String (bme.readTemperature) instead of storing the float values in the database?
When I click on the data in the database, it shows ABC which I am thinking is storing the data as text. If I go to use the data later – read it, do something with it, will I need to convert from string back to float?
Thank you

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-833217 Wed, 03 May 2023 21:07:06 +0000 https://randomnerdtutorials.com/?p=109333#comment-833217 In reply to Minh.

Hi.
I’m sorry, but I didn’t understand your question.
If you have doubts about the ESP8266 pinout, you can take a look at this tutorial: https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
Regards,
Sara

]]>
By: Minh https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-833141 Wed, 03 May 2023 09:31:46 +0000 https://randomnerdtutorials.com/?p=109333#comment-833141 Hi Sara,
im working with project to update data of mq135 from esp8266 to realtime database, so i connect A0 of mq135 to A0 of esp8266wifi. The only thing i couldn’t understand is i can find where you define gate D0, D1 as input in your code because i want to change it to A0. So please help me, thank you.
Thank you
Minh

]]>
By: Fadhil https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-828195 Tue, 04 Apr 2023 01:37:56 +0000 https://randomnerdtutorials.com/?p=109333#comment-828195 Hi, is there a way to read data that has been sent to another esp32? (as data reader)
or are there any tutorial on how to do that in this website?
Thank you.

]]>
By: Joshen https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-813385 Fri, 27 Jan 2023 12:56:09 +0000 https://randomnerdtutorials.com/?p=109333#comment-813385 In reply to Sara Santos.

Thank you Sara,
just to make sure PC and code is uptodate and running I added just a single line of code:

Serial.printf(“*** temp %4.1f°C  hum %2.0f%%  pres %4.0f hPa\n”, bme.readTemperature(), bme.readHumidity(), bme.readPressure()/100.0F);

As you can see from  the output:
Token info: type = id token (GITKit token), status = nrequest
Token info: type = id token GITKit token), status = ready
Getting User UID
User UID: D9sViJpqCHRyBHgVEPtpaGwOq8H3
time: 1674822801                                          <===== epoch is exact
*** temp 19.1°C  hum 34%  pres  969 hPa     <===== values are ok!
Set json… send request failed                         <===========

All output is ok, only the json.set(…….) commands fails with “send request failed”

However the reported User UID:D9sViJpqCHRyBHgVEPtpaGwOq8H3
is different from the one I got while setup the database
user-ID D9sViJpqCHRyBHgVEPtpaGwOq8H
Here the trailing “3” is missing

Thank you for taking time to help me
Joshen

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-813350 Fri, 27 Jan 2023 10:20:08 +0000 https://randomnerdtutorials.com/?p=109333#comment-813350 In reply to Renzo.

Check if you need to update your ESP8266 boards version.
In your Arduino IDE, go to Tools > Board > Boards Manager, search for ESP8266 and check if there are any updates.
Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-data-logging-firebase-realtime-database/#comment-813341 Fri, 27 Jan 2023 10:08:51 +0000 https://randomnerdtutorials.com/?p=109333#comment-813341 In reply to Joschen.

Hi.
What lines of code did you change?
Regards,
Sara

]]>